#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 17 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 36 of file DTTimeBoxFitter.cc.
References gather_cfg::cout, getFitSeeds(), getInteractiveFitSeeds(), interactiveFit, intGauss(), SiStripPI::mean, rebin, and theVerbosityLevel.
Referenced by DTTTrigWriter::analyze().
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 125 of file DTTimeBoxFitter.cc.
References funct::abs(), filterCSVwithJSON::copy, gather_cfg::cout, CommonMethods::delta(), change_name::diff, hDebugFile, mps_fire::i, MergeJob_cfg::interval, dqmiolumiharvest::j, GetRecoTauVFromDQM_MC_cff::next, command_line::start, theSigma, theVerbosityLevel, dtDQMClient_cfg::threshold, and trackerHitRTTI::vector.
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 99 of file DTTimeBoxFitter.cc.
References gather_cfg::cout, SiStripPI::mean, theSigma, and theVerbosityLevel.
Referenced by fitTimeBox().
|
inline |
Definition at line 46 of file DTTimeBoxFitter.h.
References theSigma.
Referenced by DTTTrigWriter::DTTTrigWriter().
|
inline |
Switch to interactive fit.
Definition at line 41 of file DTTimeBoxFitter.h.
References interactiveFit.
|
inline |
|
inline |
Set the verbosity of the output: 0 = silent, 1 = info, 2 = debug.
Definition at line 38 of file DTTimeBoxFitter.h.
References theVerbosityLevel.
Referenced by DTTTrigWriter::DTTTrigWriter().
|
private |
Definition at line 50 of file DTTimeBoxFitter.h.
Referenced by DTTimeBoxFitter(), getFitSeeds(), and ~DTTimeBoxFitter().
|
private |
Definition at line 53 of file DTTimeBoxFitter.h.
Referenced by DTTimeBoxFitter(), fitTimeBox(), and setInteractiveFit().
|
private |
Definition at line 54 of file DTTimeBoxFitter.h.
Referenced by DTTimeBoxFitter(), fitTimeBox(), and setRebinning().
|
private |
Definition at line 55 of file DTTimeBoxFitter.h.
Referenced by getFitSeeds(), getInteractiveFitSeeds(), and setFitSigma().
|
private |
Definition at line 52 of file DTTimeBoxFitter.h.
Referenced by fitTimeBox(), getFitSeeds(), getInteractiveFitSeeds(), and setVerbosity().