Loading...
Searching...
No Matches
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//
27/// \file optical/LXe/include/LXeDetectorConstruction.hh
28/// \brief Definition of the LXeDetectorConstruction class
29//
30//
31#ifndef LXeDetectorConstruction_h
32#define LXeDetectorConstruction_h 1
33
35
36#include "G4Cache.hh"
37#include "G4VUserDetectorConstruction.hh"
38#include <CLHEP/Units/SystemOfUnits.h>
39
40class LXeMainVolume;
41class LXePMTSD;
42class LXeScintSD;
43
44class G4Box;
45class G4Element;
46class G4LogicalVolume;
47class G4Material;
49class G4Sphere;
50class G4Tubs;
52
54{
55 public:
57 ~LXeDetectorConstruction() override;
58
59 G4VPhysicalVolume* Construct() override;
60 void ConstructSDandField() override;
61
62 // Functions to modify the geometry
63 void SetDimensions(G4ThreeVector);
64 void SetHousingThickness(G4double);
65 void SetNX(G4int);
66 void SetNY(G4int);
67 void SetNZ(G4int);
68 void SetPMTRadius(G4double);
69 void SetDefaults();
70 void SetSaveThreshold(G4int);
71
72 // Get values
73 G4int GetNX() const { return fNx; };
74 G4int GetNY() const { return fNy; };
75 G4int GetNZ() const { return fNz; };
76 G4int GetSaveThreshold() const { return fSaveThreshold; };
77 G4double GetScintX() const { return fScint_x; }
78 G4double GetScintY() const { return fScint_y; }
79 G4double GetScintZ() const { return fScint_z; }
80 G4double GetHousingThickness() const { return fD_mtl; }
81 G4double GetPMTRadius() const { return fOuterRadius_pmt; }
82 G4double GetSlabZ() const { return fSlab_z; }
83
84 void SetSphereOn(G4bool);
85 static G4bool GetSphereOn() { return fSphereOn; }
86
87 void SetHousingReflectivity(G4double);
88 G4double GetHousingReflectivity() const { return fRefl; }
89
90 void SetWLSSlabOn(G4bool b);
91 G4bool GetWLSSlabOn() const { return fWLSslab; }
92
93 void SetMainVolumeOn(G4bool b);
94 G4bool GetMainVolumeOn() const { return fMainVolumeOn; }
95
96 void SetNFibers(G4int n);
97 G4int GetNFibers() const { return fNfibers; }
98
99 void SetMainScintYield(G4double);
100 void SetWLSScintYield(G4double);
101
102 private:
103 void DefineMaterials();
104
106
110
111 // Materials & Elements
112 G4Element* fN = nullptr;
113 G4Element* fO = nullptr;
114 G4Element* fC = nullptr;
115 G4Element* fH = nullptr;
116 G4Material* fLXe = nullptr;
117 G4Material* fAl = nullptr;
118 G4Material* fAir = nullptr;
119 G4Material* fVacuum = nullptr;
120 G4Material* fGlass = nullptr;
122 G4Material* fPMMA = nullptr;
125
126 // Geometry
127 G4double fScint_x = 17.8 * CLHEP::cm;
128 G4double fScint_y = 17.8 * CLHEP::cm;
129 G4double fScint_z = 22.6 * CLHEP::cm;
130 G4double fD_mtl = 0.0635 * CLHEP::cm;
131 G4int fNx = 2;
132 G4int fNy = 2;
133 G4int fNz = 3;
134 G4int fSaveThreshold = 0;
135 G4double fOuterRadius_pmt = 2.3 * CLHEP::cm;
136 G4int fNfibers = 15;
137 static G4bool fSphereOn;
138 G4double fRefl = 1.;
139 G4bool fWLSslab = false;
140 G4bool fMainVolumeOn = true;
141 G4double fSlab_z = 2.5 * CLHEP::mm;
142
144
147
148 // Sensitive Detectors
151};
152
153#endif
Definition of the LXeDetectorMessenger class.
G4Cache< LXeScintSD * > fScint_SD
G4MaterialPropertiesTable * fMPTPStyrene
LXeDetectorMessenger * fDetectorMessenger
G4VPhysicalVolume * fExperimentalHall_phys
G4MaterialPropertiesTable * fLXe_mt
G4VPhysicalVolume * Construct() override

Applications | User Support | Publications | Collaboration