Geant4_10
WLSDetectorConstruction.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: WLSDetectorConstruction.hh 77487 2013-11-25 10:15:04Z gcosmo $
27 //
30 //
31 
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
33 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
34 
35 #ifndef WLSDetectorConstruction_h
36 #define WLSDetectorConstruction_h 1
37 
38 #include "globals.hh"
39 #include "G4ios.hh"
40 
41 #include "G4RotationMatrix.hh"
42 
43 class G4Box;
44 class G4Tubs;
45 class G4EllipticalTube;
46 
47 class G4LogicalVolume;
48 class G4VPhysicalVolume;
49 
50 class WLSMaterials;
51 class G4Material;
52 
54 
55 class WLSPhotonDetSD;
56 
58 #include "G4Cache.hh"
59 
61 {
62  public:
63 
65  virtual ~WLSDetectorConstruction();
66 
67  virtual G4VPhysicalVolume* Construct();
69 
70  virtual void ConstructSDandField();
71 
72  // Set Material Commands for World and WLSfiber
76 
78  void SetNumberOfCladding (G4int); // Maximum 2 claddings
79 
80  void SetWLSLength (G4double); // Total length of WLS fiber
81  void SetWLSRadius (G4double);
82  void SetClad1Radius (G4double);
83  void SetClad2Radius (G4double);
85  void SetGap (G4double);
87  // Set the ratio of x and y (x/y) radius of the ellipse
88  void SetXYRatio (G4double);
89  // Set the Roughness in between each layer
91  // Set the reflectivity of the mirror
93  // Set the polish of the mirror
95  // Set the reflectivity of the mirror
97  // Set the polish of the mirror
99 
100  void SetMirror (G4bool);
101 
102  void SetBarLength (G4double);
103  void SetBarBase (G4double);
104  void SetHoleRadius (G4double);
106  void SetCoatingRadius (G4double);
107 
113 
119 
122 
123  // StringToRotationMatrix() converts a string "X90,Y45" into a
124  // G4RotationMatrix.
125  // This is an active rotation, in that the object is first rotated
126  // around the parent's X axis by 90 degrees, then the object is
127  // further rotated around the parent's Y axis by 45 degrees.
128  // The return value points to a G4RotationMatrix on the heap, so
129  // it is persistent. Angles are in degrees, can have decimals,
130  // and can be negative. Axes are X, Y, Z.
131 
133 
135 
136  private:
137 
138  WLSMaterials* fMaterials;
139 
140  G4LogicalVolume* fLogicHole;
141  G4LogicalVolume* fLogicWorld;
142 
143  G4VPhysicalVolume* fPhysiWorld;
144  G4VPhysicalVolume* fPhysiHole;
145 
146  G4double fWorldSizeX;
147  G4double fWorldSizeY;
148  G4double fWorldSizeZ;
149 
150  G4double fWLSfiberRX;
151  G4double fWLSfiberRY;
152  G4double fWLSfiberZ;
153 
154  G4double fClad1RX;
155  G4double fClad1RY;
156  G4double fClad1Z;
157 
158  G4double fClad2RX;
159  G4double fClad2RY;
160  G4double fClad2Z;
161 
162  G4double fClrfiberHalfL;
163  G4double fClrfiberZ;
164 
165  G4double fCoupleRX;
166  G4double fCoupleRY;
167  G4double fCoupleZ;
168 
169  G4double fMirrorRmax;
170  G4double fMirrorZ;
171  G4bool fMirrorToggle;
172 
173  G4String fMPPCShape;
174  G4double fMPPCHalfL;
175  G4double fMPPCZ;
176  G4double fMPPCDist;
177  G4double fMPPCTheta;
178 
179  G4double fWLSfiberOrigin;
180  G4double fCoupleOrigin;
181  G4double fMirrorOrigin;
182  G4double fMPPCOriginX;
183  G4double fMPPCOriginZ;
184 
185  G4int fNumOfCladLayers;
186 
187  G4double fMirrorPolish;
188  G4double fMirrorReflectivity;
189  G4double fMPPCPolish;
190  G4double fMPPCReflectivity;
191  G4double fExtrusionPolish;
192  G4double fExtrusionReflectivity;
193  G4double fSurfaceRoughness;
194  G4double fXYRatio;
195 
196  G4double fBarLength;
197  G4double fBarBase;
198  G4double fHoleRadius;
199  G4double fHoleLength;
200  G4double fCoatingThickness;
201  G4double fCoatingRadius;
202 
203  private:
204 
205  void ConstructFiber();
206 
207  void UpdateGeometryParameters();
208 
209  WLSDetectorMessenger* fDetectorMessenger;
210  G4Cache<WLSPhotonDetSD*> fmppcSD;
211 
212 };
213 
214 #endif
virtual G4VPhysicalVolume * Construct()
void SetWorldMaterial(G4String)
Definition: G4Box.hh:63
Definition: G4Tubs.hh:84
int G4int
Definition: G4Types.hh:78
static G4RotationMatrix StringToRotationMatrix(G4String rotation)
bool G4bool
Definition: G4Types.hh:79
void SetWLSFiberMaterial(G4String)
void SetCoupleMaterial(G4String)
G4Material * FindMaterial(G4String)
double G4double
Definition: G4Types.hh:76
G4VPhysicalVolume * ConstructDetector()