k4SimGeant4
Loading...
Searching...
No Matches
GeoToGdmlDumpSvc.h
Go to the documentation of this file.
1#ifndef EXAMPLES_GEOTOGDMLDUMPSVC_H
2#define EXAMPLES_GEOTOGDMLDUMPSVC_H
3
5
6// Gaudi
7#include "GaudiKernel/Service.h"
8
16class GeoToGdmlDumpSvc : public extends1<Service, ITestDD4hepSvc> {
17public:
19 explicit GeoToGdmlDumpSvc(const std::string& name, ISvcLocator* svcLoc);
21 virtual StatusCode initialize();
23 virtual StatusCode finalize();
25 virtual ~GeoToGdmlDumpSvc() {}
26
27private:
29 Gaudi::Property<std::string> m_gdmlFileName{this, "gdml", "GeantDetector.gdml", "Output GDML file name"};
30};
31
32#endif /* EXAMPLES_GEOTOGDMLDUMPSVC_H */
Service that dumps the geometry retrieved from the DD4hep GeoSvc to GDML file.
Definition GeoToGdmlDumpSvc.h:16
virtual ~GeoToGdmlDumpSvc()
Destructor.
Definition GeoToGdmlDumpSvc.h:25
virtual StatusCode finalize()
Finalize.
Definition GeoToGdmlDumpSvc.cpp:26
GeoToGdmlDumpSvc(const std::string &name, ISvcLocator *svcLoc)
Constructor.
Definition GeoToGdmlDumpSvc.cpp:9
Gaudi::Property< std::string > m_gdmlFileName
Name of the GDML output file.
Definition GeoToGdmlDumpSvc.h:29
virtual StatusCode initialize()
Initialize.
Definition GeoToGdmlDumpSvc.cpp:11