Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
examples/extended/medical/GammaTherapy/include/DetectorConstruction.hh
이 파일의 문서화 페이지로 가기
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 103795 2017-04-27 13:38:36Z 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  inline void SetNumberDivZ(G4int val) { fNumZ = val; };
83  inline void SetNumberDivR(G4int val) { fNumR = val; };
84 
85  const G4VPhysicalVolume* GetCheckVolume() const { return fCheckVolume; }
86  const G4VPhysicalVolume* GetGasVolume() const { return fGasVolume; }
87  const G4VPhysicalVolume* GetPhantom() const { return fPhantom; }
88  const G4VPhysicalVolume* GetTarget1() const { return fTarget1; }
89  const G4VPhysicalVolume* GetTarget2() const { return fTarget2; }
90 
91  G4double GetAbsorberZ() const { return fPhantomZ; }
93  G4double GetScoreZ() const { return fAbsorberShiftZ; }
94 
95  G4int GetNumberDivZ() const { return fNumZ; }
96  G4int GetNumberDivR() const { return fNumR; }
97 
99  inline G4double GetMaxEnergy() const { return fMaxEnergy; }
100  G4int GetNumberDivE() const { return fNumE; }
101  inline void SetNumberDivE(G4int val) { fNumE = val; };
102 
103  void SetVerbose(G4bool v) { fVerbose = v; }
104  inline G4bool GetVerbose() const { return fVerbose; }
105 
106  void DumpGeometryParameters();
107 
108 private:
109 
111 
114  void ConstructSDandField();
115 
117 
120 
123 
125  std::vector<G4LogicalVolume*> fLogicRing;
128 
132 
135 
141 
145 
147 
152 
155 
158 
164 
166 };
167 
168 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
169 
170 #endif
DetectorConstruction & operator=(const DetectorConstruction &right)
static constexpr double m
Definition: G4SIunits.hh:129
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
int G4int
Definition: G4Types.hh:78
Simple detector construction with a box volume placed in a world.