LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
DetectorConstruction.h
Go to the documentation of this file.
1 #ifndef G4BASE_DetectorConstruction_h
9 #define G4BASE_DetectorConstruction_h
10 
11 #include "Geant4/G4VUserDetectorConstruction.hh"
12 
13 // forward declarations
14 class G4VPhysicalVolume;
15 class G4FieldManager;
16 
17 namespace g4b {
18 
19  class DetectorConstruction : public G4VUserDetectorConstruction {
20 
21  public:
23  explicit DetectorConstruction(std::string const& gdmlFile,
24  bool const& overlapCheck = false,
25  bool const& validateSchema = true);
26  virtual ~DetectorConstruction();
27 
31  G4VPhysicalVolume* Construct();
32 
35 
40  static G4VPhysicalVolume* GetWorld() { return fWorld; }
41 
43  static G4FieldManager* GetFieldMgr() { return fFieldMgr; }
44 
45  private:
46  static G4VPhysicalVolume* fWorld;
47  static G4FieldManager* fFieldMgr;
48 
49  };
50 
51 } // namespace g4b
52 
53 #endif // G4BASE_DetectorConstruction_h
void SetCustomMagneticService()
Set a custom Magnetic service.
static G4VPhysicalVolume * GetWorld()
DetectorConstruction(std::string const &gdmlFile, bool const &overlapCheck=false, bool const &validateSchema=true)
Standard constructor and destructor.
static G4FieldManager * GetFieldMgr()
Magnetic field.
basic interface to Geant4 for ART-based software
static G4FieldManager * fFieldMgr
pointer to the field manager
static G4VPhysicalVolume * fWorld
pointer to the world volume
G4VPhysicalVolume * Construct()