LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ExN03DetectorConstruction.hh
Go to the documentation of this file.
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 //
27 //
28 //
29 
30 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
32 
33 #ifndef ExN03DetectorConstruction_h
34 #define ExN03DetectorConstruction_h 1
35 
36 #include "G4VUserDetectorConstruction.hh"
37 #include "globals.hh"
38 
39 class G4Box;
40 class G4LogicalVolume;
41 class G4VPhysicalVolume;
42 class G4Material;
43 class G4UniformMagField;
45 
46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
47 
48 class ExN03DetectorConstruction : public G4VUserDetectorConstruction
49 {
50  public:
51 
54 
55  public:
56 
58  void SetAbsorberThickness(G4double);
59 
60  void SetGapMaterial (G4String);
61  void SetGapThickness(G4double);
62 
63  void SetCalorSizeYZ(G4double);
64  void SetNbOfLayers (G4int);
65 
66  void SetMagField(G4double);
67 
68  G4VPhysicalVolume* Construct();
69 
70  void UpdateGeometry();
71 
72  public:
73 
74  void PrintCalorParameters();
75 
76  G4double GetWorldSizeX() {return WorldSizeX;};
77  G4double GetWorldSizeYZ() {return WorldSizeYZ;};
78 
79  G4double GetCalorThickness() {return CalorThickness;};
80  G4double GetCalorSizeYZ() {return CalorSizeYZ;};
81 
82  G4int GetNbOfLayers() {return NbOfLayers;};
83 
84  G4Material* GetAbsorberMaterial() {return AbsorberMaterial;};
85  G4double GetAbsorberThickness() {return AbsorberThickness;};
86 
87  G4Material* GetGapMaterial() {return GapMaterial;};
88  G4double GetGapThickness() {return GapThickness;};
89 
90  const G4VPhysicalVolume* GetphysiWorld() {return physiWorld;};
91  const G4VPhysicalVolume* GetAbsorber() {return physiAbsorber;};
92  const G4VPhysicalVolume* GetGap() {return physiGap;};
93 
94  private:
95 
96  G4Material* AbsorberMaterial;
98 
99  G4Material* GapMaterial;
100  G4double GapThickness;
101 
102  G4int NbOfLayers;
103  G4double LayerThickness;
104 
105  G4double CalorSizeYZ;
106  G4double CalorThickness;
107 
108  G4Material* defaultMaterial;
109  G4double WorldSizeYZ;
110  G4double WorldSizeX;
111 
112  G4Box* solidWorld; //pointer to the solid World
113  G4LogicalVolume* logicWorld; //pointer to the logical World
114  G4VPhysicalVolume* physiWorld; //pointer to the physical World
115 
116  G4Box* solidCalor; //pointer to the solid Calor
117  G4LogicalVolume* logicCalor; //pointer to the logical Calor
118  G4VPhysicalVolume* physiCalor; //pointer to the physical Calor
119 
120  G4Box* solidLayer; //pointer to the solid Layer
121  G4LogicalVolume* logicLayer; //pointer to the logical Layer
122  G4VPhysicalVolume* physiLayer; //pointer to the physical Layer
123 
124  G4Box* solidAbsorber; //pointer to the solid Absorber
125  G4LogicalVolume* logicAbsorber; //pointer to the logical Absorber
126  G4VPhysicalVolume* physiAbsorber; //pointer to the physical Absorber
127 
128  G4Box* solidGap; //pointer to the solid Gap
129  G4LogicalVolume* logicGap; //pointer to the logical Gap
130  G4VPhysicalVolume* physiGap; //pointer to the physical Gap
131 
132  G4UniformMagField* magField; //pointer to the magnetic field
133 
134  ExN03DetectorMessenger* detectorMessenger; //pointer to the Messenger
135 
136  private:
137 
138  void DefineMaterials();
139  void ComputeCalorParameters();
140  G4VPhysicalVolume* ConstructCalorimeter();
141 };
142 
143 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
144 
146 {
147  // Compute derived parameters of the calorimeter
150 
152 }
153 
154 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
155 
156 #endif
157 
const G4VPhysicalVolume * GetphysiWorld()
const G4VPhysicalVolume * GetAbsorber()
ExN03DetectorMessenger * detectorMessenger
G4VPhysicalVolume * ConstructCalorimeter()
const G4VPhysicalVolume * GetGap()