]>
Commit | Line | Data |
---|---|---|
d655d7dd | 1 | /************************************************************************** |
2 | * This file is property of and copyright by * | |
3 | * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009 * | |
4 | * * | |
6d1befcf | 5 | * Primary Author: Per Thomas Hille <perthomas.hille@yale.edu> * |
d655d7dd | 6 | * * |
7 | * Contributors are mentioned in the code where appropriate. * | |
6d1befcf | 8 | * Please report bugs to perthomas.hille@yale.edu * |
d655d7dd | 9 | * * |
10 | * Permission to use, copy, modify and distribute this software and its * | |
11 | * documentation strictly for non-commercial purposes is hereby granted * | |
12 | * without fee, provided that the above copyright notice appears in all * | |
13 | * copies and that both the copyright notice and this permission notice * | |
14 | * appear in the supporting documentation. The authors make no claims * | |
15 | * about the suitability of this software for any purpose. It is * | |
16 | * provided "as is" without express or implied warranty. * | |
17 | **************************************************************************/ | |
18 | ||
19 | ||
57839add | 20 | #include "AliCaloFitResults.h" |
d655d7dd | 21 | |
6d1befcf | 22 | AliCaloFitResults::AliCaloFitResults() : fMaxSig(-1), |
23 | fPed(-1), | |
24 | fStatus(-1), | |
25 | fAmpSig(-1), | |
26 | fTime(-1), | |
27 | fMaxTimebin(-1), | |
28 | fChi2Sig(-1), | |
29 | fNdfSig(-1), | |
30 | fMinSig(-1), | |
31 | fFitSubarray(10) | |
32 | { | |
33 | ||
34 | ||
35 | } | |
36 | ||
37 | ||
d655d7dd | 38 | |
39 | // Container class to hold results from fitting | |
40 | // as well as other methods for | |
41 | // raw data signals extraction. The class memebers | |
42 | // fChi2Sig, fNdfSig is only relevant if a fitting procedure is | |
43 | // Applied. fStatus holds information on wether or not | |
44 | // The signal was fitted sucessfully. fStatus might have a different meaning If other | |
45 | // procedures than A different meaning Fitting is applied | |
507751ce | 46 | |
57839add | 47 | AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, |
f57baa2d | 48 | const Short_t fitstatus, const Float_t amp, |
507751ce | 49 | const Float_t time, const Int_t maxTimebin, const Float_t chi, |
f57baa2d | 50 | const Int_t ndf, Int_t minSig, |
51 | const AliCaloFitSubarray fitSubarray) : | |
52 | fMaxSig(maxSig), | |
53 | fPed(ped), | |
54 | fStatus(fitstatus), | |
55 | fAmpSig(amp), | |
507751ce | 56 | fTime(time), |
57 | fMaxTimebin(maxTimebin), | |
f57baa2d | 58 | fChi2Sig(chi), |
59 | fNdfSig(ndf), | |
60 | fMinSig(minSig), | |
61 | fFitSubarray(fitSubarray) | |
d655d7dd | 62 | { |
d655d7dd | 63 | } |
64 | ||
65 | ||
f57baa2d | 66 | AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, |
67 | const Short_t fitstatus, const Float_t amp, | |
507751ce | 68 | const Float_t time, const Int_t maxTimebin, const Float_t chi, |
f57baa2d | 69 | const Int_t ndf, Int_t minSig ) : |
70 | fMaxSig(maxSig), | |
71 | fPed(ped), | |
72 | fStatus(fitstatus), | |
73 | fAmpSig(amp), | |
507751ce | 74 | fTime(time), |
75 | fMaxTimebin(maxTimebin), | |
f57baa2d | 76 | fChi2Sig(chi), |
77 | fNdfSig(ndf), | |
78 | fMinSig(minSig), | |
79 | fFitSubarray(kDummy) | |
80 | { | |
f57baa2d | 81 | } |
d655d7dd | 82 | |
83 | ||
507751ce | 84 | AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, |
85 | const Short_t fitstatus, const Float_t amp, | |
86 | const Int_t maxTimebin) : | |
87 | fMaxSig(maxSig), | |
88 | fPed(ped), | |
89 | fStatus(fitstatus), | |
90 | fAmpSig(amp), | |
91 | fTime(maxTimebin), | |
92 | fMaxTimebin(maxTimebin), | |
93 | fChi2Sig( kNoFit ), | |
94 | fNdfSig( kNoFit ), | |
95 | fMinSig( kNoFit ), | |
96 | fFitSubarray( kNoFit ) | |
97 | { | |
98 | } | |
f57baa2d | 99 | |
100 | ||
101 | AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) : | |
102 | fMaxSig(maxSig), | |
507751ce | 103 | fPed( kInvalid ), |
104 | fStatus( kInvalid ), | |
105 | fAmpSig( kInvalid ), | |
106 | fTime( kInvalid ), | |
107 | fMaxTimebin( kInvalid ), | |
108 | fChi2Sig( kInvalid ), | |
109 | fNdfSig( kInvalid), | |
f57baa2d | 110 | fMinSig (minSig), |
507751ce | 111 | fFitSubarray(kInvalid) |
d655d7dd | 112 | { |
f57baa2d | 113 | |
d655d7dd | 114 | } |
115 | ||
116 | ||
117 | ||
57839add | 118 | AliCaloFitResults::~AliCaloFitResults() |
d655d7dd | 119 | { |
120 | ||
121 | } | |
122 |