EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::ProtoLayerHelper Class Reference

#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< ProtoLayerprotoLayers (const GeometryContext &gctx, const std::vector< const Surface * > &surfaces, const SortingConfig &sorting) const
 
std::vector< ProtoLayerprotoLayers (const GeometryContext &gctx, const std::vector< const Surface * > &surfaces, const std::vector< SortingConfig > &sortings) const
 

Private Member Functions

const Loggerlogger () const
 Private access to logger.
 

Private Attributes

std::unique_ptr< const Loggerm_logger
 Logging instance.
 

Detailed Description

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

Member Typedef Documentation

Definition at line 28 of file ProtoLayerHelper.hpp.

View newest version in sPHENIX GitHub at line 28 of file ProtoLayerHelper.hpp

Constructor & Destructor Documentation

Acts::ProtoLayerHelper::ProtoLayerHelper ( const Config ,
std::unique_ptr< const Logger logger = getDefaultLogger("ProtoLayerHelper", Logging::INFO) 
)
inline

Constructor with explicit config

Parameters
cfgExplicit config struct
loggerlogging instance

Definition at line 36 of file ProtoLayerHelper.hpp.

View newest version in sPHENIX GitHub at line 36 of file ProtoLayerHelper.hpp

Acts::ProtoLayerHelper::~ProtoLayerHelper ( )
default

Member Function Documentation

const Logger& Acts::ProtoLayerHelper::logger ( ) const
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

Parameters
gctxThe geometry context (usually building context at this stage)
surfacesThe surfaces to be sorted into arrays
sortingThe sorting setup, one single sorting
Returns
A vector of ProtoLayers

Helper function to find/create the cluster of surfaces where the Extent belongs to. In case none is found, a new one is inserted

Parameters
extentThe test extent for finding the cluster
Returns
the referece of the SurfaceCluster for insertion

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

Parameters
gctxThe geometry context (usually building context at this stage)
surfacesThe surfaces to be sorted into arrays
sortingsThe sequential sorting setup
Returns
A vector of ProtoLayers

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.

Member Data Documentation

std::unique_ptr<const Logger> Acts::ProtoLayerHelper::m_logger
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().


The documentation for this class was generated from the following files: