Geant4  10.03.p03
 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 //
26 // $Id: LXeDetectorConstruction.hh 77486 2013-11-25 10:14:16Z gcosmo $
27 //
30 //
31 //
32 #ifndef LXeDetectorConstruction_H
33 #define LXeDetectorConstruction_H 1
34 
35 class G4LogicalVolume;
36 class G4VPhysicalVolume;
37 class G4Box;
38 class G4Tubs;
39 class LXeMainVolume;
40 class G4Sphere;
41 
42 #include "G4Material.hh"
43 #include "LXeDetectorMessenger.hh"
44 #include "G4VisAttributes.hh"
45 #include "G4RotationMatrix.hh"
46 
47 #include "LXeScintSD.hh"
48 #include "LXePMTSD.hh"
49 
51 #include "G4Cache.hh"
52 
54 {
55  public:
56 
58  virtual ~LXeDetectorConstruction();
59 
60  virtual G4VPhysicalVolume* Construct();
61  virtual void ConstructSDandField();
62 
63  //Functions to modify the geometry
66  void SetNX(G4int );
67  void SetNY(G4int );
68  void SetNZ(G4int );
69  void SetPMTRadius(G4double );
70  void SetDefaults();
71 
72  //Get values
73  G4int GetNX(){return fNx;}
74  G4int GetNY(){return fNy;}
75  G4int GetNZ(){return fNz;}
76  G4double GetScintX(){return fScint_x;}
77  G4double GetScintY(){return fScint_y;}
78  G4double GetScintZ(){return fScint_z;}
79  G4double GetHousingThickness(){return fD_mtl;}
80  G4double GetPMTRadius(){return fOuterRadius_pmt;}
81  G4double GetSlabZ(){return fSlab_z;}
82 
83  void SetSphereOn(G4bool );
84  static G4bool GetSphereOn(){return fSphereOn;}
85 
88 
89  void SetWLSSlabOn(G4bool b);
90  G4bool GetWLSSlabOn(){return fWLSslab;}
91 
92  void SetMainVolumeOn(G4bool b);
93  G4bool GetMainVolumeOn(){return fMainVolumeOn;}
94 
95  void SetNFibers(G4int n);
96  G4int GetNFibers(){return fNfibers;}
97 
100 
101  private:
102 
103  void DefineMaterials();
104  G4VPhysicalVolume* ConstructDetector();
105 
106  LXeDetectorMessenger* fDetectorMessenger;
107 
108  G4Box* fExperimentalHall_box;
109  G4LogicalVolume* fExperimentalHall_log;
110  G4VPhysicalVolume* fExperimentalHall_phys;
111 
112  //Materials & Elements
113  G4Material* fLXe;
114  G4Material* fAl;
115  G4Element* fN;
116  G4Element* fO;
117  G4Material* fAir;
118  G4Material* fVacuum;
119  G4Element* fC;
120  G4Element* fH;
121  G4Material* fGlass;
122  G4Material* fPstyrene;
123  G4Material* fPMMA;
124  G4Material* fPethylene1;
125  G4Material* fPethylene2;
126 
127  //Geometry
128  G4double fScint_x;
129  G4double fScint_y;
130  G4double fScint_z;
131  G4double fD_mtl;
132  G4int fNx;
133  G4int fNy;
134  G4int fNz;
135  G4double fOuterRadius_pmt;
136  G4int fNfibers;
137  static G4bool fSphereOn;
138  G4double fRefl;
139  G4bool fWLSslab;
140  G4bool fMainVolumeOn;
141  G4double fSlab_z;
142 
143  LXeMainVolume* fMainVolume;
144 
145  G4MaterialPropertiesTable* fLXe_mt;
146  G4MaterialPropertiesTable* fMPTPStyrene;
147 
148  //Sensitive Detectors
149  G4Cache<LXeScintSD*> fScint_SD;
150  G4Cache<LXePMTSD*> fPmt_SD;
151 
152 };
153 
154 #endif
Definition: G4Box.hh:64
Definition: G4Tubs.hh:85
int G4int
Definition: G4Types.hh:78
tuple b
Definition: test.py:12
Definition of the LXePMTSD class.
bool G4bool
Definition: G4Types.hh:79
virtual G4VPhysicalVolume * Construct()
const G4int n
Definition of the LXeScintSD class.
double G4double
Definition: G4Types.hh:76
Definition of the LXeDetectorMessenger class.