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