GGS(GenericGEANT4Simulation)Software  2.99.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations 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 "G4GenericMessenger.hh"
16 #include "G4VUserDetectorConstruction.hh"
18 #include "globals.hh"
19 
20 class G4VPhysicalVolume;
21 
22 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
23 
30 class GGSDetectorConstruction : public G4VUserDetectorConstruction {
31 public:
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 &gdxml);
61 
64 
72  G4VPhysicalVolume *Construct();
73  void ConstructSDandField();
74 
79  const G4VPhysicalVolume *GetPhysicalWorld() const { return _physicalWorld; }
80 
85  const GGSVGeometryConstruction *GetGeometry() const { return _geometry; }
86 
87 private:
88  G4VPhysicalVolume *_physicalWorld; // pointer to the physical world volume
89 
90  GGSVGeometryConstruction *_geometry;
91  G4String _library;
92  G4String _configDataCard;
93  G4String _gdxml; // gdml or xml (DD4hep) geometry file
94  G4GenericMessenger _messenger;
95  int _nToPrintForVectGeoParams;
96 };
97 
98 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
99 
100 #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.