Fix in the file open option
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALFitResults.h
CommitLineData
d655d7dd 1// -*- mode: c++ -*-
2#ifndef ALIEMCALFITRESULTS_H
3#define ALIEMCALFITRESULTS_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
28class AliEMCALFitResults
29{
30 public:
31 explicit AliEMCALFitResults( const UShort_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 UShort_t ndf,
38 const UShort_t minSig = -99);
39
40 explicit AliEMCALFitResults( const UShort_t maxSig, const UShort_t minSig );
41 //AliEMCALFitResults( const UShort_t maxSig, const UShort_t minSig );
42
43
44 virtual ~AliEMCALFitResults();
45 UShort_t GetMaxSig() const { return fMaxSig;};
46 Float_t GetPed() const { return fPed;};
47 UShort_t GetMinSig() const { return fMinSig;};
48 UShort_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 UShort_t GetNdf() const { return fNdfSig; };
53
54 private:
55 AliEMCALFitResults();
56 UShort_t fMaxSig; //Maximum sample value ( 0 - 1023 )
57 Float_t fPed; //Pedestal
58 UShort_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 UShort_t fNdfSig; //Number of degrees of freedom of fit
63 UShort_t fMinSig; //Pedestal
64};
65
66#endif