#include <DTTimeBoxFitter.h>
Public Member Functions | |
DTTimeBoxFitter (const TString &debugFileName=TString("")) | |
Constructor. More... | |
std::pair< double, double > | fitTimeBox (TH1F *hTimeBox) |
Fit the rising edge of the time box returning mean value and sigma (first and second respectively) More... | |
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. More... | |
void | getInteractiveFitSeeds (TH1F *hTBox, double &mean, double &sigma, double &tBoxMax, double &xFitMin, double &xFitMax) |
Ask the user to provide the seeds. More... | |
void | setFitSigma (double sigma) |
void | setInteractiveFit (bool isInteractive) |
Switch to interactive fit. More... | |
void | setRebinning (int reb) |
Set the rebin. More... | |
void | setVerbosity (unsigned int lvl) |
Set the verbosity of the output: 0 = silent, 1 = info, 2 = debug. More... | |
virtual | ~DTTimeBoxFitter () |
Destructor. More... | |
Private Attributes | |
TFile * | hDebugFile |
bool | interactiveFit |
int | rebin |
double | theSigma |
unsigned int | theVerbosityLevel |
Fit the rising edge of the time box with the integral of a gaussian returning the mean value and the sigma.
Definition at line 18 of file DTTimeBoxFitter.h.
DTTimeBoxFitter::DTTimeBoxFitter | ( | const TString & | debugFileName = TString("") | ) |
Constructor.
Definition at line 21 of file DTTimeBoxFitter.cc.
References hDebugFile, interactiveFit, and rebin.
|
virtual |
pair< double, double > DTTimeBoxFitter::fitTimeBox | ( | TH1F * | hTimeBox | ) |
Fit the rising edge of the time box returning mean value and sigma (first and second respectively)
Compute the ttrig (in ns) from the Time Box.
Definition at line 40 of file DTTimeBoxFitter.cc.
References gather_cfg::cout, getFitSeeds(), getInteractiveFitSeeds(), interactiveFit, intGauss(), timingPdfMaker::mean, rebin, and theVerbosityLevel.
void DTTimeBoxFitter::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.
Definition at line 134 of file DTTimeBoxFitter.cc.
References funct::abs(), filterCSVwithJSON::copy, gather_cfg::cout, delta, diffTreeTool::diff, hDebugFile, i, MergeJob_cfg::interval, j, GetRecoTauVFromDQM_MC_cff::next, dqm_diff::start, theSigma, theVerbosityLevel, and dtDQMClient_cfg::threshold.
Referenced by fitTimeBox().
void DTTimeBoxFitter::getInteractiveFitSeeds | ( | TH1F * | hTBox, |
double & | mean, | ||
double & | sigma, | ||
double & | tBoxMax, | ||
double & | xFitMin, | ||
double & | xFitMax | ||
) |
Ask the user to provide the seeds.
Definition at line 107 of file DTTimeBoxFitter.cc.
References gather_cfg::cout, timingPdfMaker::mean, theSigma, and theVerbosityLevel.
Referenced by fitTimeBox().
|
inline |
|
inline |
Switch to interactive fit.
Definition at line 47 of file DTTimeBoxFitter.h.
References interactiveFit.
|
inline |
|
inline |
Set the verbosity of the output: 0 = silent, 1 = info, 2 = debug.
Definition at line 42 of file DTTimeBoxFitter.h.
References theVerbosityLevel.
|
private |
Definition at line 64 of file DTTimeBoxFitter.h.
Referenced by DTTimeBoxFitter(), getFitSeeds(), and ~DTTimeBoxFitter().
|
private |
Definition at line 67 of file DTTimeBoxFitter.h.
Referenced by DTTimeBoxFitter(), fitTimeBox(), and setInteractiveFit().
|
private |
Definition at line 68 of file DTTimeBoxFitter.h.
Referenced by DTTimeBoxFitter(), fitTimeBox(), and setRebinning().
|
private |
Definition at line 69 of file DTTimeBoxFitter.h.
Referenced by getFitSeeds(), getInteractiveFitSeeds(), and setFitSigma().
|
private |
Definition at line 66 of file DTTimeBoxFitter.h.
Referenced by fitTimeBox(), getFitSeeds(), getInteractiveFitSeeds(), and setVerbosity().