1 |
nikolas |
1.1 |
#ifndef PAMVMCCATSD_H |
2 |
|
|
#define PAMVMCCATSD_H |
3 |
|
|
#include <iostream> |
4 |
|
|
|
5 |
|
|
#include "PamVMCDetectorSD.h" |
6 |
|
|
|
7 |
|
|
using std::cout; |
8 |
|
|
using std::endl; |
9 |
|
|
|
10 |
|
|
class PamVMCCatSD: public PamVMCDetectorSD{ |
11 |
|
|
|
12 |
|
|
// const char* cname; |
13 |
|
|
|
14 |
|
|
public: |
15 |
|
|
PamVMCCatSD():PamVMCDetectorSD("pHitData","MGSC",1000) |
16 |
|
|
{ |
17 |
|
|
//cname=dname; |
18 |
|
|
}; |
19 |
|
|
|
20 |
|
|
|
21 |
|
|
// virtual void FillHit(fin f,TVirtualMC *g){ |
22 |
|
|
|
23 |
|
|
|
24 |
|
|
// switch(f) { |
25 |
|
|
// case ENTERING: |
26 |
|
|
|
27 |
|
|
// CleanHit(); |
28 |
|
|
// FillVolID(); |
29 |
|
|
// InitHit(); |
30 |
|
|
|
31 |
|
|
// default: |
32 |
|
|
// UpdateHit(g); |
33 |
|
|
|
34 |
|
|
///// // cout<<"NEW HIT ENTERING OR INSIDE "<<fnohit<<" in "<<cname<<" PDG="<<fhit.GetPDG()<<" at "<<g->TrackTime()<<" fTOF is: "<<fhit.GetTOF()<<endl; |
35 |
|
|
// break; |
36 |
|
|
// } |
37 |
|
|
|
38 |
|
|
//switch(f){ |
39 |
|
|
//case EXITING: |
40 |
|
|
//// // Save hit if energy release is greater than zero |
41 |
|
|
// if(fhit.GetEREL()){ |
42 |
|
|
//if(fdetID->FillVolID()){ |
43 |
|
|
/// //cout<<"saving"<<fdetID->GetID()<<endl; |
44 |
|
|
/// //cout<<"NEW HIT EXITING "<<fnohit<<" in "<<cname<<" PDG="<<fhit.GetPDG()<<" at"<<fhit.GetTOF()<<endl; |
45 |
|
|
// SaveHit(cname); |
46 |
|
|
//} else { |
47 |
|
|
// cout << "TOF FillVolID false" <<endl; |
48 |
|
|
//} |
49 |
|
|
// } |
50 |
|
|
// break; |
51 |
|
|
//default: |
52 |
|
|
// break; |
53 |
|
|
//} |
54 |
|
|
//} |
55 |
|
|
|
56 |
|
|
ClassDef(PamVMCCatSD,1) |
57 |
|
|
|
58 |
|
|
}; |
59 |
|
|
|
60 |
|
|
#endif // PAMVMCCATSD_H |