JetCorrel correction of coding violations, and other style and memory consumption...
[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
f57baa2d 25#include "AliCaloFitSubarray.h"
26
d655d7dd 27// Container class to hold results from fitting
28// as well as other methods for
29// raw data signals extraction
57839add 30class AliCaloFitResults
d655d7dd 31{
32 public:
f57baa2d 33 enum kReturnCode {kDummy=-1, kCrude=-9, kNoFit=-99, kInvalid=-9999};// possible return values
34
35 explicit AliCaloFitResults( const Int_t maxSig,
36 const Float_t ped,
37 const Short_t fitStatus,
38 const Float_t amp,
39 const Float_t t0,
40 const Float_t chi,
41 const Int_t ndf,
42 const Int_t minSig,
43 const AliCaloFitSubarray fitSubarray);
44
57839add 45 explicit AliCaloFitResults( const Int_t maxSig,
46 const Float_t ped,
47 const Short_t fitStatus,
48 const Float_t amp,
49 const Float_t t0,
50 const Float_t chi,
51 const Int_t ndf,
f57baa2d 52 const Int_t minSig = kDummy);
d655d7dd 53
57839add 54 explicit AliCaloFitResults( const Int_t maxSig, const Int_t minSig );
55 //AliCaloFitResults( const Int_t maxSig, const Int_t minSig );
d655d7dd 56
57
57839add 58 virtual ~AliCaloFitResults();
59 Int_t GetMaxSig() const { return fMaxSig;};
d655d7dd 60 Float_t GetPed() const { return fPed;};
57839add 61 Int_t GetMinSig() const { return fMinSig;};
62 Int_t GetStatus() const { return fStatus;};
d655d7dd 63 Float_t GetAmp() const { return fAmpSig; };
64 Float_t GetTof() const { return fT0; };
65 Float_t GetChisSquare() const { return fChi2Sig;};
57839add 66 Int_t GetNdf() const { return fNdfSig; };
f57baa2d 67 AliCaloFitSubarray GetFitSubarray() const { return fFitSubarray; };
d655d7dd 68
69 private:
57839add 70 AliCaloFitResults();
71 Int_t fMaxSig; //Maximum sample value ( 0 - 1023 )
d655d7dd 72 Float_t fPed; //Pedestal
57839add 73 Int_t fStatus; //Sucess or failure of fitting pocedure
d655d7dd 74 Float_t fAmpSig; //Amplitude in entities of ADC counts
75 Float_t fT0; //Start time of signal in entities of sample intervals
76 Float_t fChi2Sig; //Chi Square of fit
57839add 77 Int_t fNdfSig; //Number of degrees of freedom of fit
78 Int_t fMinSig; //Pedestal
f57baa2d 79 AliCaloFitSubarray fFitSubarray; // info on time-bin array used for the fitting
d655d7dd 80};
81
82#endif