1 |
formato |
1.1 |
#ifndef PAMVMC_DET_TOF_S2_H |
2 |
|
|
#define PAMVMC_DET_TOF_S2_H |
3 |
|
|
|
4 |
|
|
#include "PamVMCDetector.h" |
5 |
|
|
|
6 |
|
|
#include "PamVMCTofSD.h" |
7 |
|
|
|
8 |
|
|
class PamVMCTofSD; |
9 |
|
|
|
10 |
|
|
class PamVMCDetTofS2 : public PamVMCDetector { |
11 |
|
|
|
12 |
|
|
private: |
13 |
|
|
|
14 |
|
|
Bool_t TPLAfirst; |
15 |
|
|
|
16 |
|
|
public: |
17 |
|
|
|
18 |
|
|
|
19 |
|
|
PamVMCDetTofS2():PamVMCDetector("S2") |
20 |
|
|
{; }; |
21 |
|
|
|
22 |
|
|
void DefineGeometry(); |
23 |
|
|
|
24 |
|
|
void DefineCuts(); |
25 |
|
|
|
26 |
|
|
virtual void InitMC(){ |
27 |
|
|
|
28 |
|
|
TString t = "S21X"; |
29 |
|
|
PamVMCTofSD *s21x = new PamVMCTofSD(t); |
30 |
|
|
fdetSD.Add(new TObjString(t), s21x); |
31 |
|
|
PamVMCSDMgr::Instance()->SetSD(t,s21x); |
32 |
|
|
GetVol(t)->SetField(s21x); |
33 |
|
|
|
34 |
|
|
t = "S22Y"; |
35 |
|
|
PamVMCTofSD *s22y = new PamVMCTofSD(t); |
36 |
|
|
fdetSD.Add(new TObjString(t), s22y); |
37 |
|
|
PamVMCSDMgr::Instance()->SetSD(t,s22y); |
38 |
|
|
GetVol(t)->SetField(s22y); |
39 |
|
|
} |
40 |
|
|
|
41 |
|
|
ClassDef(PamVMCDetTofS2,1) |
42 |
|
|
}; |
43 |
|
|
|
44 |
|
|
|
45 |
|
|
#endif //PAMVMC_DET_TOF_S2_H |