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