Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
F04DetectorConstruction.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: F04DetectorConstruction.hh 79251 2014-02-20 16:16:23Z gcosmo $
27 //
28 /// \file field/field04/include/F04DetectorConstruction.hh
29 /// \brief Definition of the F04DetectorConstruction class
30 //
31 
32 #ifndef F04DetectorConstruction_h
33 #define F04DetectorConstruction_h 1
34 
35 #include "globals.hh"
36 #include "G4Cache.hh"
37 
38 #include "G4LogicalVolume.hh"
39 #include "G4RotationMatrix.hh"
40 
41 class G4Tubs;
42 
43 class G4VPhysicalVolume;
44 
45 class F04Materials;
46 class G4Material;
47 
48 class F04GlobalField;
49 
51 
53 
55 {
56  public:
57 
59  virtual ~F04DetectorConstruction();
60 
61  virtual G4VPhysicalVolume* Construct();
63 
64  virtual void ConstructSDandField();
65 
66  // StringToRotationMatrix() converts a string "X90,Y45" into a
67  // G4RotationMatrix.
68  // This is an active rotation, in that the object is first rotated
69  // around the parent's X axis by 90 degrees, then the object is
70  // further rotated around the parent's Y axis by 45 degrees.
71  // The return value points to a G4RotationMatrix on the heap, so
72  // it is persistent. Angles are in degrees, can have decimals,
73  // and can be negative. Axes are X, Y, Z.
74 
76 
77  public:
78 
80  void SetWorldSizeZ(G4double);
81  void SetWorldSizeR(G4double);
82 
87 
92 
96  void SetTargetPos(G4double);
97  void SetTargetAngle(G4int);
98 
102  void SetDegraderPos(G4double);
103 
104  public:
105 
106  G4Material* GetWorldMaterial() {return fWorldMaterial;}
107  G4double GetWorldSizeZ() {return fWorldSizeZ;}
108  G4double GetWorldSizeR() {return fWorldSizeR;}
109 
110  G4LogicalVolume* GetCaptureMgnt() {return fLogicCaptureMgnt;}
111  G4double GetCaptureMgntRadius() {return fCaptureMgntRadius;}
112  G4double GetCaptureMgntLength() {return fCaptureMgntLength;}
113  G4double GetCaptureMgntB1() {return fCaptureMgntB1;}
114  G4double GetCaptureMgntB2() {return fCaptureMgntB2;}
115  G4ThreeVector GetCaptureMgntCenter() {return fCaptureMgntCenter;}
116 
117  G4LogicalVolume* GetTransferMgnt() {return fLogicTransferMgnt;}
118  G4double GetTransferMgntRadius() {return fTransferMgntRadius;}
119  G4double GetTransferMgntLength() {return fTransferMgntLength;}
120  G4double GetTransferMgntB() {return fTransferMgntB;}
121  G4double GetTransferMgntPos() {return fTransferMgntPos;}
122  G4ThreeVector GetTransferMgntCenter() {return fTransferMgntCenter;}
123 
124  G4Material* GetTargetMaterial() {return fTargetMaterial;}
125  G4double GetTargetRadius() {return fTargetRadius;}
126  G4double GetTargetThickness() {return fTargetThickness;}
127  G4double GetTargetPos() {return fTargetPos;}
128  G4int GetTargetAngle() {return fTargetAngle;}
129 
130  G4Material* GetDegraderMaterial() {return fDegraderMaterial;}
131  G4double GetDegraderRadius() {return fDegraderRadius;}
132  G4double GetDegraderThickness() {return fDegraderThickness;}
133  G4double GetDegraderPos() {return fDegraderPos;}
134 
135  private:
136 
137  F04DetectorMessenger* fDetectorMessenger; // pointer to the Messenger
138  G4Cache<F04GlobalField*> fFieldSetUp;
139 
140  F04Materials* fMaterials;
141 
142  G4Material* fVacuum;
143 
144  G4Tubs* fSolidWorld;
145  G4LogicalVolume* fLogicWorld;
146  G4VPhysicalVolume* fPhysiWorld;
147 
148  G4Tubs* fSolidTarget;
149  G4LogicalVolume* fLogicTarget;
150  G4VPhysicalVolume* fPhysiTarget;
151 
152  G4Tubs* fSolidDegrader;
153  G4LogicalVolume* fLogicDegrader;
154  G4VPhysicalVolume* fPhysiDegrader;
155 
156  G4Tubs* fSolidCaptureMgnt;
157  G4LogicalVolume* fLogicCaptureMgnt;
158  G4VPhysicalVolume* fPhysiCaptureMgnt;
159 
160  G4Tubs* fSolidTransferMgnt;
161  G4LogicalVolume* fLogicTransferMgnt;
162  G4VPhysicalVolume* fPhysiTransferMgnt;
163 
164  G4Material* fWorldMaterial;
165  G4double fWorldSizeR;
166  G4double fWorldSizeZ;
167 
168  G4double fCaptureMgntLength;
169  G4double fCaptureMgntRadius;
170  G4double fCaptureMgntB1;
171  G4double fCaptureMgntB2;
172 
173  G4double fTransferMgntLength;
174  G4double fTransferMgntRadius;
175  G4double fTransferMgntB;
176  G4double fTransferMgntPos;
177 
178  G4Material* fTargetMaterial;
179  G4double fTargetThickness;
180  G4double fTargetRadius;
181  G4double fTargetPos;
182  G4int fTargetAngle;
183 
184  G4Material* fDegraderMaterial;
185  G4double fDegraderThickness;
186  G4double fDegraderRadius;
187  G4double fDegraderPos;
188 
189  G4ThreeVector fCaptureMgntCenter, fTransferMgntCenter;
190 
191  private:
192 
193  void DefineMaterials();
194 
195 };
196 
197 #endif
G4LogicalVolume * GetTransferMgnt()
G4VPhysicalVolume * ConstructDetector()
Definition: G4Tubs.hh:84
int G4int
Definition: G4Types.hh:78
virtual G4VPhysicalVolume * Construct()
G4LogicalVolume * GetCaptureMgnt()
double G4double
Definition: G4Types.hh:76
static G4RotationMatrix StringToRotationMatrix(G4String rotation)