Geant4  9.6.p02
 All Classes 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 //
28 //
29 //
30 #ifndef F04DetectorConstruction_h
31 #define F04DetectorConstruction_h 1
32 
33 #include "globals.hh"
34 #include "G4ios.hh"
35 
36 #include "G4RotationMatrix.hh"
37 
38 class G4Tubs;
39 
40 class G4LogicalVolume;
41 class G4VPhysicalVolume;
42 
43 class F04Materials;
44 class G4Material;
45 
46 class F04SimpleSolenoid;
47 class F04FocusSolenoid;
48 
50 
52 
54 {
55  public:
56 
58  virtual ~F04DetectorConstruction();
59 
60  virtual G4VPhysicalVolume* Construct();
62 
63  void UpdateGeometry();
64 
65  // StringToRotationMatrix() converts a string "X90,Y45" into a
66  // G4RotationMatrix.
67  // This is an active rotation, in that the object is first rotated
68  // around the parent's X axis by 90 degrees, then the object is
69  // further rotated around the parent's Y axis by 45 degrees.
70  // The return value points to a G4RotationMatrix on the heap, so
71  // it is persistent. Angles are in degrees, can have decimals,
72  // and can be negative. Axes are X, Y, Z.
73 
75 
76  public:
77 
79  void SetWorldSizeZ(G4double);
80  void SetWorldSizeR(G4double);
81 
86 
91 
95  void SetTargetPos(G4double);
96  void SetTargetAngle(G4int);
97 
101  void SetDegraderPos(G4double);
102 
103  public:
104 
105  G4Material* GetWorldMaterial() {return fWorldMaterial;};
106  G4double GetWorldSizeZ() {return fWorldSizeZ;};
107  G4double GetWorldSizeR() {return fWorldSizeR;};
108 
109  G4double GetCaptureMgntRadius() {return fCaptureMgntRadius;};
110  G4double GetCaptureMgntLength() {return fCaptureMgntLength;};
111  G4double GetCaptureMgntB1() {return fCaptureMgntB1;};
112  G4double GetCaptureMgntB2() {return fCaptureMgntB2;};
113 
114  G4double GetTransferMgntRadius() {return fTransferMgntRadius;};
115  G4double GetTransferMgntLength() {return fTransferMgntLength;};
116  G4double GetTransferMgntB() {return fTransferMgntB;};
117  G4double GetTransferMgntPos() {return fTransferMgntPos;};
118 
119  G4Material* GetTargetMaterial() {return fTargetMaterial;};
120  G4double GetTargetRadius() {return fTargetRadius;};
121  G4double GetTargetThickness() {return fTargetThickness;};
122  G4double GetTargetPos() {return fTargetPos;};
123  G4int GetTargetAngle() {return fTargetAngle;};
124 
125  G4Material* GetDegraderMaterial() {return fDegraderMaterial;};
126  G4double GetDegraderRadius() {return fDegraderRadius;};
127  G4double GetDegraderThickness() {return fDegraderThickness;};
128  G4double GetDegraderPos() {return fDegraderPos;};
129 
130  private:
131 
132  F04Materials* fMaterials;
133 
134  G4Material* fVacuum;
135 
136  G4Tubs* fSolidWorld;
137  G4LogicalVolume* fLogicWorld;
138  G4VPhysicalVolume* fPhysiWorld;
139 
140  G4Tubs* fSolidTarget;
141  G4LogicalVolume* fLogicTarget;
142  G4VPhysicalVolume* fPhysiTarget;
143 
144  G4Tubs* fSolidDegrader;
145  G4LogicalVolume* fLogicDegrader;
146  G4VPhysicalVolume* fPhysiDegrader;
147 
148  G4Tubs* fSolidCaptureMgnt;
149  G4LogicalVolume* fLogicCaptureMgnt;
150  G4VPhysicalVolume* fPhysiCaptureMgnt;
151 
152  G4Tubs* fSolidTransferMgnt;
153  G4LogicalVolume* fLogicTransferMgnt;
154  G4VPhysicalVolume* fPhysiTransferMgnt;
155 
156  G4Material* fWorldMaterial;
157  G4double fWorldSizeR;
158  G4double fWorldSizeZ;
159 
160  G4double fCaptureMgntLength;
161  G4double fCaptureMgntRadius;
162  G4double fCaptureMgntB1;
163  G4double fCaptureMgntB2;
164 
165  G4double fTransferMgntLength;
166  G4double fTransferMgntRadius;
167  G4double fTransferMgntB;
168  G4double fTransferMgntPos;
169 
170  G4Material* fTargetMaterial;
171  G4double fTargetThickness;
172  G4double fTargetRadius;
173  G4double fTargetPos;
174  G4int fTargetAngle;
175 
176  G4Material* fDegraderMaterial;
177  G4double fDegraderThickness;
178  G4double fDegraderRadius;
179  G4double fDegraderPos;
180 
181  F04FocusSolenoid* fFocusSolenoid;
182  F04SimpleSolenoid* fSimpleSolenoid;
183 
184  private:
185 
186  void DefineMaterials();
187 
188  F04DetectorMessenger* fDetectorMessenger; // pointer to the Messenger
189 
190 };
191 
192 #endif