1 |
#ifndef PAMVMC_DET_PAMELA_H |
2 |
#define PAMVMC_DET_PAMELA_H |
3 |
|
4 |
#include "PamVMCDetector.h" |
5 |
|
6 |
#include "PamVMCDetCalo.h" |
7 |
#include "PamVMCDetTrk.h" |
8 |
#include "PamVMCDetTof.h" |
9 |
#include "PamVMCDetAc.h" |
10 |
#include "PamVMCDetS4.h" |
11 |
#include "PamVMCDetND.h" |
12 |
#include "PamVMCOptMgr.h" |
13 |
|
14 |
|
15 |
|
16 |
class PamVMCDetPamela : public PamVMCDetector { |
17 |
|
18 |
private: |
19 |
|
20 |
|
21 |
public: |
22 |
|
23 |
PamVMCDetPamela():PamVMCDetector("Pamela") |
24 |
{ |
25 |
PamVMCOptMgr* omg = PamVMCOptMgr::Instance(); |
26 |
|
27 |
TString t; |
28 |
if(! omg->IsNoCalo() ){ |
29 |
t = "Calorimeter"; |
30 |
fsubdet.Add(new TObjString(t), new PamVMCDetCalo()); |
31 |
} else { |
32 |
cout << "Skipping Calorimeter Construction" << endl; |
33 |
} |
34 |
t = "Tracker"; |
35 |
fsubdet.Add(new TObjString(t), new PamVMCDetTrk()); |
36 |
t = "Tof"; |
37 |
fsubdet.Add(new TObjString(t), new PamVMCDetTof()); |
38 |
t = "Ac"; |
39 |
fsubdet.Add(new TObjString(t), new PamVMCDetAc()); |
40 |
t = "S4"; |
41 |
fsubdet.Add(new TObjString(t), new PamVMCDetS4()); |
42 |
t = "ND"; |
43 |
fsubdet.Add(new TObjString(t), new PamVMCDetND()); |
44 |
|
45 |
}; |
46 |
|
47 |
void DefineMother(); |
48 |
|
49 |
void DefineShell(); |
50 |
|
51 |
void DefineCuts(); |
52 |
|
53 |
//void SetCuts(); |
54 |
|
55 |
void DefineGeometry(){ |
56 |
DefineMother(); |
57 |
DefineShell(); |
58 |
} |
59 |
|
60 |
TGeoVolume* GetMotherVol(){ return GetVol("PAME"); } |
61 |
|
62 |
|
63 |
|
64 |
ClassDef(PamVMCDetPamela,1) |
65 |
}; |
66 |
|
67 |
|
68 |
#endif //PAMVMC_DET_PAMELA_H |