LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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 
37  static G4VPhysicalVolume* GetWorld() { return fWorld; }
38 
40  static G4FieldManager* GetFieldMgr() { return fFieldMgr; }
41 
42  private:
43  static G4VPhysicalVolume* fWorld;
44  static G4FieldManager* fFieldMgr;
45 
46  };
47 
48 } // namespace g4b
49 
50 #endif // G4BASE_DetectorConstruction_h
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()