-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathconstruction.hh
More file actions
57 lines (42 loc) · 1.49 KB
/
construction.hh
File metadata and controls
57 lines (42 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef CONSTRUCTION_HH
#define CONSTRUCTION_HH
#include "G4VUserDetectorConstruction.hh"
#include "G4VPhysicalVolume.hh"
#include "G4LogicalVolume.hh"
#include "G4Box.hh"
#include "G4Tubs.hh"
#include "G4PVPlacement.hh"
#include "G4NistManager.hh"
#include "G4SystemOfUnits.hh"
#include "G4GenericMessenger.hh"
#include "G4OpticalSurface.hh"
#include "G4LogicalBorderSurface.hh"
#include "G4LogicalSkinSurface.hh"
#include "detector.hh"
class MyDetectorConstruction : public G4VUserDetectorConstruction
{
public:
MyDetectorConstruction();
~MyDetectorConstruction();
G4LogicalVolume *GetScoringVolume() const { return fScoringVolume; }
virtual G4VPhysicalVolume *Construct();
void ConstructCherenkov();
void ConstructScintillator();
void ConstructTOF();
void ConstructAtmosphere();
private:
G4Box *solidWorld, *solidRadiator, *solidDetector, *solidScintillator, *solidAir;
G4LogicalVolume *logicWorld, *logicRadiator, *logicDetector, *logicScintillator, *logicAir[10];
G4VPhysicalVolume *physWorld, *physDetector, *physRadiator, *physScintillator, *physAir[10];
G4OpticalSurface *mirrorSurface;
G4Material *SiO2, *H2O, *Aerogel, *worldMat, *NaI, *Air[10];
G4Element *C, *Na, *I;
void DefineMaterials();
virtual void ConstructSDandField();
G4GenericMessenger *fMessenger;
G4LogicalVolume *fScoringVolume;
G4int nRows, nCols;
G4double xWorld, yWorld, zWorld;
G4bool isCherenkov, isScintillator, isTOF, isAtmosphere;
};
#endif