ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::LayerArrayCreator Class Reference

The LayerArrayCreator is a simple Tool that helps to construct LayerArrays from std::vector of Acts::CylinderLayer, Acts::DiscLayer, Acts::PlaneLayer. More...

#include <Acts/Geometry/LayerArrayCreator.hpp>

Inheritance diagram for Acts::LayerArrayCreator:
[legend]
Collaboration diagram for Acts::LayerArrayCreator:
[legend]

Classes

struct  Config
 This struct stores the configuration of the tracking geometry. More...

Public Member Functions

 LayerArrayCreator (const Config &, std::unique_ptr< const Logger > logger=getDefaultLogger("LayerArrayCreator", Logging::INFO))
 Constructor.
 ~LayerArrayCreator () override=default
 Destructor.
std::unique_ptr< const LayerArraylayerArray (const GeometryContext &gctx, const LayerVector &layersInput, double min, double max, BinningType bType=arbitrary, AxisDirection aDir=AxisDirection::AxisX) const override
 LayerArrayCreator interface method.
void setLogger (std::unique_ptr< const Logger > logger)
 set logging instance
Public Member Functions inherited from Acts::ILayerArrayCreator
virtual ~ILayerArrayCreator ()=default
 Virtual destructor.

Detailed Description

The LayerArrayCreator is a simple Tool that helps to construct LayerArrays from std::vector of Acts::CylinderLayer, Acts::DiscLayer, Acts::PlaneLayer.

It fills the gaps automatically with Acts::NavigationLayer to be processed easily in the Navigation of the Extrapolation process.

Constructor & Destructor Documentation

◆ LayerArrayCreator()

Acts::LayerArrayCreator::LayerArrayCreator ( const Config & ,
std::unique_ptr< const Logger > logger = getDefaultLogger("LayerArrayCreator",                                                  Logging::INFO) )
explicit

Constructor.

Parameters
loggerlogging instance

◆ ~LayerArrayCreator()

Acts::LayerArrayCreator::~LayerArrayCreator ( )
overridedefault

Destructor.

Member Function Documentation

◆ layerArray()

std::unique_ptr< const LayerArray > Acts::LayerArrayCreator::layerArray ( const GeometryContext & gctx,
const LayerVector & layersInput,
double min,
double max,
BinningType bType = arbitrary,
AxisDirection aDir = AxisDirection::AxisX ) const
overridevirtual

LayerArrayCreator interface method.

Parameters
gctxis the geometry context for witch the array is built
layersInputare the layers to be moved into an array
minis the minimum value for binning
maxis the maximum value for binning
bTypeis the binning type
aDiris the axis direction for the layer binning
Returns
unique pointer to a newly created LayerArray

Implements Acts::ILayerArrayCreator.

◆ setLogger()

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

set logging instance

Parameters
loggerLogger instance to use