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

build confined TrackingVolumes of one cylinder setup from DD4hep input. More...

#include <acts/blob/master/Plugins/DD4hep/include/Acts/Plugins/DD4hep/DD4hepVolumeBuilder.hpp>

+ Inheritance diagram for Acts::DD4hepVolumeBuilder:
+ Collaboration diagram for Acts::DD4hepVolumeBuilder:

Classes

struct  Config
 

Public Member Functions

 DD4hepVolumeBuilder (const Acts::DD4hepVolumeBuilder::Config &config, std::unique_ptr< const Logger > logger)
 
 ~DD4hepVolumeBuilder () override
 Destructor.
 
MutableTrackingVolumeVector centralVolumes () const final
 Builder method for cylindrical, confined volume.
 
const std::string & identification () const final
 
void setConfiguration (const Config &config)
 
Config getConfiguration () const
 
void setLogger (std::unique_ptr< const Logger > logger)
 
- Public Member Functions inherited from Acts::IConfinedTrackingVolumeBuilder
virtual ~IConfinedTrackingVolumeBuilder ()=default
 Virtual destructor.
 

Private Member Functions

const Loggerlogger () const
 
std::shared_ptr< const
Acts::Transform3D
convertTransform (const TGeoMatrix *tGeoTrans) const
 Converter of the transformation of a volume from DD4hep to Acts formalism.
 

Private Attributes

Config m_cfg
 Configruation object.
 
std::unique_ptr< const Loggerm_logger
 Logging instance.
 

Detailed Description

build confined TrackingVolumes of one cylinder setup from DD4hep input.

This class is an implementation of the Acts::IConfinedTrackingVolumeBuilder, creating the central (volumes of barrel), the negative and positive volumes (volumes of endcaps) of one hierarchy (e.g. ECal, HCal...) with input from DD4hep.

Definition at line 36 of file DD4hepVolumeBuilder.hpp.

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

Constructor & Destructor Documentation

Acts::DD4hepVolumeBuilder::DD4hepVolumeBuilder ( const Acts::DD4hepVolumeBuilder::Config config,
std::unique_ptr< const Logger logger 
)

Constructor

Parameters
[in]configis the configuration struct
[in]loggeris the logging instance

Definition at line 21 of file DD4hepVolumeBuilder.cpp.

View newest version in sPHENIX GitHub at line 21 of file DD4hepVolumeBuilder.cpp

References setConfiguration().

+ Here is the call graph for this function:

Acts::DD4hepVolumeBuilder::~DD4hepVolumeBuilder ( )
overridedefault

Destructor.

Member Function Documentation

std::vector< std::shared_ptr< Acts::TrackingVolume > > Acts::DD4hepVolumeBuilder::centralVolumes ( ) const
finalvirtual

Builder method for cylindrical, confined volume.

Returns
The vector of TrackingVolumes at the central sector

Implements Acts::IConfinedTrackingVolumeBuilder.

Definition at line 36 of file DD4hepVolumeBuilder.cpp.

View newest version in sPHENIX GitHub at line 36 of file DD4hepVolumeBuilder.cpp

References Acts::units::_cm, ACTS_ERROR, ACTS_VERBOSE, Acts::TrackingVolume::create(), dz, and Acts::Test::transform.

+ Here is the call graph for this function:

std::shared_ptr< const Acts::Transform3D > Acts::DD4hepVolumeBuilder::convertTransform ( const TGeoMatrix *  tGeoTrans) const
private

Converter of the transformation of a volume from DD4hep to Acts formalism.

Parameters
[in]tGeoTransTransformation of the DD4hep DetElement
Returns
Pointer to the corresponding Acts transformation

Definition at line 99 of file DD4hepVolumeBuilder.cpp.

View newest version in sPHENIX GitHub at line 99 of file DD4hepVolumeBuilder.cpp

References Acts::units::_cm, Acts::TGeoPrimitivesHelpers::makeTransform(), and Acts::Test::transform.

+ Here is the call graph for this function:

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

Get the configuration object

Returns
The used configuration struct

Definition at line 101 of file DD4hepVolumeBuilder.hpp.

View newest version in sPHENIX GitHub at line 101 of file DD4hepVolumeBuilder.hpp

References m_cfg.

const std::string & Acts::DD4hepVolumeBuilder::identification ( ) const
inlinefinalvirtual

Name identification

Returns
The string based identification of this configuration

Implements Acts::IConfinedTrackingVolumeBuilder.

Definition at line 97 of file DD4hepVolumeBuilder.hpp.

View newest version in sPHENIX GitHub at line 97 of file DD4hepVolumeBuilder.hpp

References Acts::DD4hepVolumeBuilder::Config::configurationName, and m_cfg.

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

Private access to the logger

Returns
Used logger

Definition at line 86 of file DD4hepVolumeBuilder.hpp.

View newest version in sPHENIX GitHub at line 86 of file DD4hepVolumeBuilder.hpp

References m_logger.

void Acts::DD4hepVolumeBuilder::setConfiguration ( const Config config)

Set the configuration object

Parameters
[in]Configis the configuration struct

Definition at line 30 of file DD4hepVolumeBuilder.cpp.

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

Referenced by DD4hepVolumeBuilder().

+ Here is the caller graph for this function:

void Acts::DD4hepVolumeBuilder::setLogger ( std::unique_ptr< const Logger logger)

Set logging instance

Parameters
[in]loggerLogger in use

Member Data Documentation

Config Acts::DD4hepVolumeBuilder::m_cfg
private

Configruation object.

Definition at line 79 of file DD4hepVolumeBuilder.hpp.

View newest version in sPHENIX GitHub at line 79 of file DD4hepVolumeBuilder.hpp

Referenced by getConfiguration(), and identification().

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

Logging instance.

Definition at line 82 of file DD4hepVolumeBuilder.hpp.

View newest version in sPHENIX GitHub at line 82 of file DD4hepVolumeBuilder.hpp

Referenced by logger().


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