-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDetectors.hh
More file actions
205 lines (176 loc) · 6.16 KB
/
Detectors.hh
File metadata and controls
205 lines (176 loc) · 6.16 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
#include "G4Material.hh"
#include "G4NistManager.hh"
#include "G4Polyhedra.hh"
#include "G4Box.hh"
#include "G4Trd.hh"
#include "G4Tubs.hh"
#include "G4Sphere.hh"
#include "G4UnionSolid.hh"
#include "G4LogicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4Text.hh"
#include "G4VisAttributes.hh"
#include <TObject.h>
#include <TFile.h>
//#include <TH1.h>
//#include <TF1.h>
#include <TList.h>
#include <TTree.h>
#include "G4SubtractionSolid.hh"
#include "G4SystemOfUnits.hh"
#include <RunControl.hh>
#include "MVector.hh"
#include <G4AssemblyVolume.hh>
#include <string>
using namespace std;
class Stilbene {
public:
G4LogicalVolume* Crystall;
G4LogicalVolume* Assembly;
G4LogicalVolume* ExternalCover_cylinder;
G4LogicalVolume* ExternalCover_bottom;
G4LogicalVolume* ExternalCover_back;
G4AssemblyVolume* Cover;
Stilbene();
void PlaceCartesian(string name, G4RotationMatrix rotm1,
G4ThreeVector pos, G4LogicalVolume *logicWorld,
int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi,
double theta, G4LogicalVolume *logicWorld, int CopyNo);
};
class LaBr {
public:
G4LogicalVolume* Crystall;
G4LogicalVolume* Assembly;
G4LogicalVolume* ExternalCover_cylinder;
G4LogicalVolume* ExternalCover_bottom;
G4LogicalVolume* ExternalCover_back;
G4AssemblyVolume* Cover;
LaBr();
void PlaceCartesian(string name, G4RotationMatrix rotm1,
G4ThreeVector pos, G4LogicalVolume *logicWorld,
int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi,
double theta, G4LogicalVolume *logicWorld, int CopyNo);
};
class Source {
public:
G4LogicalVolume* ActivSource;
G4LogicalVolume* SourceHolder;
G4AssemblyVolume* Cover;
G4LogicalVolume* Assembly;
Source();
void PlaceCartesian(string name, G4RotationMatrix rotm1,
G4ThreeVector pos, G4LogicalVolume *logicWorld,
int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi,
double theta, G4LogicalVolume *logicWorld, int CopyNo);
};
class ORTEC_GMX30_83_PL_S
{
public:
G4LogicalVolume* Crystall;
//G4LogicalVolume* Cover;
G4LogicalVolume* LHole;
G4LogicalVolume* ExternalCover_cylinder;
G4LogicalVolume* ExternalCover_bottom;
G4AssemblyVolume* Cover;
G4Tubs* HPGe;
G4Tubs* Hole;
ORTEC_GMX30_83_PL_S();
void PlaceCartesian(string name, G4RotationMatrix rotm1, G4ThreeVector pos, G4LogicalVolume *logicWorld,int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi, double theta, G4LogicalVolume *logicWorld,int CopyNo);
};
class B117LeadPlate
{
public:
G4LogicalVolume* Plate;
B117LeadPlate(float x=30*cm,float y=15*cm,float z=2.5*cm);
B117LeadPlate(string type_of_plate);
void PlaceCartesian(string name, G4RotationMatrix rotm1, G4ThreeVector pos, G4LogicalVolume *logicWorld,int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi, double theta, G4LogicalVolume *logicWorld,int CopyNo);
G4LogicalVolume* GetPointer();
};
class B117HPGeTable
{
public:
G4LogicalVolume* Plate;
G4LogicalVolume* table_legs[4];
G4AssemblyVolume* table;
B117HPGeTable();
void PlaceCartesian(string name, G4RotationMatrix rotm1, G4ThreeVector pos, G4LogicalVolume *logicWorld,int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi, double theta, G4LogicalVolume *logicWorld,int CopyNo);
};
class B117ConcreteBlock
{
public:
G4LogicalVolume* Block;
B117ConcreteBlock(float xdim=50/2*cm,float ydim=20/2*cm,float zdim=20/2*cm);
void PlaceCartesian(string name, G4RotationMatrix rotm1, G4ThreeVector pos, G4LogicalVolume *logicWorld,int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi, double theta, G4LogicalVolume *logicWorld,int CopyNo);
};
class Coordinates
{
public:
float v_c[3];
float a[3];
string order;
Coordinates(float x,float y,float z,string ord="",float a1=0,float a2=0,float a3=0);
Coordinates();
G4ThreeVector GetG4ThreeVector();
G4RotationMatrix GetG4RotationMatrix();
G4RotationMatrix* GetPointerToG4RotationMatrix();
//Coordinates operator = (Coordinates c1);
};
class Shield
{
public:
vector<G4LogicalVolume*> Blocks;
G4AssemblyVolume* shield;
Shield(vector<Coordinates> g4tf);
void PlaceCartesian(string name, G4RotationMatrix rotm1, G4ThreeVector pos, G4LogicalVolume *logicWorld,int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi, double theta, G4LogicalVolume *logicWorld,int CopyNo);
};
class DiamantBGO
{
public:
G4LogicalVolume* Crystall;
G4LogicalVolume* Assembly;
//G4LogicalVolume* Cover;
G4LogicalVolume* ExternalCover_cylinder1;
G4LogicalVolume* ExternalCover_cylinder2;
G4LogicalVolume* ExternalCover_bottom;
G4AssemblyVolume* Cover;
DiamantBGO();
void PlaceCartesian(string name, G4RotationMatrix rotm1, G4ThreeVector pos, G4LogicalVolume *logicWorld,int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi, double theta, G4LogicalVolume *logicWorld,int CopyNo);
};
class B117NaI
{
public:
G4LogicalVolume* Crystall;
G4LogicalVolume* Assembly;
//G4LogicalVolume* Cover;
G4LogicalVolume* ExternalCover_hexagonal_prism;
G4LogicalVolume* ExternalCover_bottom;
G4AssemblyVolume* Cover;
B117NaI();
void PlaceCartesian(string name, G4RotationMatrix rotm1, G4ThreeVector pos, G4LogicalVolume *logicWorld,int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi, double theta, G4LogicalVolume *logicWorld,int CopyNo);
};
class B117PlywoodSheet
{
public:
G4LogicalVolume* Plywood;
B117PlywoodSheet(float length=150*cm,float width=150*cm,float thickness=2*cm);
void PlaceCartesian(string name, G4RotationMatrix rotm1, G4ThreeVector pos, G4LogicalVolume *logicWorld,int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi, double theta, G4LogicalVolume *logicWorld,int CopyNo);
};
/*class B117Ing27Holder
{
public:
B117Ing27Holder();
G4LogicalVolume* table_legs[4];
void PlaceCartesian(string name, G4RotationMatrix rotm1, G4ThreeVector pos, G4LogicalVolume *logicWorld,int CopyNo);
void Place(string name, G4RotationMatrix rotm1, double r, double phi, double theta, G4LogicalVolume *logicWorld,int CopyNo);
};*/