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