1 | // $Id: RecoEnergy.cc 2512 2006-02-28 16:43:21Z naumov $ |
---|
2 | // Author: R.Pesce 2005/01/04 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: RecoEnergy * |
---|
8 | * Package: RecoRootEvent * |
---|
9 | * Coordinator: Dmitry.Naumov * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | //_____________________________________________________________________________ |
---|
14 | // |
---|
15 | // RecoEnergy |
---|
16 | // |
---|
17 | // <extensive class description> |
---|
18 | // |
---|
19 | // Config file parameters |
---|
20 | // ====================== |
---|
21 | // |
---|
22 | // <parameter name>: <parameter description> |
---|
23 | // -Valid options: <available options> |
---|
24 | // |
---|
25 | |
---|
26 | #include "RecoEnergy.hh" |
---|
27 | #include "Etypes.hh" |
---|
28 | |
---|
29 | ClassImp(RecoEnergy) |
---|
30 | |
---|
31 | //_____________________________________________________________________________ |
---|
32 | RecoEnergy::RecoEnergy() { |
---|
33 | // |
---|
34 | // Constructor |
---|
35 | // |
---|
36 | Clear(); |
---|
37 | } |
---|
38 | |
---|
39 | //_____________________________________________________________________________ |
---|
40 | RecoEnergy::RecoEnergy( const RecoEnergy& other ) { |
---|
41 | // |
---|
42 | // Copy Constructor |
---|
43 | // |
---|
44 | other.Copy( *this ); |
---|
45 | } |
---|
46 | |
---|
47 | //_____________________________________________________________________________ |
---|
48 | RecoEnergy::~RecoEnergy() { |
---|
49 | // |
---|
50 | // Destructor |
---|
51 | // |
---|
52 | Clear(); |
---|
53 | } |
---|
54 | |
---|
55 | //_____________________________________________________________________________ |
---|
56 | void RecoEnergy::Clear() { |
---|
57 | // |
---|
58 | // Clear method |
---|
59 | // |
---|
60 | fQuality = -kHuge; |
---|
61 | fEnergy = -kHuge; |
---|
62 | fTimeSigma = -kHuge; |
---|
63 | fEnergyMCError = -kHuge; |
---|
64 | fThetaFoVMax = -kHuge; |
---|
65 | fPhiFoVMax = -kHuge; |
---|
66 | fAltitudeMax = -kHuge; |
---|
67 | fDepthMax = -kHuge; |
---|
68 | fCherenkovFound = kFALSE; |
---|
69 | fTimeCherenkov = -kHuge; |
---|
70 | fTimeDelay = -kHuge; |
---|
71 | fTimeFluo = -kHuge; |
---|
72 | fNoiseCluster = -kHuge; |
---|
73 | fSignalCluster = -kHuge; |
---|
74 | } |
---|
75 | |
---|
76 | //_____________________________________________________________________________ |
---|
77 | void RecoEnergy::Copy( TObject& other) const { |
---|
78 | // |
---|
79 | // Copy to a new object |
---|
80 | // |
---|
81 | TObject::Copy( other ); |
---|
82 | |
---|
83 | ((RecoEnergy&)other).fQuality = fQuality; |
---|
84 | ((RecoEnergy&)other).fEnergy = fEnergy; |
---|
85 | ((RecoEnergy&)other).fTimeSigma = fTimeSigma; |
---|
86 | ((RecoEnergy&)other).fEnergyMCError = fEnergyMCError; |
---|
87 | ((RecoEnergy&)other).fThetaFoVMax = fThetaFoVMax; |
---|
88 | ((RecoEnergy&)other).fPhiFoVMax = fPhiFoVMax; |
---|
89 | ((RecoEnergy&)other).fAltitudeMax = fAltitudeMax; |
---|
90 | ((RecoEnergy&)other).fDepthMax = fDepthMax; |
---|
91 | ((RecoEnergy&)other).fCherenkovFound= fCherenkovFound; |
---|
92 | ((RecoEnergy&)other).fTimeCherenkov = fTimeCherenkov; |
---|
93 | ((RecoEnergy&)other).fTimeDelay = fTimeDelay; |
---|
94 | ((RecoEnergy&)other).fTimeFluo = fTimeFluo; |
---|
95 | ((RecoEnergy&)other).fNoiseCluster = fNoiseCluster; |
---|
96 | ((RecoEnergy&)other).fSignalCluster = fSignalCluster; |
---|
97 | ((RecoEnergy&)other).fNoisePerPixel = fNoisePerPixel; |
---|
98 | ((RecoEnergy&)other).fSignalPerPixel= fSignalPerPixel; |
---|
99 | } |
---|
100 | //_____________________________________________________________________________ |
---|
101 | void RecoEnergy::SetTimeDelay() { |
---|
102 | // |
---|
103 | // Compute time difference between time of cherenkov and time of fluo maximum. Valid if cherenkov is found. |
---|
104 | // |
---|
105 | if (fCherenkovFound) fTimeDelay = fTimeCherenkov - fTimeFluo; |
---|
106 | } |
---|
107 | |
---|