Geant4  10.00.p03
GammaRayTelDetectorConstruction.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 // $Id: GammaRayTelDetectorConstruction.hh 66508 2012-12-19 10:16:45Z gcosmo $
28 // ------------------------------------------------------------
29 // GEANT 4 class header file
30 // CERN Geneva Switzerland
31 //
32 //
33 // ------------ GammaRayTelDetectorConstruction ------
34 // by F.Longo, R.Giannitrapani & G.Santin (13 nov 2000)
35 //
36 // ************************************************************
37 
38 #ifndef GammaRayTelDetectorConstruction_h
39 #define GammaRayTelDetectorConstruction_h 1
40 
42 #include "globals.hh"
43 
44 class G4Box;
45 class G4LogicalVolume;
46 class G4VPhysicalVolume;
47 class G4Material;
48 class G4UniformMagField;
49 class G4Region;
55 
56 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
57 
59 {
60 public:
61 
64 
65 public:
66 
67  void SetNbOfTKRLayers (G4int); // TKR number of layers, material, detector
69  void SetNbOfTKRTiles (G4int);
72 
75 
76  void SetConverterMaterial (G4String); // TKR Converter material & thickness
78 
79  void SetNbOfCALLayers (G4int); // CAL material, lenght, thickness
80  void SetNbOfCALBars (G4int);
82 
83  void SetACDThickness (G4double); //ACD Thickness
84 
85  void SetMagField(G4double); // Magnetic Field
86 
87 
89  void UpdateGeometry();
90 
91 public:
92 
94 
95 
98 
101 
104 
107 
116 
121 
124 
128 
132 
133 private:
134 
137 
141 
144 
148 
151 
157 
161 
165 
169 
173 
174 
177 
183 
186 
192 
195 
202 
203  G4Box* solidWorld; // World
206 
207  G4Box* solidPayload; // Payload
210 
211  G4Box* solidTKR; // Tracker
214 
215  G4Box* solidCAL; // Calorimeter
218 
219  G4Box* solidACT; // Top Anticoincidence
222 
223  G4Box* solidACL1; // Lateral Anticoincidence
226 
230 
231  G4Box* solidTKRDetectorX; // Tracker PLANE X
234 
235  G4Box* solidTKRDetectorY; // Tracker PLANE Y
238 
239  G4Box* solidCALLayerX; // Calorimeter PLANE X
242 
243  G4Box* solidCALLayerY; // Calorimeter PLANE Y
246 
247  G4Box* solidCALDetectorX; // Calorimeter DETECTOR X
250 
251  G4Box* solidCALDetectorY; // Calorimeter DETECTOR Y
254 
255  G4Box* solidPlane; // Support Plane
258 
259  G4Box* solidConverter; // Converter
262 
263  G4UniformMagField* magField; //pointer to the magnetic field
264 
265  GammaRayTelDetectorMessenger* detectorMessenger; //pointer to the Messenger
266  GammaRayTelTrackerSD* trackerSD; //pointer to the sensitive detector
267  GammaRayTelCalorimeterSD* calorimeterSD; //pointer to the sensitive detector
268  GammaRayTelAnticoincidenceSD* anticoincidenceSD; //pointer to the sensitive detector
269 
270  //G4Region* aTKRRegion; // TKR cut region
271  //G4Region* aCALRegion; // CAL cut region
272 
273 private:
274 
275  void DefineMaterials();
278 };
279 
280 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
281 
283 {
284  // Compute derived parameters of the payload
285 
290 
294 
295  SiliconGuardRing = TKRActiveTileXY - NbOfTKRStrips*TKRSiliconPitch;
297 
301 
304 
305  CALBarX = CALSizeXY;
308 
311 
315 
319 
320  PayloadSizeZ = 1.1*(ACL1SizeZ + ACTSizeZ);
322 
324 
325 }
326 
327 #endif
328 
329 
330 
331 
332 
333 
334 
335 
336 
Definition: G4Box.hh:64
int G4int
Definition: G4Types.hh:78
GammaRayTelAnticoincidenceSD * anticoincidenceSD
double G4double
Definition: G4Types.hh:76
GammaRayTelDetectorMessenger * detectorMessenger