Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::DD4hep::DD4hepGeometryService Class Reference

service creating geometries from dd4hep input More...

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

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

Classes

struct  Config
 

Public Member Functions

 DD4hepGeometryService (const Config &cfg)
 
 ~DD4hepGeometryService ()
 
dd4hep::Detector & detector ()
 Interface method to access to the DD4hep geometry.
 
dd4hep::DetElement & geometry ()
 
TGeoNode & tgeoGeometry ()
 
std::shared_ptr< const
Acts::TrackingGeometry
trackingGeometry (const Acts::GeometryContext &gctx)
 

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.
 
const Acts::Loggerlogger () const
 

Private Attributes

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

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 50 of file DD4hepGeometryService.hpp.

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

Constructor & Destructor Documentation

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

Definition at line 27 of file DD4hepGeometryService.cpp.

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

References Acts::getDefaultLogger(), and ActsExamples::DD4hep::DD4hepGeometryService::Config::logLevel.

+ Here is the call graph for this function:

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

Member Function Documentation

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

Private method to initiate building of the DD4hep geometry.

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

Private method to initiate building of the ACTS tracking geometry.

dd4hep::Detector& ActsExamples::DD4hep::DD4hepGeometryService::detector ( )

Interface method to access to the DD4hep geometry.

dd4hep::DetElement& ActsExamples::DD4hep::DD4hepGeometryService::geometry ( )

Interface method to access the DD4hep geometry

Returns
The world DD4hep DetElement
const Acts::Logger& ActsExamples::DD4hep::DD4hepGeometryService::logger ( ) const
inlineprivate

Definition at line 128 of file DD4hepGeometryService.hpp.

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

References m_logger.

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

Interface method to Access the TGeo geometry

Returns
The world TGeoNode (physical volume)
std::shared_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

Member Data Documentation

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

The config class.

Definition at line 120 of file DD4hepGeometryService.hpp.

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

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

Pointer to the interface to the DD4hep geometry.

Definition at line 122 of file DD4hepGeometryService.hpp.

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

dd4hep::DetElement ActsExamples::DD4hep::DD4hepGeometryService::m_geometry
private

The world DD4hep DetElement.

Definition at line 124 of file DD4hepGeometryService.hpp.

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

std::unique_ptr<const Acts::Logger> ActsExamples::DD4hep::DD4hepGeometryService::m_logger
private

Definition at line 130 of file DD4hepGeometryService.hpp.

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

Referenced by logger().

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

The ACTS TrackingGeometry.

Definition at line 126 of file DD4hepGeometryService.hpp.

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


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