10#include <calibration/CalibrationAlgorithm.h>
Base class for calibration algorithms.
EResult
The result of calibration.
Algorithm for common T0 calibration with a fit of bunch finder residuals.
int fitDoubleGaus(std::shared_ptr< TH1F > h)
Fit double gaus w/ same mean + constant.
float m_chi2
normalized chi^2
float m_offsetError
error on fitted offset
int m_minEntries
minimal number of histogram entries to perform fit
float m_offset
wrap-around of fitted offset (= common T0)
int m_runLast
last run number
void setMinEntries(int minEntries)
Sets minimal number of histogram entries to perform a fit.
float m_sigmaCore
core gaussian sigma
int m_expNo
experiment number
virtual EResult calibrate() final
algorithm implementation
int m_runNo
first run number
float m_tailFract
tail fraction (set to 0 for single gauss fit)
void setCutoffEntries(int cutoffEntries)
Sets cutoff on the number of histogram entries for steering btw.
virtual ~TOPCommonT0BFAlgorithm()
Destructor.
int m_numEvents
number of all events in the histogram
int m_cutoffEntries
cutoff entries for single/double gaussian fit
double m_sigmaTailInit
tail gaussian sigma [ns]
int m_fitStatus
fit status
double m_minError
minimal commonT0 uncertainty [ns] to declare c_OK
double m_tailFractInit
fraction of tail gaussian
float m_fittedOffset
fitted offset
double m_sigmaCoreInit
core gaussian sigma [ns]
float m_integral
number of fitted signal events
float m_sigmaTail
tail gaussian sigma (set to 0 for single gauss fit)
double m_bunchTimeSep
bunch separation in time [ns]
int fitSingleGaus(std::shared_ptr< TH1F > h)
Fit single gaus + constant.
void setMinError(double minError)
Sets minimal fitted offset uncertainty to declare this calibration as c_OK.
TOPCommonT0BFAlgorithm()
Constructor.
void setFitInitializers(double sigmaCore, double sigmaTail, double tailFract)
Sets values for the initialization of several fit parameters.
std::shared_ptr< TH1F > getHistogram()
Returns histogram to be fitted.
Abstract base class for different kinds of events.