Geant4  10.01.p01
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 
139 
142 
145 
149 
153 
157 
161 
164 
168 
172 
178 
184 
186 
195 
202 
203  private:
204 
205  void ConstructFiber();
206 
208 
211 
212 };
213 
214 #endif
virtual G4VPhysicalVolume * Construct()
WLSDetectorMessenger * fDetectorMessenger
void SetWorldMaterial(G4String)
CLHEP::HepRotation G4RotationMatrix
Definition: G4Box.hh:64
Definition: G4Tubs.hh:85
int G4int
Definition: G4Types.hh:78
static G4RotationMatrix StringToRotationMatrix(G4String rotation)
G4Cache< WLSPhotonDetSD * > fmppcSD
bool G4bool
Definition: G4Types.hh:79
void SetWLSFiberMaterial(G4String)
void SetCoupleMaterial(G4String)
G4Material * FindMaterial(G4String)
double G4double
Definition: G4Types.hh:76
G4VPhysicalVolume * ConstructDetector()