Class Acts::Experimental::LayerStructureBuilder

class LayerStructureBuilder : public Acts::Experimental::IInternalStructureBuilder

This is a builder of layer structures to be contained within a DetectorVolume, it extends the IInternalStructureBuilder interface and provides the internal structure components of DetectorVolume objects to be constructed.

It uses the IndexedSurfaceGrid to bin the internal surfaces, and allows for additional support surfaces that are added to the structure and indexing mechanism. Those support structures can also be approximated by planar surfaces, in order to facilitate vectorization of surface intersection calls.

The binning can be chosen with a so called expansion, a number which indicates the configured expanded bin window in which the surfaces are going to be filled, the details to this strategy can be found in the IndexedGridFiller and IndexedSurfacesGenerator classes.

No sub volumes are added to this structure builders, hence, the DetectorVolumeFinder navigation delegate uses the “NoopFinder” breakpoint to indicate the bottom of the volume hierarchy.

Public Functions

LayerStructureBuilder(const Config &cfg, std::unique_ptr<const Logger> logger = getDefaultLogger("LayerStructureBuilder", Logging::INFO))

Constructor.

Parameters
  • cfg – is the configuration struct

  • logger – logging instance for screen output

virtual InternalStructure construct(const GeometryContext &gctx) const final

The interface definition for internal structure creation.

Parameters

gctx – the geometry context at the creation of the internal structure

Returns

a consistent set of detector volume internals

struct Binning

The surface binning definition.

Public Members

BinningData data

Define the binning of the surfaces.

size_t expansion = 0u

An expansion for the filling (in bins)

struct Config

Configuration struct for the LayerStructureBuilder.

It contain:

  • a source of the surfaces to be built

  • a definition of surface binning on this layer

  • a definition of supports to be built

Public Members

std::string auxilliary = ""

Extra information, mainly for screen output.

std::vector<Binning> binnings = {}

Definition of Binnings.

unsigned int nSegments = 1u

Polyhedron approximations.

std::vector<Support> supports = {}

Definition of Supports.

std::function< std::vector< std::shared_ptr< Surface > >)> surfaces

Connection point for a function to provide surfaces.

struct Support

Support parameter defintions.

Public Members

std::vector<BinningValue> constraints = s_binningValues

Define in which values the support should be constrained.

unsigned int splits = 1u

Potential splits into planar approximations.

std::optional<Transform3> transform = std::nullopt

The (optional) layer transform.

Surface::SurfaceType type = Surface::SurfaceType::Other

The surface type to be built.

std::array<ActsScalar, 5u> values = {}

Define whether you want to build support structures.