-
Notifications
You must be signed in to change notification settings - Fork 0
/
construction.hh
53 lines (41 loc) · 1.31 KB
/
construction.hh
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
#ifndef CONSTRUCTION_HH
#define CONSTRUCTION_HH
#include "G4Material.hh"
#include "G4Box.hh"
#include "G4Tubs.hh"
#include "G4Sphere.hh"
#include "G4PVPlacement.hh"
#include "G4UnionSolid.hh"
#include "G4SubtractionSolid.hh"
#include "G4VisAttributes.hh"
#include "G4LogicalBorderSurface.hh"
#include "G4LogicalSkinSurface.hh"
#include "G4OpBoundaryProcess.hh"
#include "G4VUserDetectorConstruction.hh"
#include "G4VPhysicalVolume.hh"
#include "G4LogicalVolume.hh"
#include "G4NistManager.hh"
#include "G4SystemOfUnits.hh"
#include "G4GenericMessenger.hh"
#include "detector.hh"
#include "json_class.hh"
class MyDetectorConstruction : public G4VUserDetectorConstruction
{
public:
MyDetectorConstruction(); //constructor
MyDetectorConstruction(G4String jsonName); //constructor
~MyDetectorConstruction(); //destructor
virtual G4VPhysicalVolume *Construct();
private:
G4Box *solidWorld;
G4LogicalVolume *logicWorld;
G4VPhysicalVolume *physWorld;
G4Material *Air, *LAr, *Plastic, *Metal, *Iron, *Nickel, *Copper;
// SENSITIVE DETECTORS NEED TO BE DEFINED HERE
G4LogicalVolume *logicSC, *logicSiPM1, *logicSiPM2;
G4String fjsonName;
void ConstructScintillator();
void DefineMaterials();
virtual void ConstructSDandField(); //construct sensitive detector and E/B field
};
#endif