ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
WLSDetectorConstruction.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file WLSDetectorConstruction.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 //
29 //
30 
31 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
32 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
33 
34 #ifndef WLSDetectorConstruction_h
35 #define WLSDetectorConstruction_h 1
36 
37 #include "globals.hh"
38 #include "G4ios.hh"
39 
40 #include "G4RotationMatrix.hh"
41 
42 class G4Box;
43 class G4Tubs;
44 class G4EllipticalTube;
45 
46 class G4LogicalVolume;
47 class G4VPhysicalVolume;
48 
49 class WLSMaterials;
50 class G4Material;
51 
53 
54 class WLSPhotonDetSD;
55 
57 #include "G4Cache.hh"
58 
60 {
61  public:
62 
64  virtual ~WLSDetectorConstruction();
65 
66  virtual G4VPhysicalVolume* Construct();
68 
69  virtual void ConstructSDandField();
70 
71  // Set Material Commands for World and WLSfiber
75 
77  void SetNumberOfCladding (G4int); // Maximum 2 claddings
78 
79  void SetWLSLength (G4double); // Total length of WLS fiber
80  void SetWLSRadius (G4double);
81  void SetClad1Radius (G4double);
82  void SetClad2Radius (G4double);
84  void SetGap (G4double);
86  // Set the ratio of x and y (x/y) radius of the ellipse
87  void SetXYRatio (G4double);
88  // Set the Roughness in between each layer
90  // Set the reflectivity of the mirror
92  // Set the polish of the mirror
94  // Set the reflectivity of the mirror
96  // Set the polish of the mirror
98 
99  void SetMirror (G4bool);
100 
101  void SetBarLength (G4double);
102  void SetBarBase (G4double);
103  void SetHoleRadius (G4double);
105  void SetCoatingRadius (G4double);
106 
112 
118 
121 
122  // StringToRotationMatrix() converts a string "X90,Y45" into a
123  // G4RotationMatrix.
124  // This is an active rotation, in that the object is first rotated
125  // around the parent's X axis by 90 degrees, then the object is
126  // further rotated around the parent's Y axis by 45 degrees.
127  // The return value points to a G4RotationMatrix on the heap, so
128  // it is persistent. Angles are in degrees, can have decimals,
129  // and can be negative. Axes are X, Y, Z.
130 
132 
134 
135  private:
136 
138 
141 
144 
148 
152 
156 
160 
163 
167 
171 
177 
183 
185 
194 
201 
202  private:
203 
204  void ConstructFiber();
205 
207 
210 
211 };
212 
213 #endif