* about the suitability of this software for any purpose. It is *
* provided "as is" without express or implied warranty. *
**************************************************************************/
+
#include "AliCaloRawAnalyzerFitter.h"
#include "TF1.h"
-
#include <iostream>
+
using std::cout;
using std::endl;
-//ClassImp( AliCaloRawAnalyzerFitter)
AliCaloRawAnalyzerFitter::AliCaloRawAnalyzerFitter(const char *name, const char *nameshort ) :AliCaloRawAnalyzer( name, nameshort),
fkEulerSquared(7.389056098930650227),
fXaxis[i] = i;
}
- // InitFormula(fTf1);
fTf1 = new TF1( "myformula", "[0]*((x - [1])/[2])^2*exp(-2*(x -[1])/[2])", 0, 30 );
if (fFixTau)
void
AliCaloRawAnalyzerFitter::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;
}
#include "AliCaloRawAnalyzer.h"
#include "AliCaloConstants.h"
-
using namespace ALTRO;
using namespace EMCAL;
class TF1;
class TGraph;
-
class AliCaloRawAnalyzerFitter : public AliCaloRawAnalyzer
{
public:
AliCaloRawAnalyzerFitter( const char *name, const char *nameshort );
virtual ~AliCaloRawAnalyzerFitter();
- // virtual void InitFormula( TF1*) = 0;
Bool_t GetFixTau() const { return fFixTau; };
void SetFixTau(Bool_t b) { fFixTau = b; };
TF1 * GetFit() const { return fTf1; };
private:
AliCaloRawAnalyzerFitter(const AliCaloRawAnalyzerFitter & );
AliCaloRawAnalyzerFitter & operator = (const AliCaloRawAnalyzerFitter &);
-
- // 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
- // Bool_t fFixTau; // flag if tau should be fix
AliCaloRawAnalyzerFitter();
-
- // ClassDef(AliCaloRawAnalyzerFitter, 1)
-
};
#endif