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

#include <acts/blob/sPHENIX/Core/include/Acts/Geometry/TrackingGeometryBuilder.hpp>

+ Inheritance diagram for Acts::TrackingGeometryBuilder:
+ Collaboration diagram for Acts::TrackingGeometryBuilder:

Classes

struct  Config
 

Public Member Functions

 TrackingGeometryBuilder (const Config &cgbConfig, std::unique_ptr< const Logger > logger=getDefaultLogger("TrackingGeometryBuilder", Logging::INFO))
 
 ~TrackingGeometryBuilder () override=default
 Destructor.
 
std::unique_ptr< const
TrackingGeometry
trackingGeometry (const GeometryContext &gctx) const final
 
void setConfiguration (const Config &cgbConfig)
 
Config getConfiguration () const
 
void setLogger (std::unique_ptr< const Logger > newLogger)
 
- Public Member Functions inherited from Acts::ITrackingGeometryBuilder
virtual ~ITrackingGeometryBuilder ()=default
 Virtual destructor.
 

Private Member Functions

const Loggerlogger () const
 Private access method to the logger.
 

Private Attributes

Config m_cfg
 Configuration member.
 
std::unique_ptr< const Loggerm_logger
 the logging instance
 

Detailed Description

The Acts::TrackingGeometry Builder for volumes that wrap around another

It retrieves an array of ITrackingVolumeBuilder tools that are configured to be built in sequence, where the output of one volume builder is provided to the next volume volume builder and accordingly

  • contained (e.g. a final insertion of a beam pipe of longer extend)
  • wrapped (e.g. an outer detector wrapping an inner one)
  • attached (e.g. a neighbor detector attaching to the previous one)

The returned volume of each step must be processable by the previous step

Definition at line 37 of file TrackingGeometryBuilder.hpp.

View newest version in sPHENIX GitHub at line 37 of file TrackingGeometryBuilder.hpp

Constructor & Destructor Documentation

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

Constructor

Parameters
[in]cgbConfigis the configuration struct for this builder
[in]loggerlogging instance

Definition at line 23 of file TrackingGeometryBuilder.cpp.

View newest version in sPHENIX GitHub at line 23 of file TrackingGeometryBuilder.cpp

References setConfiguration().

+ Here is the call graph for this function:

Acts::TrackingGeometryBuilder::~TrackingGeometryBuilder ( )
overridedefault

Destructor.

Member Function Documentation

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

Get configuration method

Returns
the current configuration

Definition at line 100 of file TrackingGeometryBuilder.hpp.

View newest version in sPHENIX GitHub at line 100 of file TrackingGeometryBuilder.hpp

References m_cfg.

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

Private access method to the logger.

Definition at line 93 of file TrackingGeometryBuilder.hpp.

View newest version in sPHENIX GitHub at line 93 of file TrackingGeometryBuilder.hpp

References m_logger.

void Acts::TrackingGeometryBuilder::setConfiguration ( const Config cgbConfig)

Set configuration method

Parameters
cgbConfigis the new configuration struct

Definition at line 30 of file TrackingGeometryBuilder.cpp.

View newest version in sPHENIX GitHub at line 30 of file TrackingGeometryBuilder.cpp

Referenced by TrackingGeometryBuilder().

+ Here is the caller graph for this function:

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

set logging instance

Parameters
newLoggerthe new logging instance

Definition at line 37 of file TrackingGeometryBuilder.cpp.

View newest version in sPHENIX GitHub at line 37 of file TrackingGeometryBuilder.cpp

std::unique_ptr< const Acts::TrackingGeometry > Acts::TrackingGeometryBuilder::trackingGeometry ( const GeometryContext gctx) const
finalvirtual

TrackingGeometry Interface method

Parameters
gctxgeometry context of that building call
Returns
a unique pointer to a TrackingGeometry

Implements Acts::ITrackingGeometryBuilder.

Definition at line 43 of file TrackingGeometryBuilder.cpp.

View newest version in sPHENIX GitHub at line 43 of file TrackingGeometryBuilder.cpp

References Acts::trackingGeometry().

Referenced by Acts::Test::BOOST_AUTO_TEST_CASE(), and Acts::EventDataView3DTest::testMultiTrajectory().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

Config Acts::TrackingGeometryBuilder::m_cfg
private

Configuration member.

Definition at line 90 of file TrackingGeometryBuilder.hpp.

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

Referenced by getConfiguration().

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

the logging instance

Definition at line 96 of file TrackingGeometryBuilder.hpp.

View newest version in sPHENIX GitHub at line 96 of file TrackingGeometryBuilder.hpp

Referenced by logger().


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