-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstruction.hh
50 lines (36 loc) · 1.38 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
#ifndef CONSTRUCTION_HH
#define CONSTRUCTION_HH
#include "G4SystemOfUnits.hh"
#include "G4VUserDetectorConstruction.hh"
#include "G4UImanager.hh"
#include "G4VPhysicalVolume.hh"
#include "G4LogicalVolume.hh"
#include "G4Box.hh"
#include "G4Tubs.hh"
#include "G4PVPlacement.hh"
#include "G4NistManager.hh"
#include "G4GenericMessenger.hh"
#include "G4SubtractionSolid.hh"
#include "G4PhysicalConstants.hh"
#include "detector.hh"
class MyDetectorConstruction : public G4VUserDetectorConstruction
{
public:
MyDetectorConstruction();
~MyDetectorConstruction();
G4LogicalVolume *GetScoringVolume() const { return ScoringVolume;}
virtual G4VPhysicalVolume *Construct();
virtual void ConstructSDandField();
private:
///G4double *xWorld, *yWorld, *zWorld;
G4Box *solidWorld, *solidFrame;
G4Tubs *solidHole, *solidHolder, *solidTarget, *solidWindow, *solidDetector;
G4LogicalVolume *logicTarget, *logicSubtraction, *logicWorld, *logicWindow, *logicDetector;
G4VPhysicalVolume *physHolder, *physTarget, *physSubtraction, *physWorld, *physWindow, *physDetector;
G4GenericMessenger *fMessenger;
G4Material *vacuum, *SiO2, *H2O, *Epoxy, *Aerogel, *holderMat, *targetMat, *worldMat, *detMat, *winMat;
G4Element *Al, *Au, *C, *Ge, *Si,*Sn;
void DefineMaterial();
G4LogicalVolume *ScoringVolume;
};
#endif