]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliCaloFitResults.cxx
more standardizing of result return codes + always return tmax info + loose parameter...
[u/mrichter/AliRoot.git] / EMCAL / AliCaloFitResults.cxx
1 /**************************************************************************
2  * This file is property of and copyright by                              *
3  * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009     *
4  *                                                                        *
5  * Primary Author: Per Thomas Hille <p.t.hille@fys.uio.no>                *
6  *                                                                        *
7  * Contributors are mentioned in the code where appropriate.              *
8  * Please report bugs to p.t.hille@fys.uio.no                             *
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
20 #include "AliCaloFitResults.h"
21
22
23 // Container class to hold results from fitting 
24 // as well as other methods for
25 // raw data signals extraction. The class memebers
26 // fChi2Sig, fNdfSig is only relevant if a fitting procedure is
27 // Applied. fStatus holds information on wether or not 
28 // The signal was fitted sucessfully. fStatus might have a different meaning If other 
29 // procedures than  A different meaning Fitting is applied 
30
31 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, 
32                                      const Short_t fitstatus, const Float_t  amp,  
33                                      const Float_t time,  const Int_t maxTimebin, const Float_t chi,  
34                                      const Int_t ndf, Int_t minSig,
35                                      const AliCaloFitSubarray fitSubarray) : 
36   fMaxSig(maxSig),
37   fPed(ped), 
38   fStatus(fitstatus),
39   fAmpSig(amp),
40   fTime(time),
41   fMaxTimebin(maxTimebin),
42   fChi2Sig(chi),
43   fNdfSig(ndf),
44   fMinSig(minSig),
45   fFitSubarray(fitSubarray) 
46 {
47 }
48
49
50 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, 
51                                      const Short_t fitstatus, const Float_t  amp,  
52                                      const Float_t time, const Int_t maxTimebin, const Float_t chi,  
53                                      const Int_t ndf, Int_t minSig ) : 
54   fMaxSig(maxSig),
55   fPed(ped), 
56   fStatus(fitstatus),
57   fAmpSig(amp),
58   fTime(time),
59   fMaxTimebin(maxTimebin),
60   fChi2Sig(chi),
61   fNdfSig(ndf),
62   fMinSig(minSig),
63   fFitSubarray(kDummy)  
64 {
65 }
66
67
68 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped, 
69                                      const Short_t fitstatus, const Float_t  amp,  
70                                      const Int_t maxTimebin) : 
71   fMaxSig(maxSig),
72   fPed(ped), 
73   fStatus(fitstatus),
74   fAmpSig(amp),
75   fTime(maxTimebin),
76   fMaxTimebin(maxTimebin),
77   fChi2Sig( kNoFit ),
78   fNdfSig( kNoFit ),
79   fMinSig( kNoFit ),
80   fFitSubarray( kNoFit ) 
81 {
82 }
83
84
85 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) : 
86   fMaxSig(maxSig),
87   fPed( kInvalid ),
88   fStatus( kInvalid ),
89   fAmpSig( kInvalid ), 
90   fTime( kInvalid ),
91   fMaxTimebin( kInvalid ),
92   fChi2Sig( kInvalid ),
93   fNdfSig( kInvalid),
94   fMinSig (minSig),
95   fFitSubarray(kInvalid)  
96 {
97
98 }
99
100
101
102 AliCaloFitResults::~AliCaloFitResults()
103 {
104
105 }
106