11#include <calibration/CalibrationAlgorithm.h>
91 double logL(
std::shared_ptr<TH1F> h,
int shift);
Base class for calibration algorithms.
EResult
The result of calibration.
Calibration algorithm for carrier shifts of BS13d.
double fun(int x)
Returns measured time distribution at x or minVal for outside-range or empty bins.
void setWindow()
Sets the position of a window containing maximum number of entries of reference time distribution.
std::vector< double > getPDF(int shift)
Returns normalized time distribution at a given shift (PDF)
void setShiftRange(int begin, int end)
Sets the search range.
int m_winSize
size of the window on reference time distribution
void setWindowSize(int size)
Sets size of the window on reference time distribution.
std::vector< int > m_lastEntries
number of histogram entries
std::vector< double > m_timeReference
reference time distribution
TOPAsicShiftsBS13dAlgorithm()
Constructor.
virtual EResult calibrate() final
algorithm implementation
double m_minVal
minimal function value
void setMinimalSignificance(double s)
Set minimal significance of the result to declare calibration as OK.
void setMinValue(double minVal)
Sets minimal function value.
double m_minSignificance
minimal result significance to declare c_OK
int m_shiftEnd
shift range: upper limit + 1
int m_i1
last bin of the window on reference time distribution
double logL(std::shared_ptr< TH1F > h, int shift)
Returns log likelihood of a histogram with respect to PDF at a given shift.
int m_shiftBegin
shift range: lower limit
int m_i0
first bin of the window on reference time distribution
virtual ~TOPAsicShiftsBS13dAlgorithm()
Destructor.
Abstract base class for different kinds of events.