![]() |
EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Core/include/Acts/Geometry/ProtoLayerHelper.hpp>
Collaboration diagram for Acts::ProtoLayerHelper:Classes | |
| struct | Config |
Public Types | |
| using | SortingConfig = std::pair< BinningValue, double > |
Public Member Functions | |
| ProtoLayerHelper (const Config &, std::unique_ptr< const Logger > logger=getDefaultLogger("ProtoLayerHelper", Logging::INFO)) | |
| ~ProtoLayerHelper ()=default | |
| std::vector< ProtoLayer > | protoLayers (const GeometryContext &gctx, const std::vector< const Surface * > &surfaces, const SortingConfig &sorting) const |
| std::vector< ProtoLayer > | protoLayers (const GeometryContext &gctx, const std::vector< const Surface * > &surfaces, const std::vector< SortingConfig > &sortings) const |
Private Member Functions | |
| const Logger & | logger () const |
| Private access to logger. | |
Private Attributes | |
| std::unique_ptr< const Logger > | m_logger |
| Logging instance. | |
This class is designed to parse a vector of Surfaces and sort them into corresponding proto layers.
Definition at line 26 of file ProtoLayerHelper.hpp.
View newest version in sPHENIX GitHub at line 26 of file ProtoLayerHelper.hpp
| using Acts::ProtoLayerHelper::SortingConfig = std::pair<BinningValue, double> |
Definition at line 28 of file ProtoLayerHelper.hpp.
View newest version in sPHENIX GitHub at line 28 of file ProtoLayerHelper.hpp
|
inline |
Constructor with explicit config
| cfg | Explicit config struct |
| logger | logging instance |
Definition at line 36 of file ProtoLayerHelper.hpp.
View newest version in sPHENIX GitHub at line 36 of file ProtoLayerHelper.hpp
|
default |
|
inlineprivate |
Private access to logger.
Definition at line 69 of file ProtoLayerHelper.hpp.
View newest version in sPHENIX GitHub at line 69 of file ProtoLayerHelper.hpp
References m_logger.
| std::vector< Acts::ProtoLayer > Acts::ProtoLayerHelper::protoLayers | ( | const GeometryContext & | gctx, |
| const std::vector< const Surface * > & | surfaces, | ||
| const SortingConfig & | sorting | ||
| ) | const |
Sort the surfaces into ProtoLayers
| gctx | The geometry context (usually building context at this stage) |
| surfaces | The surfaces to be sorted into arrays |
| sorting | The sorting setup, one single sorting |
Helper function to find/create the cluster of surfaces where the Extent belongs to. In case none is found, a new one is inserted
| extent | The test extent for finding the cluster |
Definition at line 13 of file ProtoLayerHelper.cpp.
View newest version in sPHENIX GitHub at line 13 of file ProtoLayerHelper.cpp
References ACTS_VERBOSE.
Referenced by Acts::Test::Layers::BOOST_AUTO_TEST_CASE().
Here is the caller graph for this function:| std::vector< Acts::ProtoLayer > Acts::ProtoLayerHelper::protoLayers | ( | const GeometryContext & | gctx, |
| const std::vector< const Surface * > & | surfaces, | ||
| const std::vector< SortingConfig > & | sortings | ||
| ) | const |
Sort the surfaces into ProtoLayers, sequential sorting
| gctx | The geometry context (usually building context at this stage) |
| surfaces | The surfaces to be sorted into arrays |
| sortings | The sequential sorting setup |
Definition at line 55 of file ProtoLayerHelper.cpp.
View newest version in sPHENIX GitHub at line 55 of file ProtoLayerHelper.cpp
References ACTS_DEBUG, ACTS_VERBOSE, and Acts::binningValueNames.
|
private |
Logging instance.
Definition at line 66 of file ProtoLayerHelper.hpp.
View newest version in sPHENIX GitHub at line 66 of file ProtoLayerHelper.hpp
Referenced by logger().