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