1 |
formato |
1.1 |
#ifndef PAMVMC_DET_TRK_H |
2 |
|
|
#define PAMVMC_DET_TRK_H |
3 |
|
|
|
4 |
|
|
#include "TVector3.h" |
5 |
|
|
#include "PamVMCDetector.h" |
6 |
|
|
#include "pCombTrans.h" |
7 |
|
|
#include "PamVMCTrkSD.h" |
8 |
|
|
|
9 |
|
|
#define NP_TRK 6 |
10 |
|
|
|
11 |
|
|
class PamVMCTrkSD; |
12 |
|
|
|
13 |
|
|
class PamVMCDetTrk : public PamVMCDetector { |
14 |
|
|
|
15 |
|
|
Double_t dxflo[NP_TRK*NP_TRK], dyflo[NP_TRK*NP_TRK]; |
16 |
|
|
CombTransMap fctmap; |
17 |
|
|
void ReadPaddlesPos(); |
18 |
|
|
public: |
19 |
|
|
|
20 |
|
|
|
21 |
|
|
PamVMCDetTrk():PamVMCDetector("Tracker") |
22 |
|
|
{; }; |
23 |
|
|
|
24 |
|
|
~PamVMCDetTrk(){ |
25 |
|
|
fctmap.clear(); |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
void DefineGeometry(); |
29 |
|
|
|
30 |
|
|
void DefineCuts(); |
31 |
|
|
|
32 |
|
|
virtual void InitMC(){ |
33 |
|
|
|
34 |
|
|
TString t = "TSPA"; |
35 |
|
|
PamVMCTrkSD *trk = new PamVMCTrkSD(); |
36 |
|
|
fdetSD.Add(new TObjString(t), trk); |
37 |
|
|
PamVMCSDMgr::Instance()->SetSD(t,trk); |
38 |
|
|
//insert SD in Field of Volume |
39 |
|
|
GetVol(t)->SetField(trk); |
40 |
|
|
} |
41 |
|
|
|
42 |
|
|
ClassDef(PamVMCDetTrk,1) |
43 |
|
|
}; |
44 |
|
|
|
45 |
|
|
|
46 |
|
|
#endif //PAMVMC_DET_TRK_H |