]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliCaloRawAnalyzerFakeALTRO.cxx
attempt to fix the mem leak reported in https://savannah.cern.ch/bugs/?82308 ; additi...
[u/mrichter/AliRoot.git] / EMCAL / AliCaloRawAnalyzerFakeALTRO.cxx
index 5c9dccbc7bc9990f303f6de6840a092cbf9daf3b..92663bd2822f66673fa7b4123cbe5c39f9165b86 100644 (file)
  **************************************************************************/
 
 /*
-Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
+  Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
 */
 
+
 #include "AliCaloRawAnalyzerFakeALTRO.h"
 #include "AliCaloBunchInfo.h"
 #include "AliCaloFitResults.h"
@@ -32,36 +31,12 @@ Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
 
 using namespace std;
 
-
-//#define BAD 4  //CRAP PTH
 ClassImp( AliCaloRawAnalyzerFakeALTRO )
 
 
 AliCaloRawAnalyzerFakeALTRO::AliCaloRawAnalyzerFakeALTRO() : AliCaloRawAnalyzerFitter("Chi Square Fit", "LMS")
-// fkEulerSquared(7.389056098930650227),
-//                                              fTf1(0),
-//                                              fTau(2.35),
-//                                              fFixTau(kTRUE)
 {
-  //comment
-
-  /*
-  for(int i=0; i < ALTROMAXSAMPLES; i++)
-    {
-      fXaxis[i] = i;
-    }
-  
-  fTf1 = new TF1( "myformula", "[0]*((x - [1])/[2])^2*exp(-2*(x -[1])/[2])",  0, 30 ); 
-  if (fFixTau) {
-    fTf1->FixParameter(2, fTau);
-  }
-  else {
-    fTf1->ReleaseParameter(2); // allow par. to vary
-    fTf1->SetParameter(2, fTau);
-  }
-  */
-  
+  fAlgo= Algo::kFakeAltro;
 }
 
 
@@ -71,14 +46,6 @@ AliCaloRawAnalyzerFakeALTRO::~AliCaloRawAnalyzerFakeALTRO()
 }
 
 
-/*
-void 
-AliCaloRawAnalyzerFakeALTRO::InitFormula( TF1* f)
-{
-  f = new TF1( "myformula", "[0]*((x - [1])/[2])^2*exp(-2*(x -[1])/[2])",  0, 30 ); 
-}
-*/
-
 AliCaloFitResults
 AliCaloRawAnalyzerFakeALTRO::Evaluate( const vector<AliCaloBunchInfo>  &bunchvector, const UInt_t altrocfg1,  const UInt_t altrocfg2 )
 {
@@ -164,23 +131,5 @@ AliCaloRawAnalyzerFakeALTRO::Evaluate( const vector<AliCaloBunchInfo>  &bunchvec
         } // ampcut
     }
   return AliCaloFitResults(  Ret::kInvalid,  Ret::kInvalid );
-  
-}
-
-
-
-/*
-void 
-AliCaloRawAnalyzerFakeALTRO::PrintFitResult(const TF1 *f) const
-{
-  //comment
-  cout << endl;
-  cout << __FILE__ << __LINE__ << "Using this samplerange we get" << endl;
-  cout << __FILE__ << __LINE__ << "AMPLITUDE = " << f->GetParameter(0)/fkEulerSquared << ",.. !!!!" << endl;
-  cout << __FILE__ << __LINE__ << "TOF = " << f->GetParameter(1) << ",.. !!!!" << endl;
-  cout << __FILE__ << __LINE__ << "NDF = " << f->GetNDF() << ",.. !!!!" << endl;
-  //  cout << __FILE__ << __LINE__ << "STATUS = " << f->GetStatus()  << ",.. !!!!" << endl << endl;
-  cout << endl << endl;
 }
-*/