#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 simKBmtfDigis_cfi::chiSquare, gather_cfg::cout, getFitSeeds(), getInteractiveFitSeeds(), interactiveFit, intGauss(), SiStripPI::mean, fileinputsource_cfi::option, 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, dumpMFGeometry_cfg::delta, change_name::diff, HLT_2024v13_cff::gap, hDebugFile, mps_fire::i, createfilelist::int, writeEcalDQMStatus::interval, dqmiolumiharvest::j, SiStripPI::mean, seedmultiplicitymonitor_newtracking_cfi::nBins, GetRecoTauVFromDQM_MC_cff::next, theSigma, theVerbosityLevel, DiMuonV_cfg::threshold, trackerHitRTTI::vector, multiplicitycorr_cfi::xMax, and photonAnalyzer_cfi::xMin.
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().