Geant4  10.03.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 //
26 // $Id: DetectorConstruction.hh 101245 2016-11-10 08:45:38Z gcosmo $
27 //
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 
72  inline G4double GetGeneratorPosZ() const { return fGeneratorPosZ; };
73 
74  inline void SetGap(G4double val) { fDelta = val; };
75  inline void SetTarget1Z(G4double val) { fTarget1Z = val; };
76  inline void SetTarget2Z(G4double val) { fTarget2Z = val; };
77  inline void SetMylarZ(G4double val) { fMylarVolumeZ = val; }
78  inline void SetCheckShiftZ(G4double val) { fCheckShiftZ = val; }
79  inline void SetAbsorberZ(G4double val) { fAbsorberZ = val; }
80  inline void SetAbsorberShiftZ(G4double val) { fAbsorberShiftZ = val; }
81 
82 private:
83 
84  void InitialiseGeometryParameters();
85 
88 
89  CheckVolumeSD* fCheckSD;
90  PhantomSD* fPhantomSD;
91  TargetSD* fTargetSD;
92 
93  G4double fWorldXY, fWorldZ;
94  G4double fDelta;
95  G4double fGeneratorPosZ;
96 
97  G4double fTargetRadius, fTarget1Z, fTarget1PosZ;
98  G4double fTarget2Z, fTarget2PosZ;
99 
100  G4double fGasVolumeRadius, fGasVolumeZ, fGasVolumePosZ;
101  G4double fAirZ, fMylarVolumeZ, fMylarPosZ;
102  G4double fCheckVolumeRadius, fCheckVolumeZ, fCheckShiftZ, fCheckVolumePosZ;
103  G4double fTargetVolumeZ, fTargetVolumePosZ;
104 
105  G4double fPhantomRadius, fPhantomZ, fPhantomPosZ;
106  G4double fAbsorberRadius, fAbsorberZ, fAbsorberShiftZ, fAbsorberPosZ;
107  G4double fDistanceVacuumTarget, fWindowZ, fWindowPosZ;
108 
109  G4Material* fWorldMaterial;
110 
111  G4Material* fTarget1Material;
112  G4Material* fTarget2Material;
113  G4Material* fMylar;
114  G4Material* fWindowMaterial;
115 
116  G4Material* fLightMaterial;
117  G4Material* fAbsorberMaterial;
118 
119  G4LogicalVolume* fLogicTarget1;
120  G4LogicalVolume* fLogicTarget2;
121 
122  DetectorMessenger* fMessenger;
123 };
124 
125 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
126 
127 #endif
void SetGap(G4double val)
G4VPhysicalVolume * Construct()
void SetTarget2Z(G4double val)
void SetTarget2Material(const G4String &m)
G4double GetGeneratorPosZ() const
void SetAbsorberZ(G4double val)
static constexpr double m
Definition: G4SIunits.hh:129
void SetTarget1Z(G4double val)
void SetCheckShiftZ(G4double val)
void SetAbsorberShiftZ(G4double val)
void SetMylarZ(G4double val)
Detector construction class to define materials and geometry.
double G4double
Definition: G4Types.hh:76
void SetTarget1Material(const G4String &m)