k4SimGeant4
Loading...
Searching...
No Matches
GeoSvc Class Reference

#include <Detector/DetComponents/src/GeoSvc.h>

Inheritance diagram for GeoSvc:
Collaboration diagram for GeoSvc:

Public Member Functions

 GeoSvc (const std::string &name, ISvcLocator *svc)
 
virtual StatusCode initialize () final
 
virtual StatusCode finalize () final
 
StatusCode buildDD4HepGeo ()
 
StatusCode buildGeant4Geo ()
 
virtual dd4hep::DetElement getDD4HepGeo () override
 
virtual dd4hep::Detector * getDetector () override
 
virtual std::string constantAsString (std::string const &name) override
 
virtual G4VUserDetectorConstruction * getGeant4Geo () override
 

Private Attributes

dd4hep::Detector * m_dd4hepgeo {nullptr}
 
std::shared_ptr< G4VUserDetectorConstruction > m_geant4geo {nullptr}
 
Gaudi::Property< std::vector< std::string > > m_xmlFileNames {this, "detectors", {}, "Detector descriptions XML-files"}
 
Gaudi::Property< std::map< std::string, std::string > > m_sensitive_types
 
Gaudi::Property< bool > m_buildGeant4Geo
 

Constructor & Destructor Documentation

◆ GeoSvc()

GeoSvc::GeoSvc ( const std::string & name,
ISvcLocator * svc )

Member Function Documentation

◆ buildDD4HepGeo()

StatusCode GeoSvc::buildDD4HepGeo ( )

◆ buildGeant4Geo()

StatusCode GeoSvc::buildGeant4Geo ( )

◆ constantAsString()

std::string GeoSvc::constantAsString ( std::string const & name)
overridevirtual

◆ finalize()

StatusCode GeoSvc::finalize ( )
finalvirtual

◆ getDD4HepGeo()

dd4hep::DetElement GeoSvc::getDD4HepGeo ( )
overridevirtual

◆ getDetector()

dd4hep::Detector * GeoSvc::getDetector ( )
overridevirtual

◆ getGeant4Geo()

G4VUserDetectorConstruction * GeoSvc::getGeant4Geo ( )
overridevirtual

◆ initialize()

StatusCode GeoSvc::initialize ( )
finalvirtual

Member Data Documentation

◆ m_buildGeant4Geo

Gaudi::Property<bool> GeoSvc::m_buildGeant4Geo
private
Initial value:
{this, "EnableGeant4Geo", true,
"If True the DD4hep geometry is converted for Geant4 Simulations"}

◆ m_dd4hepgeo

dd4hep::Detector* GeoSvc::m_dd4hepgeo {nullptr}
private

◆ m_geant4geo

std::shared_ptr<G4VUserDetectorConstruction> GeoSvc::m_geant4geo {nullptr}
private

◆ m_sensitive_types

Gaudi::Property<std::map<std::string, std::string> > GeoSvc::m_sensitive_types
private
Initial value:
{
this, "sensitiveTypes", {{"tracker", "SimpleTrackerSD"}, {"calorimeter", "SimpleCalorimeterSD"}}}

◆ m_xmlFileNames

Gaudi::Property<std::vector<std::string> > GeoSvc::m_xmlFileNames {this, "detectors", {}, "Detector descriptions XML-files"}
private

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