AliCaloRawAnalyzerFitter::AliCaloRawAnalyzerFitter(const char *name, const char *nameshort ) :AliCaloRawAnalyzer( name, nameshort),
fkEulerSquared(7.389056098930650227),
- fTf1(0),
- fFixTau(true)
+ fTf1(0)
{
+ // ctor
+
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)
+ if (fFixTau) // Declared in AliCaloRawAnalyzer
{
fTf1->FixParameter(2, fTau);
}
AliCaloRawAnalyzerFitter::~AliCaloRawAnalyzerFitter()
{
+ // Dtor
+
delete fTf1;
}
void
AliCaloRawAnalyzerFitter::PrintFitResult(const TF1 *f) const
{
- //shutting up the rule checker
+ // print fit results
+
cout << endl;
cout << __FILE__ << __LINE__ << "Using this samplerange we get" << endl;
cout << __FILE__ << __LINE__ << "AMPLITUDE = " << f->GetParameter(0)/fkEulerSquared << ",.. !!!!" << endl;
}
-// Bool_t
-// AliCaloRawAnalyzerFitter::GetFixTau() const
-// {
-// return fFixTau;
-// };