]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliCaloFitResults.cxx
Fix for bug #78633 (Diego)
[u/mrichter/AliRoot.git] / EMCAL / AliCaloFitResults.cxx
CommitLineData
168c7b3c 1// -*- mode: c++ -*-
d655d7dd 2/**************************************************************************
3 * This file is property of and copyright by *
4 * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009 *
5 * *
6d1befcf 6 * Primary Author: Per Thomas Hille <perthomas.hille@yale.edu> *
d655d7dd 7 * *
8 * Contributors are mentioned in the code where appropriate. *
6d1befcf 9 * Please report bugs to perthomas.hille@yale.edu *
d655d7dd 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
57839add 20#include "AliCaloFitResults.h"
168c7b3c 21#include "AliCaloConstants.h"
d655d7dd 22
6d1befcf 23AliCaloFitResults::AliCaloFitResults() : fMaxSig(-1),
24 fPed(-1),
25 fStatus(-1),
26 fAmpSig(-1),
27 fTime(-1),
28 fMaxTimebin(-1),
29 fChi2Sig(-1),
30 fNdfSig(-1),
31 fMinSig(-1),
32 fFitSubarray(10)
33{
34
35
36}
37
38
d655d7dd 39
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
507751ce 47
15cdd9b3 48AliCaloFitResults::AliCaloFitResults(const Int_t maxSig,
49 const Float_t ped,
50 const Short_t fitstatus,
51 const Float_t amp,
52 const Float_t time,
53 const Int_t maxTimebin,
54 const Float_t chi,
55 const Int_t ndf,
56 Int_t minSig,
168c7b3c 57 const AliCaloFitSubarray fitSubarray ) :
f57baa2d 58 fMaxSig(maxSig),
59 fPed(ped),
60 fStatus(fitstatus),
61 fAmpSig(amp),
507751ce 62 fTime(time),
63 fMaxTimebin(maxTimebin),
f57baa2d 64 fChi2Sig(chi),
65 fNdfSig(ndf),
66 fMinSig(minSig),
67 fFitSubarray(fitSubarray)
d655d7dd 68{
168c7b3c 69
d655d7dd 70}
71
72
f57baa2d 73AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped,
74 const Short_t fitstatus, const Float_t amp,
507751ce 75 const Float_t time, const Int_t maxTimebin, const Float_t chi,
f57baa2d 76 const Int_t ndf, Int_t minSig ) :
77 fMaxSig(maxSig),
78 fPed(ped),
79 fStatus(fitstatus),
80 fAmpSig(amp),
507751ce 81 fTime(time),
82 fMaxTimebin(maxTimebin),
f57baa2d 83 fChi2Sig(chi),
84 fNdfSig(ndf),
85 fMinSig(minSig),
168c7b3c 86 fFitSubarray(Ret::kDummy)
f57baa2d 87{
168c7b3c 88
f57baa2d 89}
d655d7dd 90
91
507751ce 92AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped,
93 const Short_t fitstatus, const Float_t amp,
94 const Int_t maxTimebin) :
95 fMaxSig(maxSig),
96 fPed(ped),
97 fStatus(fitstatus),
98 fAmpSig(amp),
99 fTime(maxTimebin),
100 fMaxTimebin(maxTimebin),
168c7b3c 101 fChi2Sig( Ret::kNoFit ),
102 fNdfSig( Ret::kNoFit ),
103 fMinSig( Ret::kNoFit ),
104 fFitSubarray( Ret::kNoFit )
507751ce 105{
168c7b3c 106
507751ce 107}
f57baa2d 108
109
168c7b3c 110
f57baa2d 111AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) :
112 fMaxSig(maxSig),
168c7b3c 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),
f57baa2d 120 fMinSig (minSig),
168c7b3c 121 fFitSubarray( Ret::kInvalid )
d655d7dd 122{
f57baa2d 123
d655d7dd 124}
125
126
127
57839add 128AliCaloFitResults::~AliCaloFitResults()
d655d7dd 129{
130
131}
132