1 |
#include <iostream> |
2 |
|
3 |
#include "PamVMCDetectorHit.h" |
4 |
#include <TLorentzVector.h> |
5 |
|
6 |
using std::cout; |
7 |
using std::endl; |
8 |
|
9 |
ClassImp(pHitData) |
10 |
ClassImp(PamVMCDetectorHit) |
11 |
|
12 |
pHitData & operator+=( pHitData &a, const pHitData & p) { |
13 |
a.fPOS = p.fPOS; |
14 |
a.fPDG = p.fPDG; |
15 |
a.fPATH= p.fPATH; |
16 |
a.fTOF= p.fTOF; |
17 |
a.fPIN += p.fPIN; |
18 |
a.fXOUT= p.fXOUT; |
19 |
a.fYOUT= p.fYOUT; |
20 |
a.fZOUT= p.fZOUT; |
21 |
a.fEREL += p.fEREL; |
22 |
a.fXIN = p.fXIN; |
23 |
a.fYIN = p.fYIN; |
24 |
a.fZIN = p.fZIN; |
25 |
return a; |
26 |
// return *this; |
27 |
} |
28 |
|
29 |
PamVMCDetectorHit::PamVMCDetectorHit() |
30 |
: TObject(), |
31 |
// fHITN(hitnum), |
32 |
// fPOS(-1), |
33 |
fnocall(0) |
34 |
|
35 |
{ |
36 |
} |
37 |
|
38 |
PamVMCDetectorHit::~PamVMCDetectorHit() |
39 |
{ |
40 |
// delete &fhitdata; |
41 |
} |
42 |
|
43 |
void PamVMCDetectorHit::Print(Option_t* /*option*/) const |
44 |
{ |
45 |
// Prints hit info |
46 |
cout << "Actual Hit :" |
47 |
<<", Energy deposit (keV): " << fhitdata.fEREL * 1.0e06 << endl ; |
48 |
} |
49 |
|
50 |
void PamVMCDetectorHit::Reset() |
51 |
{ |
52 |
// Reset all accounted values. |
53 |
fhitdata.Clean(); |
54 |
// fHITN=0; |
55 |
// fPOS=-1; |
56 |
fnocall=0; |
57 |
|
58 |
} |
59 |
|