2 /**************************************************************************
3 * This file is property of and copyright by *
4 * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009 *
6 * Primary Author: Per Thomas Hille <perthomas.hille@yale.edu> *
8 * Contributors are mentioned in the code where appropriate. *
9 * Please report bugs to perthomas.hille@yale.edu *
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 **************************************************************************/
20 #include "AliCaloFitResults.h"
21 #include "AliCaloConstants.h"
23 AliCaloFitResults::AliCaloFitResults() : fMaxSig(-1),
40 // Container class to hold results from fitting
41 // as well as other methods for
42 // raw data signals extraction. The class memebers
43 // fChi2Sig, fNdfSig is only relevant if a fitting procedure is
44 // Applied. fStatus holds information on wether or not
45 // The signal was fitted sucessfully. fStatus might have a different meaning If other
46 // procedures than A different meaning Fitting is applied
48 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig,
50 const Short_t fitstatus,
53 const Int_t maxTimebin,
57 const AliCaloFitSubarray fitSubarray ) :
63 fMaxTimebin(maxTimebin),
67 fFitSubarray(fitSubarray)
73 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped,
74 const Short_t fitstatus, const Float_t amp,
75 const Float_t time, const Int_t maxTimebin, const Float_t chi,
76 const Int_t ndf, Int_t minSig ) :
82 fMaxTimebin(maxTimebin),
86 fFitSubarray(Ret::kDummy)
92 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped,
93 const Short_t fitstatus, const Float_t amp,
94 const Int_t maxTimebin) :
100 fMaxTimebin(maxTimebin),
101 fChi2Sig( Ret::kNoFit ),
102 fNdfSig( Ret::kNoFit ),
103 fMinSig( Ret::kNoFit ),
104 fFitSubarray( Ret::kNoFit )
111 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) :
113 fPed( Ret::kInvalid ),
114 fStatus( Ret::kInvalid ),
115 fAmpSig( Ret::kInvalid ),
116 fTime( Ret::kInvalid ),
117 fMaxTimebin( Ret::kInvalid ),
118 fChi2Sig( Ret::kInvalid ),
119 fNdfSig( Ret::kInvalid),
121 fFitSubarray( Ret::kInvalid )
128 AliCaloFitResults::~AliCaloFitResults()