**************************************************************************/
/*
-
-
-Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
+ Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
*/
+
#include "AliCaloRawAnalyzerFakeALTRO.h"
#include "AliCaloBunchInfo.h"
#include "AliCaloFitResults.h"
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);
- }
- */
}
}
-/*
-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 )
{
} // 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;
-}
-*/
-
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
-
/*
#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)
};