AliRoot Core  3dc7879 (3dc7879)
AliCaloFitResults.cxx
Go to the documentation of this file.
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 
25 //_____________________________________________________________________
27 fPed(-1),
28 fStatus(-1),
29 fAmpSig(-1),
30 fTime(-1),
31 fMaxTimebin(-1),
32 fChi2Sig(-1),
33 fNdfSig(0),
34 fMinSig(0),
35 fFitSubarray(10)
36 { }
37 
40 //_____________________________________________________________________
41 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped,
42  const Short_t fitstatus, const Float_t amp,
43  const double time, const Int_t maxTimebin,
44  const Float_t chi, const Int_t ndf,
45  Int_t minSig, const AliCaloFitSubarray fitSubarray ) :
46 fMaxSig(maxSig),
47 fPed(ped),
48 fStatus(fitstatus),
49 fAmpSig(amp),
50 fTime(time),
51 fMaxTimebin(maxTimebin),
52 fChi2Sig(chi),
53 fNdfSig(ndf),
54 fMinSig(minSig),
55 fFitSubarray(fitSubarray)
56 { }
57 
60 //_____________________________________________________________________
61 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped,
62  const Short_t fitstatus, const Float_t amp,
63  const double time, const Int_t maxTimebin,
64  const Float_t chi, const Int_t ndf, Int_t minSig ) :
65 fMaxSig(maxSig),
66 fPed(ped),
67 fStatus(fitstatus),
68 fAmpSig(amp),
69 fTime(time),
70 fMaxTimebin(maxTimebin),
71 fChi2Sig(chi),
72 fNdfSig(ndf),
73 fMinSig(minSig),
75 { }
76 
79 //_____________________________________________________________________
80 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Float_t ped,
81  const Short_t fitstatus, const Float_t amp,
82  const Int_t maxTimebin) :
83 fMaxSig(maxSig),
84 fPed(ped),
85 fStatus(fitstatus),
86 fAmpSig(amp),
87 fTime(maxTimebin),
88 fMaxTimebin(maxTimebin),
89 fChi2Sig( Ret::kNoFit ),
90 fNdfSig( 0 ),
91 fMinSig( 0 ),
93 { }
94 
97 //_____________________________________________________________________
98 AliCaloFitResults::AliCaloFitResults(const Int_t maxSig, const Int_t minSig) :
99 fMaxSig(maxSig),
100 fPed( Ret::kInvalid ),
101 fStatus( Ret::kInvalid ),
102 fAmpSig( Ret::kInvalid ),
103 fTime( Ret::kInvalid ),
105 fChi2Sig( Ret::kInvalid ),
106 fNdfSig( 0 ),
107 fMinSig (minSig),
109 { }
110 
113 //_____________________________________________________________________
115 { }
116 
Float_t fChi2Sig
Chi Square of fit.
Int_t fStatus
Sucess or failure of fitting pocedure.
Float_t fPed
Pedestal.
virtual ~AliCaloFitResults()
Destructor.
Int_t fMaxTimebin
Timebin with maximum ADC value.
Container class to hold info from bunches/samples.
UShort_t fMaxSig
Maximum sample value ( 0 - 1023 )
UShort_t fMinSig
Pedestal.
Float_t fAmpSig
Amplitude in entities of ADC counts.
AliCaloFitSubarray fFitSubarray
info on time-bin array used for the fitting
UShort_t fNdfSig
Number of degrees of freedom of fit.
double fTime
Peak/max time of signal in entities of sample intervals.
AliCaloFitResults()
Constructor.