10#include <calibration/CalibrationAlgorithm.h>
15#include <top/dbobjects/TOPCalChannelPulseHeight.h>
16#include <top/dbobjects/TOPCalChannelThresholdEff.h>
Base class for calibration algorithms.
EResult
The result of calibration.
Pulse height parameterizations for all 512 channels of 16 modules.
Class to store the threshold efficiency (i.e.
Algorithm for pulse-height and threshold efficiency calibration.
int fitChannels(std::shared_ptr< TH2F > h)
Fit pulse-height distributions of a single module.
virtual ~TOPPulseHeightAlgorithm()
Destructor.
int m_minEntries
minimal number of histogram entries to perform fit
double m_xmin
fit range lower limit [ADC counts]
TTree * m_tree
output ntuple
double getEfficiency(TH1D *h, TF1 *func)
Calculate and return threshold efficiency.
void setMinEntries(int minEntries)
Sets minimal number of histogram entries to perform a fit.
int fitPulseHeight(TH1D *h)
Fit pulse-height distribution of a single channel with P(x) = (x/x0)^p1 * exp(-(x/x0)^p2) and p1 = 1.
unsigned m_channel
channel ID
float m_effi
threshold efficiency
virtual EResult calibrate() final
algorithm implementation
TOPCalChannelThresholdEff * m_thresholdEffi
threshold efficiencies
TOPPulseHeightAlgorithm()
Constructor.
float m_p1
fitted distribution parameter p1
float m_meanFunc
fitted distribution mean value
float m_p2
fitted distribution parameter p2
void setXmin(double xmin)
Sets the lower bound of the fit range.
int m_fitStatus
fit status
float m_x0err
error on x0 [ADC counts]
float m_x0
fitted distribution parameter x0 [ADC counts]
bool m_good
on true fit is good
double m_minCalibrated
min.
int m_numPhot
number of photons (histogram entries)
float m_meanHist
histogram mean value
TOPCalChannelPulseHeight * m_pulseHeight
parametrized PH distributions
void setMinFracCalibrated(double minFract)
Sets minimal fraction of calibrated channels to declare this calibration as c_OK.
Abstract base class for different kinds of events.