Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Em10DetectorConstruction.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 /// \file electromagnetic/TestEm10/include/Em10DetectorConstruction.hh
27 /// \brief Definition of the Em10DetectorConstruction class
28 //
29 //
30 // $Id: Em10DetectorConstruction.hh 73033 2013-08-15 09:24:45Z gcosmo $
31 //
32 //
33 
34 #ifndef Em10DetectorConstruction_h
35 #define Em10DetectorConstruction_h 1
36 
38 #include "globals.hh"
39 #include "G4ios.hh"
40 
41 class G4Box;
42 class G4Tubs;
43 class G4LogicalVolume;
44 class G4VPhysicalVolume;
45 class G4Material;
46 class G4Region;
47 class G4UniformMagField;
49 class Em10CalorimeterSD;
50 class G4Region;
51 class Em10Materials;
52 
53 
55 {
56  public:
57 
60 
61  public:
62 
67 
70 
72 
73  void SetFoilNumber (G4int i) {fFoilNumber = i; };
74 
76  void SetWorldSizeZ(G4double);
77  void SetWorldSizeR(G4double);
78  void SetDetectorSetUp(G4String s) {fSetUp = s;};
79 
80 
81  void SetMagField(G4double);
82 
84 
85  void UpdateGeometry();
86 
87  public:
88 
90 
91  G4Material* GetWorldMaterial() {return fWorldMaterial;};
92  G4double GetWorldSizeZ() {return fWorldSizeZ;};
93  G4double GetWorldSizeR() {return fWorldSizeR;};
94 
95  G4double GetAbsorberZpos() {return fAbsorberZ;};
96 
97  G4Material* GetAbsorberMaterial() {return fAbsorberMaterial;};
98  G4double GetAbsorberThickness() {return fAbsorberThickness;};
99  G4double GetAbsorberRadius() {return fAbsorberRadius;};
100 
101  const G4VPhysicalVolume* GetphysiWorld() {return fPhysicsWorld;};
102  const G4VPhysicalVolume* GetAbsorber() {return fPhysicsAbsorber;};
103  G4LogicalVolume* GetLogicalAbsorber() {return fLogicAbsorber;};
104 
105  G4LogicalVolume* GetLogicalRadiator() {return fLogicRadiator;};
106  G4double GetFoilThick() {return fRadThickness;};
107  G4double GetGasThick() {return fGasGap;};
108  G4int GetFoilNumber() {return fFoilNumber;};
109  G4Material* GetFoilMaterial() {return fFoilMat;};
110  G4Material* GetGasMaterial() {return fGasMat;};
111 
112 private:
113 
114  G4VPhysicalVolume* ConstructDetectorXTR();
115 
116  G4VPhysicalVolume* SimpleSetUpALICE();
117  G4VPhysicalVolume* SetUpALICE06();
118  G4VPhysicalVolume* SetUpBari05();
119  G4VPhysicalVolume* SetUpHarris73();
120  G4VPhysicalVolume* SetUpWatase86();
121  G4VPhysicalVolume* SetUpBarr90();
122 
123  void TestOld();
124 
125 private:
126 
127  G4bool fWorldChanged;
128  G4Material* fAbsorberMaterial;
129  G4double fAbsorberThickness;
130  G4double fAbsorberRadius;
131 
132  G4Material* fPipeMat;
133 
134  G4Material* fWindowMat;
135  G4double fWindowThick;
136 
137  G4Material* fElectrodeMat;
138  G4double fElectrodeThick;
139 
140  G4Material* fGapMat;
141  G4double fGapThick;
142 
143  G4double fAbsorberZ;
144  // G4double zstartAbs , zendAbs;
145  G4String fSetUp;
146 
147  G4Material* fWorldMaterial;
148  G4double fWorldSizeR;
149  G4double fWorldSizeZ;
150 
151  G4Box* fSolidWorld; //pointer to the solid World
152  G4LogicalVolume* fLogicWorld; //pointer to the logical World
153  G4VPhysicalVolume* fPhysicsWorld; //pointer to the physical World
154 
155  // TR radiator volumes and dimensions
156 
157 // G4Box* fSolidRadSlice; // pointer to the solid z-slice
158 // G4LogicalVolume* fLogicRadSlice; // pointer to the logical z-slide
159 // G4VPhysicalVolume* fPhysicRadSlice; // pointer to the physical z-slide
160 
161 // G4Box* fSolidRadRing; // pointer to the solid R-slice
162 // G4LogicalVolume* fLogicRadRing; // pointer to the logical R-slide
163 // G4VPhysicalVolume* fPhysicRadRing; // pointer to the physical R-slide
164 
165  G4Box* fSolidRadiator;
166  G4LogicalVolume* fLogicRadiator;
167  G4VPhysicalVolume* fPhysicsRadiator;
168 
169  G4Material* fRadiatorMat; // pointer to the mixed TR radiator material
170  G4Material* fFoilMat; // pointer to the TR foil radiator material
171  G4Material* fGasMat; // pointer to the TR gas radiator material
172 
173  G4double fRadThickness;
174  G4double fGasGap;
175  G4double foilGasRatio;
176 
177  G4int fFoilNumber;
178 
179  G4double fDetThickness;
180  G4double fDetLength;
181  G4double fDetGap;
182 
183  G4double fStartR;
184  G4double fStartZ;
185 
186  G4int fModuleNumber; // the number of Rad-Det modules
187 
188  G4double fRadThick;
189  G4double fMylarThick;
190  G4double fPipeLength;
191  G4bool fPipe;
192  G4bool fPipeField;
193  G4double fRadZ;
194  G4double fWindowZ;
195  G4double fGapZ;
196  G4double fElectrodeZ;
197 
198  G4Box* fSolidAbsorber; //pointer to the solid Absorber
199  G4LogicalVolume* fLogicAbsorber; //pointer to the logical Absorber
200  G4VPhysicalVolume* fPhysicsAbsorber; //pointer to the physical Absorber
201 
202  G4UniformMagField* fMagField; //pointer to the magnetic field
203 
204  // G4double fElectronCut, fGammaCut, fPositronCut;
205 
206  Em10DetectorMessenger* fDetectorMessenger; //pointer to the Messenger
207  Em10CalorimeterSD* fCalorimeterSD; //pointer to the sensitive detector
208  G4Region* fRegGasDet;
209  G4Region* fRadRegion;
210  Em10Materials* fMat;
211 
212 };
213 
214 #endif
const XML_Char * s
Definition: G4Box.hh:63
Definition: G4Tubs.hh:84
int G4int
Definition: G4Types.hh:78
G4LogicalVolume * GetLogicalAbsorber()
bool G4bool
Definition: G4Types.hh:79
const G4VPhysicalVolume * GetphysiWorld()
const G4VPhysicalVolume * GetAbsorber()
double G4double
Definition: G4Types.hh:76
G4LogicalVolume * GetLogicalRadiator()