Analysis Software
Documentation for sPHENIX simulation 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 &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 31 of file ProtoLayerHelper.hpp.

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

Member Typedef Documentation

Definition at line 33 of file ProtoLayerHelper.hpp.

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

Constructor & Destructor Documentation

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

Constructor with explicit config

Parameters
configExplicit config struct
loggerlogging instance

Definition at line 41 of file ProtoLayerHelper.hpp.

View newest version in sPHENIX GitHub at line 41 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 76 of file ProtoLayerHelper.hpp.

View newest version in sPHENIX GitHub at line 76 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 reference of the SurfaceCluster for insertion

Definition at line 20 of file ProtoLayerHelper.cpp.

View newest version in sPHENIX GitHub at line 20 of file ProtoLayerHelper.cpp

References Acts::ACTS_VERBOSE(), and clusters.

Referenced by Acts::Test::Layers::BOOST_AUTO_TEST_CASE().

+ Here is the call graph for this function:

+ 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 62 of file ProtoLayerHelper.cpp.

View newest version in sPHENIX GitHub at line 62 of file ProtoLayerHelper.cpp

References ACTS_DEBUG, Acts::ACTS_VERBOSE(), and Acts::binningValueNames().

+ Here is the call graph for this function:

Member Data Documentation

std::unique_ptr<const Logger> Acts::ProtoLayerHelper::m_logger
private

Logging instance.

Definition at line 73 of file ProtoLayerHelper.hpp.

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

Referenced by logger().


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