10#include <calibration/CalibrationAlgorithm.h>
Base class for calibration algorithms.
EResult
The result of calibration.
Algorithm for module T0 calibration with chi2 minimization of time differences between slots (method ...
int fitDoubleGaus(std::shared_ptr< TH1F > h)
Fit double gaus w/ same mean + constant.
int m_minEntries
minimal number of histogram entries to perform fit
double m_delT0
fitted delta T0
void setMinEntries(int minEntries)
Sets minimal number of histogram entries to perform a fit.
virtual EResult calibrate() final
algorithm implementation
void setCutoffEntries(int cutoffEntries)
Sets cutoff on the number of histogram entries for steering btw.
int fitHistogram(std::shared_ptr< TH1F > h)
Fit histogram.
double m_chi2
chi2 of the fit
int m_cutoffEntries
cutoff entries for single/double gaussian fit
double m_sigmaTailInit
tail gaussian sigma [ns]
double m_minError
minimal moduleT0 uncertainty [ns] to declare c_OK
double m_ndf
NDF of the fit.
double m_tailFractInit
fraction of tail gaussian
double m_error
error on fitted delta T0
double m_sigmaCoreInit
core gaussian sigma [ns]
virtual ~TOPModuleT0DeltaTAlgorithm()
Destructor.
TOPModuleT0DeltaTAlgorithm()
Constructor.
int fitSingleGaus(std::shared_ptr< TH1F > h)
Fit single gaus + constant.
void setMinError(double minError)
Sets minimal result uncertainty to declare this calibration as c_OK.
void setFitInitializers(double sigmaCore, double sigmaTail, double tailFract)
Sets values for the initialization of several fit parameters.
Abstract base class for different kinds of events.