]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Cosmetics && removal of dead code
authorphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Mar 2011 16:43:17 +0000 (16:43 +0000)
committerphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 29 Mar 2011 16:43:17 +0000 (16:43 +0000)
EMCAL/AliCaloRawAnalyzerFakeALTRO.cxx
EMCAL/AliCaloRawAnalyzerFakeALTRO.h

index 5c9dccbc7bc9990f303f6de6840a092cbf9daf3b..1cc0d78e9fcc012fe7202dbb74c2b2d1298a36b7 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,35 +31,11 @@ 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);
-  }
-  */
   
 }
 
@@ -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;
-}
-*/
-
index 7fd1208c7c4fcde0b976256d84a4803419fda7dc..55d58367b86f916ce16b657195c184b0fbb9e82a 100644 (file)
@@ -3,7 +3,6 @@
 
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
-
 /*
 
  
@@ -12,46 +11,18 @@ Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
 
 #include "AliCaloRawAnalyzerFitter.h"
 
-
-// class  TF1;
-// class  TGraph;
-
 class  AliCaloRawAnalyzerFakeALTRO : public AliCaloRawAnalyzerFitter
 {
   friend class AliCaloRawAnalyzerFactory;
 
  public:
-  //AliCaloRawAnalyzerFakeALTRO();
   virtual ~AliCaloRawAnalyzerFakeALTRO();
-  
   virtual AliCaloFitResults  Evaluate( const std::vector<AliCaloBunchInfo> &bunchvector, const UInt_t altrocfg1,  const UInt_t altrocfg2 );
-
-  //void PrintFitResult(const TF1 *f) const;
   
-  // 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; }; 
-
-  // extra interfaces
-  // TF1 * GetFit() const { return fTf1; };
-  // virtual void InitFormula( TF1* f);
  private:
   AliCaloRawAnalyzerFakeALTRO();
   AliCaloRawAnalyzerFakeALTRO(const AliCaloRawAnalyzerFakeALTRO & );
   AliCaloRawAnalyzerFakeALTRO  & operator = (const AliCaloRawAnalyzerFakeALTRO  &);
-  // 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
-
   ClassDef(AliCaloRawAnalyzerFakeALTRO,1)
 
 };