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

#include <acts/blob/master/Core/include/Acts/Geometry/PassiveLayerBuilder.hpp>

+ Inheritance diagram for Acts::PassiveLayerBuilder:
+ Collaboration diagram for Acts::PassiveLayerBuilder:

Classes

struct  Config
 

Public Member Functions

 PassiveLayerBuilder (const Config &plConfig, std::unique_ptr< const Logger > logger=getDefaultLogger("PassiveLayerBuilder", Logging::INFO))
 
 ~PassiveLayerBuilder () override=default
 Destructor.
 
const LayerVector negativeLayers (const GeometryContext &gctx) const override
 
const LayerVector centralLayers (const GeometryContext &gctx) const override
 
const LayerVector positiveLayers (const GeometryContext &gctx) const override
 
const std::string & identification () const override
 
void setConfiguration (const Config &plConfig)
 
Config getConfiguration () const
 Get configuration method.
 
void setLogger (std::unique_ptr< const Logger > newLogger)
 
- Public Member Functions inherited from Acts::ILayerBuilder
virtual ~ILayerBuilder ()=default
 Virtual destructor.
 

Protected Attributes

Config m_cfg
 configuration
 

Private Member Functions

const LayerVector endcapLayers (const GeometryContext &gctx, int side) const
 
const Loggerlogger () const
 

Private Attributes

std::unique_ptr< const Loggerm_logger
 logging instance
 

Detailed Description

The PassiveLayerBuilder is able to build cylinder & disc layers with given dimensions and material. The specifications of the the layers have to be given by the configuration struct.

Definition at line 29 of file PassiveLayerBuilder.hpp.

View newest version in sPHENIX GitHub at line 29 of file PassiveLayerBuilder.hpp

Constructor & Destructor Documentation

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

Constructor

Parameters
plConfigis the ocnfiguration struct that steers behavior
loggerlogging instance

Definition at line 22 of file PassiveLayerBuilder.cpp.

View newest version in sPHENIX GitHub at line 22 of file PassiveLayerBuilder.cpp

References setConfiguration().

+ Here is the call graph for this function:

Acts::PassiveLayerBuilder::~PassiveLayerBuilder ( )
overridedefault

Destructor.

Member Function Documentation

const Acts::LayerVector Acts::PassiveLayerBuilder::centralLayers ( const GeometryContext gctx) const
overridevirtual

LayerBuilder interface method

Parameters
gctxist the geometry context under which the geometry is built
Returns
the layers at the central sector

Implements Acts::ILayerBuilder.

Definition at line 95 of file PassiveLayerBuilder.cpp.

View newest version in sPHENIX GitHub at line 95 of file PassiveLayerBuilder.cpp

References ACTS_DEBUG, ACTS_VERBOSE, Acts::CylinderLayer::create(), material(), and Acts::UnitConstants::u.

+ Here is the call graph for this function:

const Acts::LayerVector Acts::PassiveLayerBuilder::endcapLayers ( const GeometryContext gctx,
int  side 
) const
private

Helper interface method

Parameters
gctxist the geometry context under which the geometry is built
sideis the side of the layer to be built
Returns
the layers at positive side

Definition at line 50 of file PassiveLayerBuilder.cpp.

View newest version in sPHENIX GitHub at line 50 of file PassiveLayerBuilder.cpp

References ACTS_DEBUG, ACTS_VERBOSE, Acts::DiscLayer::create(), material(), and Acts::UnitConstants::u.

+ Here is the call graph for this function:

PassiveLayerBuilder::Config Acts::PassiveLayerBuilder::getConfiguration ( ) const
inline

Get configuration method.

Definition at line 127 of file PassiveLayerBuilder.hpp.

View newest version in sPHENIX GitHub at line 127 of file PassiveLayerBuilder.hpp

References m_cfg.

const std::string& Acts::PassiveLayerBuilder::identification ( ) const
inlineoverridevirtual

Name identification

Returns
the string based identification

Implements Acts::ILayerBuilder.

Definition at line 90 of file PassiveLayerBuilder.hpp.

View newest version in sPHENIX GitHub at line 90 of file PassiveLayerBuilder.hpp

References Acts::PassiveLayerBuilder::Config::layerIdentification, and m_cfg.

const Logger& Acts::PassiveLayerBuilder::logger ( ) const
inlineprivate

Definition at line 121 of file PassiveLayerBuilder.hpp.

View newest version in sPHENIX GitHub at line 121 of file PassiveLayerBuilder.hpp

References m_logger.

const Acts::LayerVector Acts::PassiveLayerBuilder::negativeLayers ( const GeometryContext gctx) const
overridevirtual

LayerBuilder interface method

Parameters
gctxist the geometry context under which the geometry is built
Returns
the layers at negative side

Implements Acts::ILayerBuilder.

Definition at line 45 of file PassiveLayerBuilder.cpp.

View newest version in sPHENIX GitHub at line 45 of file PassiveLayerBuilder.cpp

const Acts::LayerVector Acts::PassiveLayerBuilder::positiveLayers ( const GeometryContext gctx) const
overridevirtual

LayerBuilder interface method

Parameters
gctxist the geometry context under which the geometry is built
Returns
the layers at positive side

Implements Acts::ILayerBuilder.

Definition at line 40 of file PassiveLayerBuilder.cpp.

View newest version in sPHENIX GitHub at line 40 of file PassiveLayerBuilder.cpp

void Acts::PassiveLayerBuilder::setConfiguration ( const Config plConfig)

Set configuration method

Parameters
plConfigis a configuration struct it overwrites the current configuration

<

Definition at line 29 of file PassiveLayerBuilder.cpp.

View newest version in sPHENIX GitHub at line 29 of file PassiveLayerBuilder.cpp

Referenced by PassiveLayerBuilder().

+ Here is the caller graph for this function:

void Acts::PassiveLayerBuilder::setLogger ( std::unique_ptr< const Logger newLogger)

Set logging instance

Parameters
newLoggerthe logger instance

Definition at line 35 of file PassiveLayerBuilder.cpp.

View newest version in sPHENIX GitHub at line 35 of file PassiveLayerBuilder.cpp

Member Data Documentation

Config Acts::PassiveLayerBuilder::m_cfg
protected

configuration

Definition at line 109 of file PassiveLayerBuilder.hpp.

View newest version in sPHENIX GitHub at line 109 of file PassiveLayerBuilder.hpp

Referenced by getConfiguration(), and identification().

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

logging instance

Definition at line 124 of file PassiveLayerBuilder.hpp.

View newest version in sPHENIX GitHub at line 124 of file PassiveLayerBuilder.hpp

Referenced by logger().


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