#ifndef testClass_H #define testClass_H #include "TH1D.h" #include "TF1.h" //======================================================================================================================================= class testClass { public: testClass(); virtual ~testClass() {;} void Init(Double_t fitMin, Double_t fitMax); Int_t SetHist(TH1D *hist1, TH1D *hist2, TH1D *hist3) { fHist[0] = hist1; fHist[1] = hist2; fHist[2] = hist3; } void Exec(); Double_t FitFunction(Double_t *x, Double_t *par); protected: TF1 *fFitFunction; TH1D *fHist[3]; Double_t fFitMin, fFitMax; ClassDef(testClass, 0); }; //====================================================================================================== #endif