1 #ifndef CalibMuon_DTTimeBoxFitter_H
2 #define CalibMuon_DTTimeBoxFitter_H
31 std::pair<double, double>
fitTimeBox(TH1F *hTimeBox);
35 void getFitSeeds(TH1F *hTBox,
double&
mean,
double& sigma,
double& tBoxMax,
double& xFitMin,
40 double& xFitMin,
double& xFitMax);
double intGauss(double *x, double *par)
void setVerbosity(unsigned int lvl)
Set the verbosity of the output: 0 = silent, 1 = info, 2 = debug.
void setRebinning(int reb)
Set the rebin.
void setFitSigma(double sigma)
void getFitSeeds(TH1F *hTBox, double &mean, double &sigma, double &tBoxMax, double &xFitMin, double &xFitMax)
Automatically compute the seeds the range to be used for time box fit.
virtual ~DTTimeBoxFitter()
Destructor.
void getInteractiveFitSeeds(TH1F *hTBox, double &mean, double &sigma, double &tBoxMax, double &xFitMin, double &xFitMax)
Ask the user to provide the seeds.
DTTimeBoxFitter(const TString &debugFileName=TString(""))
Constructor.
unsigned int theVerbosityLevel
void setInteractiveFit(bool isInteractive)
Switch to interactive fit.
std::pair< double, double > fitTimeBox(TH1F *hTimeBox)
Fit the rising edge of the time box returning mean value and sigma (first and second respectively) ...