Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
examples/extended/medical/GammaTherapy/include/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 // $Id: DetectorConstruction.hh 67994 2013-03-13 11:05:39Z gcosmo $
27 //
28 /// \file medical/GammaTherapy/include/DetectorConstruction.hh
29 /// \brief Definition of the DetectorConstruction class
30 //
31 #ifndef DetectorConstruction_h
32 #define DetectorConstruction_h 1
33 
34 // -------------------------------------------------------------
35 // GEANT4 test IBREM
36 //
37 // Authors: V.Grichine, V.Ivanchenko
38 //
39 // Modified:
40 //
41 // 18-02-03 V.Ivanchenko create
42 //
43 // -------------------------------------------------------------
44 
45 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
46 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
47 
49 #include "G4VPhysicalVolume.hh"
50 #include "G4Material.hh"
51 
52 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
53 
54 class CheckVolumeSD;
55 class PhantomSD;
56 class TargetSD;
57 class DetectorMessenger;
58 class G4LogicalVolume;
59 
61 {
62 public:
63 
65  virtual ~DetectorConstruction();
66 
68 
69  void SetTarget1Material(const G4String& m);
70  void SetTarget2Material(const G4String& m);
71  void UpdateGeometry();
72 
73  inline G4double GetGeneratorPosZ() const { return fGeneratorPosZ; };
74 
75  inline void SetGap(G4double val) { fDelta = val;
76  UpdateGeometry(); };
77  inline void SetTarget1Z(G4double val) { fTarget1Z = val;
78  UpdateGeometry(); };
79  inline void SetTarget2Z(G4double val) { fTarget2Z = val;
80  UpdateGeometry(); };
81  inline void SetMylarZ(G4double val) { fMylarVolumeZ = val;
82  UpdateGeometry(); };
83  inline void SetCheckShiftZ(G4double val) { fCheckShiftZ = val;
84  UpdateGeometry(); };
85  inline void SetAbsorberZ(G4double val) { fAbsorberZ = val;
86  UpdateGeometry(); };
87  inline void SetAbsorberShiftZ(G4double val) { fAbsorberShiftZ = val;
88  UpdateGeometry(); };
89 
90 private:
91 
92  void InitialiseGeometryParameters();
93 
96 
97  CheckVolumeSD* fCheckSD;
98  PhantomSD* fPhantomSD;
99  TargetSD* fTargetSD;
100 
101  G4double fWorldXY, fWorldZ;
102  G4double fDelta;
103  G4double fGeneratorPosZ;
104 
105  G4double fTargetRadius, fTarget1Z, fTarget1PosZ;
106  G4double fTarget2Z, fTarget2PosZ;
107 
108  G4double fGasVolumeRadius, fGasVolumeZ, fGasVolumePosZ;
109  G4double fAirZ, fMylarVolumeZ, fMylarPosZ;
110  G4double fCheckVolumeRadius, fCheckVolumeZ, fCheckShiftZ, fCheckVolumePosZ;
111  G4double fTargetVolumeZ, fTargetVolumePosZ;
112 
113  G4double fPhantomRadius, fPhantomZ, fPhantomPosZ;
114  G4double fAbsorberRadius, fAbsorberZ, fAbsorberShiftZ, fAbsorberPosZ;
115  G4double fDistanceVacuumTarget, fWindowZ, fWindowPosZ;
116 
117  G4Material* fWorldMaterial;
118 
119  G4Material* fTarget1Material;
120  G4Material* fTarget2Material;
121  G4Material* fMylar;
122  G4Material* fWindowMaterial;
123 
124  G4Material* fLightMaterial;
125  G4Material* fAbsorberMaterial;
126 
127  G4LogicalVolume* fLogicTarget1;
128  G4LogicalVolume* fLogicTarget2;
129 
130  DetectorMessenger* fMessenger;
131 };
132 
133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
134 
135 #endif
double G4double
Definition: G4Types.hh:76