AliRoot Core  3dc7879 (3dc7879)
AliCaloFitResults.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 #ifndef ALICALOFITRESULTS_H
3 #define ALICALOFITRESULTS_H
4 
5 /* Copyright(c) 1998-2010, ALICE Experiment at CERN, All rights reserved. *
6  * See cxx source for full Copyright notice */
7 
8 //_________________________________________________________________________
23 //_________________________________________________________________________
24 
25 #include "Rtypes.h"
26 #include "AliCaloFitSubarray.h"
27 #include "AliCaloConstants.h"
28 
30 {
31 
32  public:
33 
34  // enum kReturnCode {kFitPar=1, kDummy=-1, kCrude=-9, kNoFit=-99, kInvalid=-9999};// possible return values
35  // kFitPar: method fit or parametrization was used
36  // kDummy: just a filler parameter, if e.g. chi2 not available
37  // kCrude: maximum was used
38  // kNoFit: maximum was used, exception handling for fit invoked
39  // kInvalid: could not even look for maximum
40 
41 
42  explicit AliCaloFitResults( const Int_t maxSig,
43  const Float_t ped,
44  const Short_t fitStatus,
45  const Float_t amp,
46  const double time,
47  const Int_t maxTimebin,
48  // const Float_t chi,
49  const Float_t chi,
50  const Int_t ndf,
51  const Int_t minSig,
52  const AliCaloFitSubarray fitSubarray );
53 
54 
55  explicit AliCaloFitResults( const Int_t maxSig,
56  const Float_t ped,
57  const Short_t fitStatus,
58  const Float_t amp,
59  const double time,
60  const Int_t maxTimebin,
61  // const Float_t chi,
62  const Float_t chi,
63  const Int_t ndf,
64  const Int_t minSig = Ret::kDummy);
65  // const Int_t minSig = CaloConstants::ReturnCodes::kDummy);
66 
67 
68  // shorter interface when no fit is done
69  explicit AliCaloFitResults( const Int_t maxSig,
70  const Float_t ped,
71  const Short_t fitStatus,
72  const Float_t amp,
73  const Int_t maxTimebin);
74 
75 
76  // minimum interface
77  explicit AliCaloFitResults( const Int_t maxSig, const Int_t minSig );
78 
80 
81  virtual ~AliCaloFitResults();
82 
84 
85  UShort_t GetMaxSig() const { return fMaxSig ; }
86  Float_t GetPed() const { return fPed ; }
87  UShort_t GetMinSig() const { return fMinSig ; }
88  Int_t GetStatus() const { return fStatus ; }
89 
90  Float_t GetAmp() const { return fAmpSig ; }
91  Float_t GetTof() const { return fTime ; }
92  double GetTime() const { return fTime ; }
93 
94  Int_t GetMaxTimebin() const { return fMaxTimebin ; }
95  Float_t GetChi2() const { return fChi2Sig ; }
96  UShort_t GetNdf() const { return fNdfSig ; }
97 
98  void SetTime(Float_t time ) { fTime = time ; }
99  void SetAmp (Float_t amp ) { fAmpSig = amp ; }
100 
101  private:
102 
103  UShort_t fMaxSig;
104 
105  Float_t fPed;
106 
107  Int_t fStatus;
108 
109  Float_t fAmpSig;
110 
111  double fTime;
112 
113  Int_t fMaxTimebin;
114 
115  Float_t fChi2Sig;
116 
117  UShort_t fNdfSig;
118 
119  UShort_t fMinSig;
120 
122 
123 };
124 
125 #endif //ALICALOFITRESULTS_H
double GetTime() const
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 GetMaxTimebin() const
Int_t fMaxTimebin
Timebin with maximum ADC value.
Container class to hold info from bunches/samples.
UShort_t GetMaxSig() const
Float_t GetTof() const
Container class to hold results from fitting.
UShort_t GetMinSig() const
UShort_t fMaxSig
Maximum sample value ( 0 - 1023 )
void SetTime(Float_t time)
UShort_t fMinSig
Pedestal.
AliCaloFitSubarray GetFitSubarray() const
Float_t GetChi2() const
UShort_t GetNdf() const
Float_t fAmpSig
Amplitude in entities of ADC counts.
Float_t GetPed() const
AliCaloFitSubarray fFitSubarray
info on time-bin array used for the fitting
Float_t GetAmp() const
UShort_t fNdfSig
Number of degrees of freedom of fit.
double fTime
Peak/max time of signal in entities of sample intervals.
AliCaloFitResults()
Constructor.
Int_t GetStatus() const
void SetAmp(Float_t amp)