]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliCaloRawAnalyzerLMS.h
Refactoring: Code triplication various class memeber, and functions
[u/mrichter/AliRoot.git] / EMCAL / AliCaloRawAnalyzerLMS.h
index b7608dcd737c9225ccf96961840441fe79b67aec..ed5f53f4ad3dda04369d2345c6858cbc68766657 100644 (file)
@@ -23,7 +23,7 @@
 // FRom CALO raw data using
 // Chi square fit
 
-#include "AliCaloRawAnalyzer.h"
+#include "AliCaloRawAnalyzerFitter.h"
 #include "AliCaloConstants.h"
 
 using namespace ALTRO;
@@ -31,7 +31,7 @@ using namespace ALTRO;
 class  TF1;
 class  TGraph;
 
-class  AliCaloRawAnalyzerLMS : public AliCaloRawAnalyzer
+class  AliCaloRawAnalyzerLMS : public AliCaloRawAnalyzerFitter
 {
   friend class AliCaloRawAnalyzerFactory;
 
@@ -39,28 +39,32 @@ class  AliCaloRawAnalyzerLMS : public AliCaloRawAnalyzer
   //  AliCaloRawAnalyzerLMS();
   virtual ~AliCaloRawAnalyzerLMS();
   virtual AliCaloFitResults  Evaluate( const std::vector<AliCaloBunchInfo> &bunchvector, const UInt_t altrocfg1,  const UInt_t altrocfg2 );
-  void PrintFitResult(const TF1 *f) const;
+  //void PrintFitResult(const TF1 *f) const;
+  
+  // virtual void InitFormula( TF1* f);
   
   // shaper tau value, in time-bins, and flag for keeping tau fixed
-  Float_t GetTau() const { return fTau;};
-  void SetTau(Float_t f) { fTau = f; }; 
-  Bool_t GetFixTau() const { return fFixTau; }; 
-  void SetFixTau(Bool_t b) { fFixTau = b; }; 
+  // Float_t GetTau() const { return fTau;};
+  // void SetTau(Float_t f) { fTau = f; }; 
+  //  Bool_t GetFixTau() const { return fFixTau; }; 
+  // void SetFixTau(Bool_t b) { fFixTau = b; }; 
 
   // extra interfaces
-  TF1 * GetFit() const { return fTf1; };
+  // TF1 * GetFit() const { return fTf1; };
 
  private:
   AliCaloRawAnalyzerLMS();
   AliCaloRawAnalyzerLMS(const AliCaloRawAnalyzerLMS & );
   AliCaloRawAnalyzerLMS  & operator = (const AliCaloRawAnalyzerLMS  &);
  
-  double fXaxis[ALTROMAXSAMPLES]; //Axis if time bins, ( used by TGraph )
-  const double fkEulerSquared; //e^2 = 7.389056098930650227
-  TF1 *fTf1;     // Analytical formula of the Semi Gaussian to be fitted
+  //  double fXaxis[ALTROMAXSAMPLES]; //Axis if time bins, ( used by TGraph )
+  
+  //const double fkEulerSquared; //e^2 = 7.389056098930650227
+  // TF1 *fTf1;     // Analytical formula of the Semi Gaussian to be fitted
 
-  Float_t fTau; // shaper tau, in time bins
-  Bool_t fFixTau; // flag if tau should be fix
+  //  Float_t fTau; // shaper tau, in time bins
+  // Bool_t fFixTau; // flag if tau should be fix
 
   ClassDef(AliCaloRawAnalyzerLMS, 2)