10#include <calibration/CalibrationAlgorithm.h>
64 double Chi2(TH1F* recBuckets, TH1F* fillPattern,
int i0);
81 double getFraction(TH1F* recBuckets, TH1F* fillPattern,
int offset);
Base class for calibration algorithms.
EResult
The result of calibration.
Algorithm for calibration of fill pattern offset.
int m_minEntries
minimal number of entries to perform calibration
void setMinEntries(int minEntries)
Sets minimal number of histogram entries to perform calibration.
double Chi2(TH1F *recBuckets, TH1F *fillPattern, int i0)
Returns chi2 = -2 logL of circularly shifted pattern at a give shift i0.
double m_p
signal fraction for PDF definition
virtual EResult calibrate() final
algorithm implementation
void setSignalFraction(double p)
Sets signal fraction used in PDF.
void setMinimalFraction(double fract)
Sets minimal fraction of matched buckets to save calibration constants.
double getFraction(TH1F *recBuckets, TH1F *fillPattern, int offset)
Returns fraction of reconstructed buckets matched with filled buckets after accounting for the offset...
double m_minFract
minimal fraction of matched buckets to save calibration
TOPFillPatternOffsetAlgorithm()
Constructor.
virtual ~TOPFillPatternOffsetAlgorithm()
Destructor.
TH1F * getChi2Histogram(TH1F *recBuckets, TH1F *fillPattern)
Returns chi2 values at all possible circular shifts.
Abstract base class for different kinds of events.