13#ifndef MTTMAXPATTTERNRECOGNITION_H
14#define MTTMAXPATTTERNRECOGNITION_H
63 inline double GetA()
const {
return m_a; }
66 inline double GetB()
const {
return m_b; }
VariableBinwidthHistogram m_vbh
Variable binwidth histogram.
bool GetError() const
return error flag
MTTmaxPatternRecognition()
Default constructor.
double GetB() const
get parameter a in exp-function representing the end of the spectrum
double m_background
background level
const T0MTSettingsTMax * m_settings
settings
double m_tmax_est
t0 estimate
bool estimate_background(TH1F *hist)
estimates the background level
double GetEstimatedTMax() const
get estimated t0
bool Initialize(TH1F *hist, double t0, const T0MTSettings *settings)
Initialize class.
double GetFitRangeMin() const
get fit range
double GetBackground() const
get the background level
double m_a
parameters a, b in a*exp(b*x)
double GetFitRangeMax() const
get fit range
double GetA() const
get parameter a in exp-function representing the end of the spectrum
bool estimate_height(TH1F *hist)
estimates the height of the spectrum.
double m_fit_min
fit range
Settings for the T0 calibration (histogram booking and fitting parameters) Parameters for pattern rec...
A histogram where every bin has the same number of entries.
CscCalcPed - algorithm that finds the Cathode Strip Chamber pedestals from an RDO.
TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)