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