ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
ActsPlugins::DD4hepLayerBuilder Class Reference

build layers of one cylinder-endcap setup from DD4hep input More...

#include <ActsPlugins/DD4hep/DD4hepLayerBuilder.hpp>

Inheritance diagram for ActsPlugins::DD4hepLayerBuilder:
[legend]
Collaboration diagram for ActsPlugins::DD4hepLayerBuilder:
[legend]

Classes

struct  Config
 nested configuration struct for steering of the layer builder More...

Public Types

using ElementFactory
 DD4hepDetectorElement construction factory.

Public Member Functions

 DD4hepLayerBuilder (const DD4hepLayerBuilder::Config &config, std::unique_ptr< const Acts::Logger > logger)
 Constructor.
 ~DD4hepLayerBuilder () override
 Destructor.
const Acts::LayerVector centralLayers (const Acts::GeometryContext &gctx) const final
 LayerBuilder interface method.
Config getConfiguration () const
 get the configuration object
const std::string & identification () const final
 Name identification.
const Acts::LayerVector negativeLayers (const Acts::GeometryContext &gctx) const final
 LayerBuilder interface method.
const Acts::LayerVector positiveLayers (const Acts::GeometryContext &gctx) const final
 LayerBuilder interface method.
void setConfiguration (const Config &config)
 set the configuration object
void setLogger (std::unique_ptr< const Acts::Logger > logger)
 set logging instance
Public Member Functions inherited from Acts::ILayerBuilder
virtual ~ILayerBuilder ()=default
 Virtual destructor.

Static Public Member Functions

static std::shared_ptr< DD4hepDetectorElementdefaultDetectorElementFactory (const dd4hep::DetElement &detElement, const std::string &detAxis, double thickness, bool isDisc, std::shared_ptr< const Acts::ISurfaceMaterial > surfaceMaterial)
 Default factory for DD4hepDetectorElement.

Detailed Description

build layers of one cylinder-endcap setup from DD4hep input

This class is an implementation of the Acts::ILayerBuilder, creating the central (layers of barrel), the negative and positive layers (layers of endcaps) of one hierarchy (e.g. PixelDetector, StripDetector,...) with input from DD4hep.

Member Typedef Documentation

◆ ElementFactory

Initial value:
std::function<std::shared_ptr<DD4hepDetectorElement>(
const dd4hep::DetElement&, const std::string&, double, bool,
std::shared_ptr<const Acts::ISurfaceMaterial>)>

DD4hepDetectorElement construction factory.

Constructor & Destructor Documentation

◆ DD4hepLayerBuilder()

ActsPlugins::DD4hepLayerBuilder::DD4hepLayerBuilder ( const DD4hepLayerBuilder::Config & config,
std::unique_ptr< const Acts::Logger > logger )

Constructor.

Parameters
configis the configuration struct
loggeris the logging instance

◆ ~DD4hepLayerBuilder()

ActsPlugins::DD4hepLayerBuilder::~DD4hepLayerBuilder ( )
override

Destructor.

Member Function Documentation

◆ centralLayers()

const Acts::LayerVector ActsPlugins::DD4hepLayerBuilder::centralLayers ( const Acts::GeometryContext & gctx) const
finalvirtual

LayerBuilder interface method.

Parameters
gctxthe geometry context for this build call
Returns
the layers at the central sector

Implements Acts::ILayerBuilder.

◆ defaultDetectorElementFactory()

std::shared_ptr< DD4hepDetectorElement > ActsPlugins::DD4hepLayerBuilder::defaultDetectorElementFactory ( const dd4hep::DetElement & detElement,
const std::string & detAxis,
double thickness,
bool isDisc,
std::shared_ptr< const Acts::ISurfaceMaterial > surfaceMaterial )
static

Default factory for DD4hepDetectorElement.

Parameters
detElementThe DD4hep detector element
detAxisThe detector axis string
thicknessThe thickness of the element
isDiscWhether this is a disc element
surfaceMaterialThe surface material
Returns
Shared pointer to the created DD4hepDetectorElement

◆ negativeLayers()

const Acts::LayerVector ActsPlugins::DD4hepLayerBuilder::negativeLayers ( const Acts::GeometryContext & gctx) const
finalvirtual

LayerBuilder interface method.

Parameters
gctxthe geometry context for this build call
Returns
the layers at negative side

Implements Acts::ILayerBuilder.

◆ positiveLayers()

const Acts::LayerVector ActsPlugins::DD4hepLayerBuilder::positiveLayers ( const Acts::GeometryContext & gctx) const
finalvirtual

LayerBuilder interface method.

Parameters
gctxthe geometry context for this build call
Returns
the layers at positive side

Implements Acts::ILayerBuilder.

◆ setConfiguration()

void ActsPlugins::DD4hepLayerBuilder::setConfiguration ( const Config & config)

set the configuration object

Parameters
configis the configuration struct

◆ setLogger()

void ActsPlugins::DD4hepLayerBuilder::setLogger ( std::unique_ptr< const Acts::Logger > logger)

set logging instance