First step towards reading of the new RCU firmware trailer. Thanks to Luciano we...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecoParam.h
1 #ifndef ALIPHOSRECOPARAM_H
2 #define ALIPHOSRECOPARAM_H
3 /* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                          */
5
6 /* $Id$ */
7                                               
8 // Base class for the PHOS reconstruction parameters.
9 // Do not use in the reconstruction; use derivative classes instead.
10
11 #include "TNamed.h"
12
13
14 class AliPHOSRecoParam : public TNamed {
15
16 public:
17
18   AliPHOSRecoParam();
19   AliPHOSRecoParam(const AliPHOSRecoParam& recoParam);
20   AliPHOSRecoParam& operator = (const AliPHOSRecoParam& recoParam);
21   virtual ~AliPHOSRecoParam() {}
22
23   Float_t GetClusteringThreshold() const { return fClusteringThreshold;  }
24   Float_t GetLocalMaxCut()         const { return fLocMaxCut;            }
25   Float_t GetMinE()                const { return fMinE;                 }
26   Float_t GetLogWeight()           const { return fW0;                   }
27   Float_t GetSampleQualityCut()    const { return fSampleQualityCut;                   }
28   Bool_t  SubtractPedestals()      const { return fSubtractPedestals;    }
29   Bool_t  ToUnfold()               const { return fUnfold;               }
30   const char* DecoderVersion()     const { return fDecoderVersion.Data();}
31
32   void SetClusteringThreshold(Float_t cluth)      { fClusteringThreshold=cluth;   }
33   void SetLocalMaxCut(Float_t cut)                { fLocMaxCut          =cut;     }
34   void SetMinE(Float_t minE)                      { fMinE               =minE;    }
35   void SetLogWeight(Float_t w)                    { fW0                 =w;       }
36   void SetSampleQualityCut(Float_t qu)            { fSampleQualityCut   =qu;       }
37   void SetSubtractPedestals(Bool_t subtract)      { fSubtractPedestals  =subtract;} 
38   void SetDecoderVersion(const char* version="v1"){fDecoderVersion      =version ;}
39   void SetUnfolding(Bool_t toUnfold=kFALSE)       {fUnfold              =toUnfold;}
40
41 protected:
42
43   Float_t fClusteringThreshold;
44   Float_t fLocMaxCut;
45   Float_t fMinE;
46   Float_t fW0;
47   Float_t fSampleQualityCut;
48   Bool_t  fSubtractPedestals;
49   Bool_t  fUnfold;
50   TString fDecoderVersion ;
51
52   ClassDef(AliPHOSRecoParam,3)
53 };
54
55 #endif