Geant4  10.02.p01
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;}
82 
83  void SetSphereOn(G4bool );
84  static G4bool GetSphereOn(){return fSphereOn;}
85 
88 
89  void SetWLSSlabOn(G4bool b);
91 
92  void SetMainVolumeOn(G4bool b);
94 
95  void SetNFibers(G4int n);
97 
100 
101  private:
102 
103  void DefineMaterials();
105 
107 
111 
112  //Materials & Elements
126 
127  //Geometry
142 
144 
147 
148  //Sensitive Detectors
151 
152 };
153 
154 #endif
CLHEP::Hep3Vector G4ThreeVector
Definition: G4Box.hh:64
Definition: G4Tubs.hh:85
G4MaterialPropertiesTable * fMPTPStyrene
int G4int
Definition: G4Types.hh:78
G4VPhysicalVolume * ConstructDetector()
Definition of the LXePMTSD class.
bool G4bool
Definition: G4Types.hh:79
virtual G4VPhysicalVolume * Construct()
const G4int n
LXeDetectorMessenger * fDetectorMessenger
G4Cache< LXeScintSD * > fScint_SD
Definition of the LXeScintSD class.
G4MaterialPropertiesTable * fLXe_mt
G4LogicalVolume * fExperimentalHall_log
double G4double
Definition: G4Types.hh:76
Definition of the LXeDetectorMessenger class.
G4VPhysicalVolume * fExperimentalHall_phys