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