10#include <calibration/CalibrationAlgorithm.h>
39 if (window.size() != 2) {
40 B2FATAL(
"Please specify [TDC_min, TDC_max]");
Algorithm class for crude T0 calibration.
TH1D * m_hT0All
T0 distribution of all channel.
void setInitialValue(float t)
Set inital value for fitting.
unsigned short m_tdcMax
maximum of TDC hist for fitting
virtual ~CrudeT0CalibrationAlgorithm()
Destructor.
void setZOffset(float z)
Set z offset.
TH1D * m_hTDCBoard[300]
T0 distribution of each board.
void setFitWindow(std::vector< unsigned short > window)
Set window for fitting.
float m_initT0
Common initial T0 for fitting.
bool m_flag[56][400]
flag =1 for good, =0 for low statistic or bad fit
void saveHisto()
Save hitograms of the calibration results.
bool m_cosmic
for cosmic case, tof of upper sector will be negative
virtual void createHisto(StoreObjPtr< EventMetaData > &evtPtr)
create histo for each channel
void setCosmics(bool b)
Set cosmics mode.
CrudeT0CalibrationAlgorithm()
Constructor.
double m_t0[56][400]
T0 of each channel.
double m_t0b[300]
T0 for each board.
unsigned short m_tdcMin
minimum of TDC hist for fitting
virtual void write(StoreObjPtr< EventMetaData > &evtPtr)
write outut or store db
unsigned short m_minEntries
minimum entries required by histo.
EResult calibrate() override
Run algo on data.
TH1D * m_hTDC[56][400]
TDC distribution histo.
float m_zOffset
z offset for calculate prop time, it is position of trigger counter,
Base class for calibration algorithms.
EResult
The result of calibration.
Type-safe access to single objects in the data store.
Abstract base class for different kinds of events.