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 | #ifndef DetectorConstruction_h |
---|
27 | #define DetectorConstruction_h 1 |
---|
28 | |
---|
29 | // ------------------------------------------------------------- |
---|
30 | // GEANT4 test IBREM |
---|
31 | // |
---|
32 | // Authors: V.Grichine, V.Ivanchenko |
---|
33 | // |
---|
34 | // Modified: |
---|
35 | // |
---|
36 | // 18-02-03 V.Ivanchenko create |
---|
37 | // |
---|
38 | // ------------------------------------------------------------- |
---|
39 | |
---|
40 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
41 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
42 | |
---|
43 | #include "G4VUserDetectorConstruction.hh" |
---|
44 | #include "G4VPhysicalVolume.hh" |
---|
45 | #include "G4Material.hh" |
---|
46 | |
---|
47 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
48 | |
---|
49 | class CheckVolumeSD; |
---|
50 | class PhantomSD; |
---|
51 | class TargetSD; |
---|
52 | class DetectorMessenger; |
---|
53 | class G4LogicalVolume; |
---|
54 | |
---|
55 | class DetectorConstruction : public G4VUserDetectorConstruction |
---|
56 | { |
---|
57 | public: |
---|
58 | |
---|
59 | DetectorConstruction(); |
---|
60 | ~DetectorConstruction(); |
---|
61 | |
---|
62 | public: |
---|
63 | |
---|
64 | G4VPhysicalVolume* Construct(); |
---|
65 | G4double GetGeneratorPosZ() const {return fGeneratorPosZ;}; |
---|
66 | |
---|
67 | void setGap(G4double val) {fDelta = val;}; |
---|
68 | void setTarget1Z(G4double val) {fTarget1Z = val;}; |
---|
69 | void setTarget2Z(G4double val) {fTarget2Z = val;}; |
---|
70 | void setMylarZ(G4double val) {fMylarVolumeZ = val;}; |
---|
71 | void setCheckShiftZ(G4double val) {fCheckShiftZ = val;}; |
---|
72 | void setAbsorberZ(G4double val) {fAbsorberZ = val;}; |
---|
73 | void setAbsorberShiftZ(G4double val) {fAbsorberShiftZ = val;}; |
---|
74 | |
---|
75 | void setTarget1Material(const G4String& m); |
---|
76 | void setTarget2Material(const G4String& m); |
---|
77 | void UpdateGeometry(); |
---|
78 | |
---|
79 | private: // methods |
---|
80 | |
---|
81 | void Initialise(); |
---|
82 | void DefineMaterials(); |
---|
83 | void InitialiseGeometryParameters(); |
---|
84 | G4VPhysicalVolume* ConstructVolumes(); |
---|
85 | |
---|
86 | private: // fields |
---|
87 | |
---|
88 | CheckVolumeSD* checkSD; |
---|
89 | PhantomSD* calorimeterSD; |
---|
90 | TargetSD* targetSD; |
---|
91 | G4double fWorldXY, fWorldZ; |
---|
92 | G4double fDelta; |
---|
93 | G4double fGeneratorPosZ; |
---|
94 | |
---|
95 | G4double fTargetRadius, fTarget1Z, fTarget1PosZ; |
---|
96 | G4double fTarget2Z, fTarget2PosZ; |
---|
97 | |
---|
98 | G4double fGasVolumeRadius,fGasVolumeZ, fGasVolumePosZ, fAirZ, fMylarVolumeZ, fMylarPosZ; |
---|
99 | G4double fCheckVolumeRadius, fCheckVolumeZ, fCheckShiftZ, fCheckVolumePosZ; |
---|
100 | G4double fTargetVolumeZ, fTargetVolumePosZ; |
---|
101 | |
---|
102 | G4double fPhantomRadius, fPhantomZ, fPhantomPosZ; |
---|
103 | G4double fAbsorberRadius, fAbsorberZ, fAbsorberShiftZ, fAbsorberPosZ; |
---|
104 | G4double fDistanceVacuumTarget, fWindowZ, fWindowPosZ; |
---|
105 | |
---|
106 | G4Material* fWorldMaterial; |
---|
107 | |
---|
108 | G4Material* fTarget1Material; |
---|
109 | G4Material* fTarget2Material; |
---|
110 | G4Material* fMylar; |
---|
111 | G4Material* fWindowMaterial; |
---|
112 | |
---|
113 | G4Material* fLightMaterial; |
---|
114 | G4Material* fAbsorberMaterial; |
---|
115 | |
---|
116 | G4LogicalVolume* logicTarget1; |
---|
117 | G4LogicalVolume* logicTarget2; |
---|
118 | |
---|
119 | DetectorMessenger* dMessenger; |
---|
120 | }; |
---|
121 | |
---|
122 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... |
---|
123 | |
---|
124 | #endif |
---|