]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliCaloFitResults.cxx
Remove the factor p/pt from the decaylengthXY calculation (Andrea)
[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
92d9f317 23
24AliCaloFitResults::AliCaloFitResults() : fMaxSig(0),
6d1befcf 25 fPed(-1),
26 fStatus(-1),
27 fAmpSig(-1),
28 fTime(-1),
29 fMaxTimebin(-1),
30 fChi2Sig(-1),
92d9f317 31 fNdfSig(0),
32 fMinSig(0),
6d1befcf 33 fFitSubarray(10)
34{
35
36
37}
38
39
d655d7dd 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
507751ce 48
92d9f317 49
15cdd9b3 50AliCaloFitResults::AliCaloFitResults(const Int_t maxSig,
51 const Float_t ped,
52 const Short_t fitstatus,
53 const Float_t amp,
92d9f317 54 const double time,
15cdd9b3 55 const Int_t maxTimebin,
56 const Float_t chi,
57 const Int_t ndf,
58 Int_t minSig,
168c7b3c 59 const AliCaloFitSubarray fitSubarray ) :
f57baa2d 60 fMaxSig(maxSig),
61 fPed(ped),
62 fStatus(fitstatus),
63 fAmpSig(amp),
507751ce 64 fTime(time),
65 fMaxTimebin(maxTimebin),
f57baa2d 66 fChi2Sig(chi),
67 fNdfSig(ndf),
68 fMinSig(minSig),
69 fFitSubarray(fitSubarray)
d655d7dd 70{
168c7b3c 71
d655d7dd 72}
73
74
92d9f317 75
f57baa2d 76AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped,
77 const Short_t fitstatus, const Float_t amp,
92d9f317 78 const double time, const Int_t maxTimebin, const Float_t chi,
f57baa2d 79 const Int_t ndf, Int_t minSig ) :
80 fMaxSig(maxSig),
81 fPed(ped),
82 fStatus(fitstatus),
83 fAmpSig(amp),
507751ce 84 fTime(time),
85 fMaxTimebin(maxTimebin),
f57baa2d 86 fChi2Sig(chi),
87 fNdfSig(ndf),
88 fMinSig(minSig),
168c7b3c 89 fFitSubarray(Ret::kDummy)
f57baa2d 90{
168c7b3c 91
f57baa2d 92}
d655d7dd 93
94
92d9f317 95
507751ce 96AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped,
97 const Short_t fitstatus, const Float_t amp,
98 const Int_t maxTimebin) :
99 fMaxSig(maxSig),
100 fPed(ped),
101 fStatus(fitstatus),
102 fAmpSig(amp),
103 fTime(maxTimebin),
104 fMaxTimebin(maxTimebin),
168c7b3c 105 fChi2Sig( Ret::kNoFit ),
92d9f317 106 fNdfSig( 0 ),
107 fMinSig( 0 ),
168c7b3c 108 fFitSubarray( Ret::kNoFit )
507751ce 109{
168c7b3c 110
507751ce 111}
f57baa2d 112
113
168c7b3c 114
92d9f317 115
f57baa2d 116AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) :
117 fMaxSig(maxSig),
168c7b3c 118 fPed( Ret::kInvalid ),
119 fStatus( Ret::kInvalid ),
120 fAmpSig( Ret::kInvalid ),
121 fTime( Ret::kInvalid ),
122 fMaxTimebin( Ret::kInvalid ),
123 fChi2Sig( Ret::kInvalid ),
92d9f317 124 fNdfSig( 0 ),
f57baa2d 125 fMinSig (minSig),
168c7b3c 126 fFitSubarray( Ret::kInvalid )
d655d7dd 127{
f57baa2d 128
d655d7dd 129}
92d9f317 130
d655d7dd 131
132
57839add 133AliCaloFitResults::~AliCaloFitResults()
d655d7dd 134{
135
136}
137