GGS(GenericGEANT4Simulation)Software  2.7.0
 All Data Structures Namespaces Files Functions Variables Typedefs Macros
GGSDetectorConstruction.h
Go to the documentation of this file.
1 /*
2  * GGSDetectorConstruction.h
3  *
4  * Created on: 2010-09-29
5  * Authors: Emiliano Mocchiutti and Cecilia Pizzolotto
6  */
7 
10 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
11 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
12 #ifndef GGSDETECTORCONSTRUCTION_H_
13 #define GGSDETECTORCONSTRUCTION_H_
14 
15 #include "G4VUserDetectorConstruction.hh"
17 #include "globals.hh"
18 
19 class G4VPhysicalVolume;
20 
21 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
22 
29 class GGSDetectorConstruction : public G4VUserDetectorConstruction {
30 public:
38  GGSDetectorConstruction(const G4String &library, const G4String &configDataCard);
39 
50  GGSDetectorConstruction(const G4String &library, const G4String &detectorFlags, const G4String &configDataCard,
51  bool verbose);
52 
59  GGSDetectorConstruction(const G4String &gdml);
60 
63 
71  G4VPhysicalVolume *Construct();
72  void ConstructSDandField();
73 
78  const G4VPhysicalVolume *GetPhysicalWorld() const { return _physicalWorld; }
79 
84  const GGSVGeometryConstruction *GetGeometry() const { return _geometry; }
85 
86 private:
87  G4VPhysicalVolume *_physicalWorld; // pointer to the physical world volume
88 
89  GGSVGeometryConstruction *_geometry;
90  G4String _library;
91  G4String _configDataCard;
92  G4String _gdml;
93 };
94 
95 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
96 
97 #endif /* GGSDETECTORCONSTRUCTION_H_ */
GGSDetectorConstruction(const G4String &library, const G4String &configDataCard)
Constructor.
const G4VPhysicalVolume * GetPhysicalWorld() const
Returns a pointer to the physical world volume.
Abstract class needed to load GGS geometry.
G4VPhysicalVolume * Construct()
Override of the Construct method.
Class for GGS detector construction.
const GGSVGeometryConstruction * GetGeometry() const
Returns a pointer to the geometry.