]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliCaloFitResults.h
Change digitization threshold to >=3 ACD units, now cut on ADC value of digit after...
[u/mrichter/AliRoot.git] / EMCAL / AliCaloFitResults.h
1 // -*- mode: c++ -*-
2 #ifndef ALICALOFITRESULTS_H
3 #define ALICALOFITRESULTS_H
4 /**************************************************************************
5  * This file is property of and copyright by                              *
6  * the Relativistic Heavy Ion Group (RHIG), Yale University, US, 2009     *
7  *                                                                        *
8  * Primary Author: Per Thomas Hille <p.t.hille@fys.uio.no>                *
9  *                                                                        *
10  * Contributors are mentioned in the code where appropriate.              *
11  * Please report bugs to p.t.hille@fys.uio.no                             *
12  *                                                                        *
13  * Permission to use, copy, modify and distribute this software and its   *
14  * documentation strictly for non-commercial purposes is hereby granted   *
15  * without fee, provided that the above copyright notice appears in all   *
16  * copies and that both the copyright notice and this permission notice   *
17  * appear in the supporting documentation. The authors make no claims     *
18  * about the suitability of this software for any purpose. It is          *
19  * provided "as is" without express or implied warranty.                  *
20  **************************************************************************/
21
22
23 #include "Rtypes.h"
24
25 // Container class to hold results from fitting 
26 // as well as other methods for
27 // raw data signals extraction
28 class  AliCaloFitResults
29 {
30  public:
31   explicit AliCaloFitResults( const Int_t maxSig, 
32                               const Float_t ped, 
33                               const Short_t fitStatus, 
34                               const Float_t  amp, 
35                               const Float_t t0,
36                               const Float_t chi, 
37                               const Int_t ndf, 
38                               const Int_t minSig = -99); 
39
40   explicit AliCaloFitResults( const Int_t maxSig, const Int_t minSig );
41   //AliCaloFitResults( const Int_t maxSig, const Int_t minSig );
42
43
44   virtual  ~AliCaloFitResults();
45   Int_t  GetMaxSig() const  { return fMaxSig;};
46   Float_t   GetPed() const { return fPed;};
47   Int_t  GetMinSig() const { return fMinSig;};
48   Int_t  GetStatus() const  { return fStatus;};
49   Float_t   GetAmp() const {  return fAmpSig; };
50   Float_t   GetTof() const {  return fT0; }; 
51   Float_t   GetChisSquare() const { return fChi2Sig;};
52   Int_t  GetNdf() const { return fNdfSig; };
53   
54  private:
55   AliCaloFitResults();
56   Int_t   fMaxSig;   //Maximum sample value ( 0 - 1023 )
57   Float_t    fPed;      //Pedestal 
58   Int_t   fStatus;   //Sucess or failure of fitting pocedure
59   Float_t    fAmpSig;   //Amplitude in entities of ADC counts
60   Float_t    fT0;       //Start time of signal in entities of sample intervals 
61   Float_t    fChi2Sig;  //Chi Square of fit 
62   Int_t   fNdfSig;   //Number of degrees of freedom of fit
63   Int_t   fMinSig;   //Pedestal 
64 };
65
66 #endif