Geant4  10.00.p02
XrayFluoMercuryDetectorConstruction.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: XrayFluoMercuryDetectorConstruction.hh
28 // GEANT4 tag $Name:XrayFluo-V05-02-06
29 //
30 // Author: Alfonso Mantero (Alfonso.Mantero@ge.infn.it)
31 //
32 // History:
33 // -----------
34 //
35 // 08 Sep 2003 Alfonso Mantero created
36 //
37 // -------------------------------------------------------------------
38 
39 #ifndef XrayFluoMercuryDetectorConstruction_hh
40 #define XrayFluoMercuryDetectorConstruction_hh 1
41 
42 #include <CLHEP/Units/SystemOfUnits.h>
43 
44 #include "globals.hh"
46 #include "G4RotationMatrix.hh"
49 #include "XrayFluoSD.hh"
50 
51 class G4Box;
52 class G4Tubs;
53 class G4Sphere;
54 class G4LogicalVolume;
55 class G4VPhysicalVolume;
56 class G4Material;
59 
60 //class XrayFluoSD;
61 //class XrayFluoVDetectorType;
62 
63 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
64 
66 {
67 public:
68 
69 
71 
72 public:
73 
75 
76  void UpdateGeometry();
77 
78 
79  void SetMercuryMaterial(G4String newMaterial);
80 
81  void SetDetectorType(G4String type);
82 
84 
85  inline void SetOribitHeight(G4double size)
86  {distDe = size;};
87  inline void SetLatitude(G4double lat)
88  {ThetaHPGe = 180.* CLHEP::deg - lat;};
89 
91 
93 
94 
97 
103 
104  G4int GetNbOfPixels() {return NbOfPixels;}; //mandatory for XrayFluoSD
107 
110 
113 
115  const G4VPhysicalVolume* GetHPGe() {return physiHPGe;};
117 
121 
123 
124 private:
125 
127 
129 
131 
133 
137 
138  G4Box* solidWorld; //pointer to the solid World
139  G4LogicalVolume* logicWorld; //pointer to the logical World
140  G4VPhysicalVolume* physiWorld; //pointer to the physical World
141 
142  G4Box* solidHPGe; //pointer to the solid Sensor
143  G4LogicalVolume* logicHPGe; //pointer to the logical Sensor
144  G4VPhysicalVolume* physiHPGe; //pointer to the physical Sensor
145 
146  G4Box* solidScreen; //pointer to the solid Screen
147  G4LogicalVolume* logicScreen; //pointer to the logical Screen
148  G4VPhysicalVolume* physiScreen; //pointer to the physical Screen
149 
150  G4Sphere* solidMercury; //pointer to the solid Mercury
151  G4LogicalVolume* logicMercury; //pointer to the logical Mercury
152  G4VPhysicalVolume* physiMercury; //pointer to the physical Mercury
153 
154  // G4Tubs* solidDia1; //pointer to the solid Diaphragm
155  // G4LogicalVolume* logicDia1; //pointer to the logical Diaphragm
156  // G4VPhysicalVolume* physiDia1; //pointer to the physical Diaphragm
157 
158  // G4Tubs* solidDia3; //pointer to the solid Diaphragm
159  // G4LogicalVolume* logicDia3; //pointer to the logical Diaphragm
160  // G4VPhysicalVolume* physiDia3; //pointer to the physical Diaphragm
161 
165 
169 
173 
177 
179 
180  //materials management
182 
188  // G4Material* Dia3Material;
190 
191  //apparate parameters
192 
195 
198 
201 
210 
212 
215 
217 
219 
223 
224 
226 
228 
231 
232 
234 
235  XrayFluoSD* HPGeSD; //pointer to the sensitive detector
236 
237 
238 
239 public:
240 
243 
245  G4double GetSunDia() {return sunDia;};
246 
247  //Inclinaton of the orbit respect Mercury respect the equator (latitude)
248 
252 
253 
254 
255 private:
256 
257  void DefineDefaultMaterials();
259 
260  //calculates some quantities used to construct geometry
262 
263 };
264 
265 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
266 
268 {
269  // Compute derived parameters of the apparate
270 
272 
274 
277 
279 
280  G4cout << "DeviceSizeX(cm): "<< DeviceSizeX/CLHEP::cm <<G4endl;
281  G4cout << "DeviceSizeY(cm): "<< DeviceSizeY/CLHEP::cm << G4endl;
282 
283  //*********************************************************************
284  //** Astronomical distances reduce by a factor 10^-7 due to G4 Bug **
285  //*********************************************************************
286 
288  WorldSizeXY = (2 * distDe) + 2000 * CLHEP::km ;
289  //WorldSizeZ = WorldSizeXY;
290 }
291 
292 #endif
static const double cm
Definition: G4SIunits.hh:106
CLHEP::HepRotation G4RotationMatrix
Definition: G4Box.hh:64
Definition: G4Tubs.hh:85
int G4int
Definition: G4Types.hh:78
static XrayFluoMercuryDetectorConstruction * GetInstance()
G4GLOB_DLL std::ostream G4cout
static const double deg
Definition: G4SIunits.hh:133
bool G4bool
Definition: G4Types.hh:79
XrayFluoMercuryDetectorMessenger * detectorMessenger
static const double km
Definition: G4SIunits.hh:114
T max(const T t1, const T t2)
brief Return the largest of the two arguments
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76
static XrayFluoMercuryDetectorConstruction * instance