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

service creating geometries from dd4hep input More...

#include <acts/blob/master/Examples/Detectors/DD4hepDetector/include/ACTFW/DD4hepDetector/DD4hepGeometryService.hpp>

+ Inheritance diagram for FW::DD4hep::DD4hepGeometryService:
+ Collaboration diagram for FW::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 FW::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 FW::IService
virtual ~IService ()=default
 

Private Member Functions

FW::ProcessCode buildDD4hepGeometry ()
 Private method to initiate building of the DD4hep geometry.
 
FW::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
 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 FW::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 34 of file DD4hepGeometryService.hpp.

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

Constructor & Destructor Documentation

FW::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

FW::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

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

Private method to initiate building of the DD4hep geometry.

Definition at line 29 of file DD4hepGeometryService.cpp.

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

References file, and SUCCESS.

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

Private method to initiate building of the ACTS tracking geometry.

Definition at line 60 of file DD4hepGeometryService.cpp.

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

References Acts::convertDD4hepDetector(), and SUCCESS.

+ Here is the call graph for this function:

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

Interface method to access the DD4hep geometry

Returns
The world DD4hep DetElement

Definition at line 41 of file DD4hepGeometryService.cpp.

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

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

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

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

Interface method to Access the TGeo geometry

Returns
The world TGeoNode (physical volume)

Definition at line 54 of file DD4hepGeometryService.cpp.

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

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

Interface method to access the ACTS TrackingGeometry

Parameters
gctxis the geometry context object

Definition at line 72 of file DD4hepGeometryService.cpp.

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

Member Data Documentation

Config FW::DD4hep::DD4hepGeometryService::m_cfg
private

The config class.

Definition at line 97 of file DD4hepGeometryService.hpp.

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

dd4hep::DetElement FW::DD4hep::DD4hepGeometryService::m_dd4hepGeometry
private

The world DD4hep DetElement.

Definition at line 101 of file DD4hepGeometryService.hpp.

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

dd4hep::Detector* FW::DD4hep::DD4hepGeometryService::m_lcdd
private

Pointer to the interface to the DD4hep geometry.

Definition at line 99 of file DD4hepGeometryService.hpp.

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

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

The ACTS TrackingGeometry.

Definition at line 103 of file DD4hepGeometryService.hpp.

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


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