EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::DD4hep::DD4hepGeometryService Class Referencefinal

service creating geometries from dd4hep input More...

#include <acts/blob/sPHENIX/Examples/Detectors/DD4hepDetector/include/ActsExamples/DD4hepDetector/DD4hepGeometryService.hpp>

+ Inheritance diagram for ActsExamples::DD4hep::DD4hepGeometryService:
+ Collaboration diagram for ActsExamples::DD4hep::DD4hepGeometryService:

Classes

struct  Config
 

Public Member Functions

 DD4hepGeometryService (const Config &cfg)
 
 ~DD4hepGeometryService () finaloverride
 
dd4hep::DetElement dd4hepGeometry ()
 
TGeoNode * tgeoGeometry ()
 
dd4hep::Detector * lcdd ()
 Interface method to access to the interface of the DD4hep geometry.
 
std::unique_ptr< const
Acts::TrackingGeometry
trackingGeometry (const Acts::GeometryContext &gctx)
 
- Public Member Functions inherited from ActsExamples::BareService
 BareService (std::string name, Acts::Logging::Level level=Acts::Logging::INFO)
 
std::string name () const finaloverride
 The service name.
 
void startRun () override
 Default noop implementation for the start-of-run hook.
 
void prepare (AlgorithmContext &ctx) override
 Default noop implementation for the per-event prepare hook.
 
- Public Member Functions inherited from ActsExamples::IService
virtual ~IService ()=default
 

Private Member Functions

ActsExamples::ProcessCode buildDD4hepGeometry ()
 Private method to initiate building of the DD4hep geometry.
 
ActsExamples::ProcessCode buildTrackingGeometry (const Acts::GeometryContext &gctx)
 Private method to initiate building of the ACTS tracking geometry.
 

Private Attributes

Config m_cfg
 The config class.
 
dd4hep::Detector * m_lcdd = nullptr
 Pointer to the interface to the DD4hep geometry.
 
dd4hep::DetElement m_dd4hepGeometry
 The world DD4hep DetElement.
 
std::unique_ptr< const
Acts::TrackingGeometry
m_trackingGeometry
 The ACTS TrackingGeometry.
 

Additional Inherited Members

- Protected Member Functions inherited from ActsExamples::BareService
const Acts::Loggerlogger () const
 

Detailed Description

service creating geometries from dd4hep input

The DD4hepGeometryService creates the DD4hep, the TGeo and the ACTS TrackingGeometry from DD4hep xml input. The geometries are created only on demand.

Definition at line 35 of file DD4hepGeometryService.hpp.

View newest version in sPHENIX GitHub at line 35 of file DD4hepGeometryService.hpp

Constructor & Destructor Documentation

ActsExamples::DD4hep::DD4hepGeometryService::DD4hepGeometryService ( const Config cfg)

Definition at line 20 of file DD4hepGeometryService.cpp.

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

ActsExamples::DD4hep::DD4hepGeometryService::~DD4hepGeometryService ( )
finaloverride

Definition at line 24 of file DD4hepGeometryService.cpp.

View newest version in sPHENIX GitHub at line 24 of file DD4hepGeometryService.cpp

Member Function Documentation

ActsExamples::ProcessCode ActsExamples::DD4hep::DD4hepGeometryService::buildDD4hepGeometry ( )
private

Private method to initiate building of the DD4hep geometry.

Definition at line 30 of file DD4hepGeometryService.cpp.

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

References eicpy.qaplots::file, and SUCCESS.

ActsExamples::ProcessCode ActsExamples::DD4hep::DD4hepGeometryService::buildTrackingGeometry ( const Acts::GeometryContext gctx)
private

Private method to initiate building of the ACTS tracking geometry.

Definition at line 63 of file DD4hepGeometryService.cpp.

View newest version in sPHENIX GitHub at line 63 of file DD4hepGeometryService.cpp

References Acts::convertDD4hepDetector(), and SUCCESS.

+ Here is the call graph for this function:

dd4hep::DetElement ActsExamples::DD4hep::DD4hepGeometryService::dd4hepGeometry ( )

Interface method to access the DD4hep geometry

Returns
The world DD4hep DetElement

Definition at line 43 of file DD4hepGeometryService.cpp.

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

dd4hep::Detector* ActsExamples::DD4hep::DD4hepGeometryService::lcdd ( )

Interface method to access to the interface of the DD4hep geometry.

TGeoNode * ActsExamples::DD4hep::DD4hepGeometryService::tgeoGeometry ( )

Interface method to Access the TGeo geometry

Returns
The world TGeoNode (physical volume)

Definition at line 56 of file DD4hepGeometryService.cpp.

View newest version in sPHENIX GitHub at line 56 of file DD4hepGeometryService.cpp

std::unique_ptr< const Acts::TrackingGeometry > ActsExamples::DD4hep::DD4hepGeometryService::trackingGeometry ( const Acts::GeometryContext gctx)

Interface method to access the ACTS TrackingGeometry

Parameters
gctxis the geometry context object

Definition at line 75 of file DD4hepGeometryService.cpp.

View newest version in sPHENIX GitHub at line 75 of file DD4hepGeometryService.cpp

Member Data Documentation

Config ActsExamples::DD4hep::DD4hepGeometryService::m_cfg
private

The config class.

Definition at line 99 of file DD4hepGeometryService.hpp.

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

dd4hep::DetElement ActsExamples::DD4hep::DD4hepGeometryService::m_dd4hepGeometry
private

The world DD4hep DetElement.

Definition at line 103 of file DD4hepGeometryService.hpp.

View newest version in sPHENIX GitHub at line 103 of file DD4hepGeometryService.hpp

dd4hep::Detector* ActsExamples::DD4hep::DD4hepGeometryService::m_lcdd = nullptr
private

Pointer to the interface to the DD4hep geometry.

Definition at line 101 of file DD4hepGeometryService.hpp.

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

std::unique_ptr<const Acts::TrackingGeometry> ActsExamples::DD4hep::DD4hepGeometryService::m_trackingGeometry
private

The ACTS TrackingGeometry.

Definition at line 105 of file DD4hepGeometryService.hpp.

View newest version in sPHENIX GitHub at line 105 of file DD4hepGeometryService.hpp


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