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