]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliCaloFitResults.h
update from Per Thomas - mainly renaming classes
[u/mrichter/AliRoot.git] / EMCAL / AliCaloFitResults.h
CommitLineData
d655d7dd 1// -*- mode: c++ -*-
57839add 2#ifndef ALICALOFITRESULTS_H
3#define ALICALOFITRESULTS_H
d655d7dd 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
57839add 28class AliCaloFitResults
d655d7dd 29{
30 public:
57839add 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);
d655d7dd 39
57839add 40 explicit AliCaloFitResults( const Int_t maxSig, const Int_t minSig );
41 //AliCaloFitResults( const Int_t maxSig, const Int_t minSig );
d655d7dd 42
43
57839add 44 virtual ~AliCaloFitResults();
45 Int_t GetMaxSig() const { return fMaxSig;};
d655d7dd 46 Float_t GetPed() const { return fPed;};
57839add 47 Int_t GetMinSig() const { return fMinSig;};
48 Int_t GetStatus() const { return fStatus;};
d655d7dd 49 Float_t GetAmp() const { return fAmpSig; };
50 Float_t GetTof() const { return fT0; };
51 Float_t GetChisSquare() const { return fChi2Sig;};
57839add 52 Int_t GetNdf() const { return fNdfSig; };
d655d7dd 53
54 private:
57839add 55 AliCaloFitResults();
56 Int_t fMaxSig; //Maximum sample value ( 0 - 1023 )
d655d7dd 57 Float_t fPed; //Pedestal
57839add 58 Int_t fStatus; //Sucess or failure of fitting pocedure
d655d7dd 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
57839add 62 Int_t fNdfSig; //Number of degrees of freedom of fit
63 Int_t fMinSig; //Pedestal
d655d7dd 64};
65
66#endif