Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LXeDetectorConstruction.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 LXeDetectorConstruction_H
31 #define LXeDetectorConstruction_H 1
32 
33 class G4LogicalVolume;
34 class G4VPhysicalVolume;
35 class G4Box;
36 class G4Tubs;
37 class LXePMTSD;
38 class LXeScintSD;
39 class G4Sphere;
40 
41 #include "G4Material.hh"
42 #include "LXeDetectorMessenger.hh"
43 #include "G4VisAttributes.hh"
44 #include "G4RotationMatrix.hh"
46 
48 {
49  public:
50 
52  virtual ~LXeDetectorConstruction();
53 
54  virtual G4VPhysicalVolume* Construct();
55 
56  //Functions to modify the geometry
59  void SetNX(G4int );
60  void SetNY(G4int );
61  void SetNZ(G4int );
62  void SetPMTRadius(G4double );
63  void SetDefaults();
64 
65  //Get values
66  G4double GetScintX(){return fScint_x;}
67  G4double GetScintY(){return fScint_y;}
68  G4double GetScintZ(){return fScint_z;}
69  G4double GetHousingThickness(){return fD_mtl;}
70  G4int GetNX(){return fNx;}
71  G4int GetNY(){return fNy;}
72  G4int GetNZ(){return fNz;}
73  G4double GetPMTRadius(){return fOuterRadius_pmt;}
74  G4double GetSlabZ(){return fSlab_z;}
75 
76  //rebuild the geometry based on changes. must be called
77  void UpdateGeometry();
78  G4bool GetUpdated(){return fUpdated;}
79 
80  void SetSphereOn(G4bool b){fSphereOn=b; fUpdated=true;}
81  static G4bool GetSphereOn(){return fSphereOn;}
82 
83  void SetHousingReflectivity(G4double r){fRefl=r; fUpdated=true;}
85 
86  void SetWLSSlabOn(G4bool b){fWLSslab=b; fUpdated=true;}
87  G4bool GetWLSSlabOn(){return fWLSslab;}
88 
89  void SetMainVolumeOn(G4bool b){fMainVolume=b; fUpdated=true;}
90  G4bool GetMainVolumeOn(){return fMainVolume;}
91 
92  void SetNFibers(G4int n){fNfibers=n; fUpdated=true;}
93  G4int GetNFibers(){return fNfibers;}
94 
97 
98  private:
99 
100  void DefineMaterials();
101  G4VPhysicalVolume* ConstructDetector();
102 
103  LXeDetectorMessenger* fDetectorMessenger;
104 
105  G4bool fUpdated;
106 
107  G4Box* fExperimentalHall_box;
108  G4LogicalVolume* fExperimentalHall_log;
109  G4VPhysicalVolume* fExperimentalHall_phys;
110 
111  //Materials & Elements
112  G4Material* fLXe;
113  G4Material* fAl;
114  G4Element* fN;
115  G4Element* fO;
116  G4Material* fAir;
117  G4Material* fVacuum;
118  G4Element* fC;
119  G4Element* fH;
120  G4Material* fGlass;
121  G4Material* fPstyrene;
122  G4Material* fPMMA;
123  G4Material* fPethylene1;
124  G4Material* fPethylene2;
125 
126  //Geometry
127  G4double fScint_x;
128  G4double fScint_y;
129  G4double fScint_z;
130  G4double fD_mtl;
131  G4int fNx;
132  G4int fNy;
133  G4int fNz;
134  G4double fOuterRadius_pmt;
135  G4int fNfibers;
136  static G4bool fSphereOn;
137  G4double fRefl;
138  G4bool fWLSslab;
139  G4bool fMainVolume;
140  G4double fSlab_z;
141 
142  G4MaterialPropertiesTable* fLXe_mt;
143  G4MaterialPropertiesTable* fMPTPStyrene;
144 
145 };
146 
147 #endif