]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliCaloRawAnalyzerFakeALTRO.h
Correct alternative TFF method for tower position recalculation.
[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  public:
22            AliCaloRawAnalyzerFakeALTRO();
23   virtual ~AliCaloRawAnalyzerFakeALTRO();
24         
25   virtual AliCaloFitResults  Evaluate( const std::vector<AliCaloBunchInfo> &bunchvector, const UInt_t altrocfg1,  const UInt_t altrocfg2 );
26   void PrintFitResult(const TF1 *f) const;
27   
28   // shaper tau value, in time-bins, and flag for keeping tau fixed
29   Float_t GetTau() const { return fTau;};
30   void SetTau(Float_t f) { fTau = f; }; 
31   Bool_t GetFixTau() const { return fFixTau; }; 
32   void SetFixTau(Bool_t b) { fFixTau = b; }; 
33
34   // extra interfaces
35   TF1 * GetFit() const { return fTf1; };
36
37  private:
38   AliCaloRawAnalyzerFakeALTRO(const AliCaloRawAnalyzerFakeALTRO & );
39   AliCaloRawAnalyzerFakeALTRO  & operator = (const AliCaloRawAnalyzerFakeALTRO  &);
40  
41   double fXaxis[MAXSAMPLES]; //Axis if time bins, ( used by TGraph )
42   const double fkEulerSquared; //e^2 = 7.389056098930650227
43   TF1 *fTf1;     // Analytical formula of the Semi Gaussian to be fitted
44
45   Float_t fTau; // shaper tau, in time bins
46   Bool_t fFixTau; // flag if tau should be fix
47
48   ClassDef(AliCaloRawAnalyzerFakeALTRO,1)
49
50 };
51
52 #endif