Geant4_10
DetectorConstruction.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 // This example is provided by the Geant4-DNA collaboration
27 // Any report or published results obtained using the Geant4-DNA software
28 // shall cite the following Geant4-DNA collaboration publication:
29 // Med. Phys. 37 (2010) 4692-4708
30 // The Geant4-DNA web site is available at http://geant4-dna.org
31 //
32 // If you use this example, please cite the following publication:
33 // Rad. Prot. Dos. 133 (2009) 2-11
34 
35 #ifndef DetectorConstruction_h
36 #define DetectorConstruction_h 1
37 
39 #include "G4Box.hh"
40 #include "G4Cons.hh"
41 #include "G4Material.hh"
42 #include "G4PVPlacement.hh"
43 #include "G4UserLimits.hh"
44 #include "G4PVParameterised.hh"
45 #include "PhantomConfiguration.hh"
46 #include "CellParameterisation.hh"
47 
48 #include "EMField.hh"
49 #include "G4EqMagElectricField.hh"
50 #include "G4PropagatorInField.hh"
52 #include "G4ChordFinder.hh"
53 #include "G4ClassicalRK4.hh"
54 
55 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
56 
58 {
59 public:
60 
63 
65 
66  void ConstructSDandField();
67 
68  void SetMassNucleus(G4float mN){ fMassNucleus = mN;}
69  G4float GetMassNucleus(){return fMassNucleus;}
70 
71  void SetMassCytoplasm(G4float mC){ fMassCytoplasm = mC;}
72  G4float GetMassCytoplasm(){return fMassCytoplasm;}
73 
74  void SetNbOfPixelsInPhantom(G4int nP){ fNbOfPixelsInPhantom = nP;}
75  G4int GetNbOfPixelsInPhantom(){return fNbOfPixelsInPhantom;}
76 
77  // Returns the logical volumes
78 
79  G4LogicalVolume* GetLogicalCollDetYoke() {return fLogicYoke2;};
80  G4LogicalVolume* GetLogicalIsobutane() {return fLogicBoiteIso;};
81  G4LogicalVolume* GetLogicalCollDetGap4() {return fLogic4Gap;};
82  G4LogicalVolume* GetLogicalPolyprop() {return fLogicBoite3;};
83  G4LogicalVolume* GetLogicalKgm() {return fLogicKgm;};
84 
85 private:
86 
87  G4float fMassPhantom;
88  G4float fMassNucleus;
89  G4float fMassCytoplasm;
90 
91  G4double fDensityPhantom;
92  G4double fDensityNucleus;
93  G4double fDensityCytoplasm;
94  G4int fNbOfPixelsInPhantom;
95 
96  G4double fWorldSizeXY;
97  G4double fWorldSizeZ;
98  G4double fCollObjSizeXY;
99  G4double fCollObjSizeZ;
100 
101  G4double fCiblePositionX;
102  G4double fCiblePositionY;
103  G4double fCiblePositionZ;
104 
105  G4double fLineAngle;
106 
107 // Materials
108 
109  G4Material* fDefaultMaterial;
110  G4Material* fCollimatorMaterial;
111  G4Material* fBoiteMaterial;
112  G4Material* fCathodeMaterial;
113  G4Material* fVerreMaterial;
114  G4Material* fVerre2Material;
115  G4Material* fKgmMaterial;
116  G4Material* fBoite2Material;
117  G4Material* fBoite3Material;
118  G4Material* fNucleusMaterial1;
119  G4Material* fCytoplasmMaterial1;
120  G4Material* fNucleusMaterial2;
121  G4Material* fCytoplasmMaterial2;
122  G4Material* fNucleusMaterial3;
123  G4Material* fCytoplasmMaterial3;
124 
125 // Volumes
126 
127  G4VPhysicalVolume* fPhysiWorld;
128  G4LogicalVolume* fLogicWorld;
129  G4Box* fSolidWorld;
130 
131  G4VPhysicalVolume* fPhysiVol;
132  G4LogicalVolume* fLogicVol;
133  G4Box* fSolidVol;
134 
135  G4VPhysicalVolume* fPhysiBoite;
136  G4LogicalVolume* fLogicBoite;
137  G4Box* fSolidBoite;
138 
139  G4VPhysicalVolume* fPhysiYoke1;
140  G4LogicalVolume* fLogicYoke1;
141  G4Box* fSolidYoke1;
142 
143  G4VPhysicalVolume* fPhysi1Gap;
144  G4LogicalVolume* fLogic1Gap;
145  G4Cons* fSolid1Gap;
146 
147  G4VPhysicalVolume* fPhysi2Gap;
148  G4LogicalVolume* fLogic2Gap;
149  G4Cons* fSolid2Gap;
150 
151  G4VPhysicalVolume* fPhysi3Gap;
152  G4LogicalVolume* fLogic3Gap;
153  G4Cons* fSolid3Gap;
154 
155  G4VPhysicalVolume* fPhysiYoke2;
156  G4LogicalVolume* fLogicYoke2;
157  G4Box* fSolidYoke2;
158 
159  G4VPhysicalVolume* fPhysi4Gap;
160  G4LogicalVolume* fLogic4Gap;
161  G4Cons* fSolid4Gap;
162 
163  G4VPhysicalVolume* fPhysi5Gap;
164  G4LogicalVolume* fLogic5Gap;
165  G4Cons* fSolid5Gap;
166 
167  G4VPhysicalVolume* fPhysiBoiteIso;
168  G4LogicalVolume* fLogicBoiteIso;
169  G4Box* fSolidBoiteIso;
170 
171  G4VPhysicalVolume* fPhysiCathode;
172  G4LogicalVolume* fLogicCathode;
173  G4Box* fSolidCathode;
174 
175  G4VPhysicalVolume* fPhysiIso;
176  G4LogicalVolume* fLogicIso;
177  G4Box* fSolidIso;
178 
179  G4VPhysicalVolume* fPhysiVerre;
180  G4LogicalVolume* fLogicVerre;
181  G4Box* fSolidVerre;
182 
183  G4VPhysicalVolume* fPhysiBoite2;
184  G4LogicalVolume* fLogicBoite2;
185  G4Box* fSolidBoite2;
186 
187  G4VPhysicalVolume* fPhysiBoite3;
188  G4LogicalVolume* fLogicBoite3;
189  G4Box* fSolidBoite3;
190 
191  G4VPhysicalVolume* fPhysiKgm;
192  G4LogicalVolume* fLogicKgm;
193  G4Box* fSolidKgm;
194 
195  G4VPhysicalVolume* fPhysiVerre2;
196  G4LogicalVolume* fLogicVerre2;
197  G4Box* fSolidVerre2;
198 
199  // CELL PHANTOM
200 
201  G4VPhysicalVolume* fPhysiPhantom;
202  G4LogicalVolume* fLogicPhantom;
203  G4Box* fSolidPhantom;
204 
205  //
206 
207  PhantomConfiguration fMyPhantomConfiguration;
208  CellParameterisation* fPhantomParam ;
209 
210  static G4ThreadLocal EMField * fField;
211 
212  G4FieldManager * fFieldMgr;
213  G4MagIntegratorStepper * fStepper;
214  G4EqMagElectricField * fEquation;
215  G4MagInt_Driver * fIntgrDriver;
216  G4ChordFinder * fChordFinder ;
217  G4PropagatorInField * fPropInField;
218 
219  //
220 
221  void DefineMaterials();
222  G4VPhysicalVolume* ConstructLine();
223 
224 };
225 
226 #endif
void SetMassNucleus(G4float mN)
G4LogicalVolume * GetLogicalCollDetYoke()
Definition: G4Box.hh:63
G4VPhysicalVolume * Construct()
float G4float
Definition: G4Types.hh:77
#define G4ThreadLocal
Definition: tls.hh:52
int G4int
Definition: G4Types.hh:78
void SetMassCytoplasm(G4float mC)
G4LogicalVolume * GetLogicalIsobutane()
Definition: G4Cons.hh:82
void SetNbOfPixelsInPhantom(G4int nP)
G4LogicalVolume * GetLogicalKgm()
double G4double
Definition: G4Types.hh:76
G4LogicalVolume * GetLogicalCollDetGap4()
G4LogicalVolume * GetLogicalPolyprop()