k4SimGeant4
Loading...
Searching...
No Matches
SimG4DD4hepDetector.h
Go to the documentation of this file.
1#ifndef SIMG4COMPONENTS_G4DD4HEPDETECTOR_H
2#define SIMG4COMPONENTS_G4DD4HEPDETECTOR_H
3
4// Gaudi
5#include "GaudiKernel/AlgTool.h"
6
7// FCCSW
9class IGeoSvc;
10
19class SimG4DD4hepDetector : public AlgTool, virtual public ISimG4DetectorConstruction {
20public:
21 explicit SimG4DD4hepDetector(const std::string& aType, const std::string& aName, const IInterface* aParent);
22 virtual ~SimG4DD4hepDetector();
26 virtual StatusCode initialize();
30 virtual StatusCode finalize();
34 virtual G4VUserDetectorConstruction* detectorConstruction();
35
36private:
38 ServiceHandle<IGeoSvc> m_geoSvc;
39};
40
41#endif /* SIMG4COMPONENTS_G4DD4HEPDETECTOR_H */
abstract interface to load G4VUserDetectorConstruction
Definition ISimG4DetectorConstruction.h:17
Detector construction tool using the DD4hep.
Definition SimG4DD4hepDetector.h:19
ServiceHandle< IGeoSvc > m_geoSvc
Pointer to the geometry service.
Definition SimG4DD4hepDetector.h:38
virtual StatusCode finalize()
Finalize.
Definition SimG4DD4hepDetector.cpp:31
virtual StatusCode initialize()
Initialize.
Definition SimG4DD4hepDetector.cpp:19
SimG4DD4hepDetector(const std::string &aType, const std::string &aName, const IInterface *aParent)
Definition SimG4DD4hepDetector.cpp:11
virtual ~SimG4DD4hepDetector()
Definition SimG4DD4hepDetector.cpp:17
virtual G4VUserDetectorConstruction * detectorConstruction()
Get the initilization of the geometry.
Definition SimG4DD4hepDetector.cpp:33