9#include <calibration/CalibrationAlgorithm.h>
11#include <cdc/dbobjects/CDCGeometry.h>
12#include <framework/database/DBObjPtr.h>
77 double dt[56][385] = {{0.}};
79 double dtb[300] = {0.};
Class for T0 Correction .
void setMinimumNDF(double minndf)
minimum ndf require for track.
void setMinimumPval(double minPval)
minimum pvalue requirement.
void setOutputFileName(std::string outputname)
output xt T0 file name (for text mode)
double m_xmin
minimum drift length
void setMaxMeanDt(double maxMeanDt)
Maximum mean of dt of all channels distribution, condition to stop iterating.
std::string m_outputT0FileName
output t0 file name for text file
double m_offsetMeanDt
offset dT distribution caused by event timing extraction;
double dtb[300]
dt of each board
std::string m_histName
root file name
TH1F * m_hTotal
1D histogram of delta T whole channel
double dt[56][385]
dt of each channel
bool m_storeHisto
store histo or not
double m_ndfmin
minimum ndf required
void createHisto()
create histo for each channel
double getMeanT0(TH1F *h1)
calculate mean of the T0 distribution
T0CalibrationAlgorithm()
Constructor.
double m_maxRMSDt
RMS of dT distribution of all channels.
void setCommonT0(double commonT0)
set common T0
~T0CalibrationAlgorithm()
Destructor.
void storeHisto(bool storeHist=false)
store Hisotgram or not.
DBObjPtr< CDCGeometry > m_cdcGeo
Geometry of CDC.
double m_commonT0
A common T0 of all channels.
void enableTextOutput(bool output=true)
Enable text output of calibration result.
void setHistFileName(const std::string &name)
Set name for histogram output.
void setMaxBadChannel(double max_bad_channel)
Maximum channel in which T0 is still need to be calibrated.
double m_maxMeanDt
Mean of dT distribution of all channels;.
TH1F * m_h1[56][385]
1D histogram for each channel
double err_dt[56][385]
error of dt of each channel
bool m_textOutput
output text file if true
EResult calibrate() override
Run algo on data.
TH1F * m_hT0b[300]
1D histogram for each board
double m_Pvalmin
minimum pvalue required
void setMaxRMSDt(double maxRMSDt)
Maximum RMS of dt of all channels distribution, condition to stop iterating.
int write()
write outut or store db
double err_dtb[300]
error of dt of board
double m_maxBadChannel
Number of channels which has DeltaT0 larger then 0.5.
void setOffsetMeanDt(double offsetMeanDt)
Maximum mean of dt of all channels distribution, condition to stop iterating.
Base class for calibration algorithms.
EResult
The result of calibration.
Class for accessing objects in the database.
Abstract base class for different kinds of events.