 |
Belle II Software
release-05-02-19
|
12 #include <calibration/CalibrationAlgorithm.h>
14 #include <cdc/dbobjects/CDCGeometry.h>
15 #include <framework/database/DBObjPtr.h>
26 class T0CalibrationAlgorithm:
public CalibrationAlgorithm {
74 double dt[56][385] = {{0.}};
76 double dtb[300] = {0.};
double m_Pvalmin
minimum pvalue required
double m_ndfmin
minimum ndf required
void setMaxRMSDt(double maxRMSDt)
Maximum RMS of dt of all channels distribution, condition to stop iterating.
double m_maxRMSDt
RMS of dT distribution of all channels.
void setMinimumNDF(double minndf)
minimum ndf require for track.
double err_dt[56][385]
error of dt of each channel
void setMaxMeanDt(double maxMeanDt)
Maximum mean of dt of all channels distribution, condition to stop iterating.
double m_commonT0
A common T0 of all channels.
bool m_storeHisto
store histo or not
TH1F * m_hTotal
1D histogram of delta T whole channel
void setHistFileName(const std::string &name)
Set name for histogram output.
double m_maxMeanDt
Mean of dT distribution of all channels;.
std::string m_outputT0FileName
output t0 file name for text file
double m_xmin
minimum drift length
Class for accessing objects in the database.
TH1F * m_h1[56][385]
1D histogram for each channel
void setCommonT0(double commonT0)
set common T0
std::string m_histName
root file name
void enableTextOutput(bool output=true)
Enable text output of calibration result.
Abstract base class for different kinds of events.
void createHisto()
create histo for each channel
double dt[56][385]
dt of each channel
double getMeanT0(TH1F *h1)
calculate mean of the T0 distribution
void setMinimumPval(double minPval)
minimum pvalue requirement.
EResult
The result of calibration.
DBObjPtr< CDCGeometry > m_cdcGeo
Geometry of CDC.
bool m_textOutput
output text file if true
~T0CalibrationAlgorithm()
Destructor.
double dtb[300]
dt of each board
double err_dtb[300]
error of dt of board
EResult calibrate() override
Run algo on data.
void write()
write outut or store db
T0CalibrationAlgorithm()
Constructor.
void setOutputFileName(std::string outputname)
output xt T0 file name (for text mode)
void storeHisto(bool storeHist=false)
store Hisotgram or not.
TH1F * m_hT0b[300]
1D histogram for each board