/home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/geo/include/RAT/DetectorConstruction.hh Source File

Ratpac-two: /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/geo/include/RAT/DetectorConstruction.hh Source File
Ratpac-two
DetectorConstruction.hh
1 
6 #ifndef __RAT_DetectorConstruction__
7 #define __RAT_DetectorConstruction__
8 
9 #include <G4VUserDetectorConstruction.hh>
10 
11 class G4VPhysicalVolume;
12 
13 namespace RAT {
14 
15 class DetectorConstruction : public G4VUserDetectorConstruction {
16  public:
18  virtual ~DetectorConstruction() {}
19 
20  // Make volumes, return pointer to world
21  virtual G4VPhysicalVolume *Construct();
22 
23  // Called by Construct, provided for convenience
24  void ConstructMaterials();
25 
26  G4VPhysicalVolume *GetWorld() const { return fWorldPhys; }
27 
28  static DetectorConstruction *GetDetectorConstruction();
29 
30  protected:
31  static DetectorConstruction *sDetectorConstruction;
32  G4VPhysicalVolume *fWorldPhys;
33 };
34 
35 } // namespace RAT
36 
37 #endif // __RAT_DetectorConstruction__
Definition: DetectorConstruction.hh:15
Definition: CCCrossSecMessenger.hh:29