k4SimGeant4
Loading...
Searching...
No Matches
SimG4GdmlDetector.h
Go to the documentation of this file.
1#ifndef SIMG4COMPONENTS_G4GDMLDETECTOR_H
2#define SIMG4COMPONENTS_G4GDMLDETECTOR_H
3
4// Gaudi
5#include "GaudiKernel/AlgTool.h"
6
7// FCCSW
9
10// Geant4
11#include "G4GDMLParser.hh"
12
21class SimG4GdmlDetector : public AlgTool, virtual public ISimG4DetectorConstruction {
22public:
23 explicit SimG4GdmlDetector(const std::string& aType, const std::string& aName, const IInterface* aParent);
24 virtual ~SimG4GdmlDetector();
28 virtual StatusCode initialize();
32 virtual StatusCode finalize();
36 virtual G4VUserDetectorConstruction* detectorConstruction();
37
38private:
40 Gaudi::Property<std::string> m_gdmlFile{this, "gdml", "", "name of the GDML file"};
41 // validate gdml schema
42 Gaudi::Property<bool> m_validate{this, "validateGDMLSchema", false, "try to validate the GDML schema"};
43};
44
45#endif /* SIMG4COMPONENTS_G4GDMLDETECTOR_H */
abstract interface to load G4VUserDetectorConstruction
Definition ISimG4DetectorConstruction.h:17
Detector construction tool using the GDML file.
Definition SimG4GdmlDetector.h:21
virtual G4VUserDetectorConstruction * detectorConstruction()
Get the initilization of the geometry.
Definition SimG4GdmlDetector.cpp:21
Gaudi::Property< bool > m_validate
Definition SimG4GdmlDetector.h:42
virtual ~SimG4GdmlDetector()
Definition SimG4GdmlDetector.cpp:16
Gaudi::Property< std::string > m_gdmlFile
name of the GDML file
Definition SimG4GdmlDetector.h:40
virtual StatusCode finalize()
Finalize.
Definition SimG4GdmlDetector.cpp:19
SimG4GdmlDetector(const std::string &aType, const std::string &aName, const IInterface *aParent)
Definition SimG4GdmlDetector.cpp:11
virtual StatusCode initialize()
Initialize.
Definition SimG4GdmlDetector.cpp:18