GGS(GenericGEANT4Simulation)Software  2.6.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:
31 
39  GGSDetectorConstruction(const G4String &library, const G4String &configDataCard);
40 
51  GGSDetectorConstruction(const G4String &library, const G4String &detectorFlags, const G4String &configDataCard,
52  bool verbose);
53 
60  GGSDetectorConstruction(const G4String &gdml);
61 
64 
72  G4VPhysicalVolume* Construct();
73 
78  const G4VPhysicalVolume* GetPhysicalWorld() const {
79  return _physicalWorld;
80  }
81 
87  return _geometry;
88  }
89 
90 private:
91 
92  G4VPhysicalVolume* _physicalWorld; //pointer to the physical world volume
93 
94  GGSVGeometryConstruction *_geometry;
95  G4String _library;
96  G4String _configDataCard;
97  G4String _gdml;
98 };
99 
100 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
101 
102 #endif /* GGSDETECTORCONSTRUCTION_H_ */
103 
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.