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