**************************************************************************/
/*
-
-
-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);
- }
- */
-
+ fAlgo= Algo::kFakeAltro;
}
}
-/*
-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;
}
-*/