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 *
8 * Primary Author: Per Thomas Hille <p.t.hille@fys.uio.no> *
10 * Contributors are mentioned in the code where appropriate. *
11 * Please report bugs to p.t.hille@fys.uio.no *
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 **************************************************************************/
25 // Container class to hold results from fitting
26 // as well as other methods for
27 // raw data signals extraction
28 class AliCaloFitResults
31 explicit AliCaloFitResults( const Int_t maxSig,
33 const Short_t fitStatus,
38 const Int_t minSig = -99);
40 explicit AliCaloFitResults( const Int_t maxSig, const Int_t minSig );
41 //AliCaloFitResults( const Int_t maxSig, const Int_t minSig );
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; };
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