EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Core/include/Acts/Geometry/LayerArrayCreator.hpp>
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)) | |
~LayerArrayCreator () override=default | |
Destructor. | |
std::unique_ptr< const LayerArray > | layerArray (const GeometryContext &gctx, const LayerVector &layersInput, double min, double max, BinningType bType=arbitrary, BinningValue bValue=binX) const override |
void | setLogger (std::unique_ptr< const Logger > logger) |
set logging instance | |
Public Member Functions inherited from Acts::ILayerArrayCreator | |
virtual | ~ILayerArrayCreator ()=default |
Virtual destructor. | |
Private Member Functions | |
const Logger & | logger () const |
Private access method to the logging instance. | |
std::shared_ptr< Surface > | createNavigationSurface (const GeometryContext &gctx, const Layer &layer, BinningValue bValue, double offset) const |
Private Attributes | |
std::unique_ptr< const Logger > | m_logger = nullptr |
logging instance | |
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.
Definition at line 33 of file LayerArrayCreator.hpp.
View newest version in sPHENIX GitHub at line 33 of file LayerArrayCreator.hpp
|
inline |
Constructor
logger | logging instance |
Definition at line 41 of file LayerArrayCreator.hpp.
View newest version in sPHENIX GitHub at line 41 of file LayerArrayCreator.hpp
|
overridedefault |
Destructor.
|
private |
Private helper method for creating a surface for the NavigationLayer, it clones the
layer | object and thus needs the |
gctx | geometry context. |
bValue | is the Binning value for the layer array |
offset | is the sift for the navigation layer |
Definition at line 173 of file LayerArrayCreator.cpp.
View newest version in sPHENIX GitHub at line 173 of file LayerArrayCreator.cpp
References ACTS_WARNING, Acts::binR, Acts::binX, Acts::binY, Acts::binZ, Acts::Surface::bounds(), Acts::Surface::Cylinder, Acts::Surface::Disc, Acts::CylinderBounds::eHalfLengthZ, Acts::CylinderBounds::eR, Acts::Test::gctx, Acts::CylinderBounds::get(), offset, Acts::PrimitivesView3DTest::plane, Acts::Surface::Plane, Acts::Layer::surfaceRepresentation(), Acts::Surface::transform(), and Acts::Surface::type().
Referenced by layerArray().
|
overridevirtual |
LayerArrayCreator interface method
gctx | ist the geometry context for witch the array is built |
layersInput | are the layers to be moved into an array |
min | is the minimum value for binning |
max | is the maximum value for binning |
bType | is the binning type |
bValue | is the value in which the binning should be done |
Implements Acts::ILayerArrayCreator.
Definition at line 32 of file LayerArrayCreator.cpp.
View newest version in sPHENIX GitHub at line 32 of file LayerArrayCreator.cpp
References kdfinder::abs(), ACTS_ERROR, ACTS_VERBOSE, Acts::arbitrary, boundaries, Acts::NavigationLayer::create(), createNavigationSurface(), Acts::equidistant, G4TTL::layer, max, min, Acts::open, x, y, and z.
Referenced by Acts::CuboidVolumeBuilder::buildVolume(), and Acts::Test::CubicTrackingGeometry::operator()().
|
inlineprivate |
Private access method to the logging instance.
Definition at line 71 of file LayerArrayCreator.hpp.
View newest version in sPHENIX GitHub at line 71 of file LayerArrayCreator.hpp
References m_logger.
|
inline |
set logging instance
Definition at line 65 of file LayerArrayCreator.hpp.
View newest version in sPHENIX GitHub at line 65 of file LayerArrayCreator.hpp
References m_logger.
|
private |
logging instance
Definition at line 74 of file LayerArrayCreator.hpp.
View newest version in sPHENIX GitHub at line 74 of file LayerArrayCreator.hpp
Referenced by logger(), and setLogger().