Analysis Software
Documentation for sPHENIX simulation 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)
 
const ConfiggetConfiguration () 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 std::functions that build the TrackingGeometry sequentially in order, with the following options:

  • 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 36 of file TrackingGeometryBuilder.hpp.

View newest version in sPHENIX GitHub at line 36 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 17 of file TrackingGeometryBuilder.cpp.

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

References setConfiguration().

+ Here is the call graph for this function:

Acts::TrackingGeometryBuilder::~TrackingGeometryBuilder ( )
overridedefault

Destructor.

Member Function Documentation

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

Get configuration method

Returns
the current configuration

Definition at line 25 of file TrackingGeometryBuilder.cpp.

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

References m_cfg().

+ Here is the call graph for this function:

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

Private access method to the logger.

Definition at line 96 of file TrackingGeometryBuilder.hpp.

View newest version in sPHENIX GitHub at line 96 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 29 of file TrackingGeometryBuilder.cpp.

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

References m_cfg(), and Acts::TrackingGeometryBuilder::Config::trackingVolumeBuilders.

Referenced by TrackingGeometryBuilder().

+ Here is the call graph for this function:

+ 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

References m_logger, and testing::internal::move().

+ Here is the call graph for this function:

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_INFO, logger(), m_cfg(), and testing::internal::move().

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

+ 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 93 of file TrackingGeometryBuilder.hpp.

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

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

the logging instance

Definition at line 99 of file TrackingGeometryBuilder.hpp.

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

Referenced by logger().


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