]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliCaloRawAnalyzerFakeALTRO.h
Added new class needed for refactoring of the
[u/mrichter/AliRoot.git] / EMCAL / AliCaloRawAnalyzerFakeALTRO.h
1 #ifndef ALICALORAWANALYZERFAKEALTRO_H
2 #define ALICALORAWANALYZERFAKEALTRO_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /*
8
9  
10 Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
11 */
12
13 #include "AliCaloRawAnalyzer.h"
14
15
16 class  TF1;
17 class  TGraph;
18
19 class  AliCaloRawAnalyzerFakeALTRO : public AliCaloRawAnalyzer
20 {
21   friend class AliCaloRawAnalyzerFactory;
22
23  public:
24   //AliCaloRawAnalyzerFakeALTRO();
25   virtual ~AliCaloRawAnalyzerFakeALTRO();
26   
27   virtual AliCaloFitResults  Evaluate( const std::vector<AliCaloBunchInfo> &bunchvector, const UInt_t altrocfg1,  const UInt_t altrocfg2 );
28   void PrintFitResult(const TF1 *f) const;
29   
30   // shaper tau value, in time-bins, and flag for keeping tau fixed
31   Float_t GetTau() const { return fTau;};
32   void SetTau(Float_t f) { fTau = f; }; 
33   Bool_t GetFixTau() const { return fFixTau; }; 
34   void SetFixTau(Bool_t b) { fFixTau = b; }; 
35
36   // extra interfaces
37   TF1 * GetFit() const { return fTf1; };
38
39  private:
40   AliCaloRawAnalyzerFakeALTRO();
41   AliCaloRawAnalyzerFakeALTRO(const AliCaloRawAnalyzerFakeALTRO & );
42   AliCaloRawAnalyzerFakeALTRO  & operator = (const AliCaloRawAnalyzerFakeALTRO  &);
43  
44   double fXaxis[ALTROMAXSAMPLES]; //Axis if time bins, ( used by TGraph )
45   const double fkEulerSquared; //e^2 = 7.389056098930650227
46   TF1 *fTf1;     // Analytical formula of the Semi Gaussian to be fitted
47
48   Float_t fTau; // shaper tau, in time bins
49   Bool_t fFixTau; // flag if tau should be fix
50
51   ClassDef(AliCaloRawAnalyzerFakeALTRO,1)
52
53 };
54
55 #endif