11#include <framework/logging/Logger.h>
58 B2FATAL(
"Mode hasn't implemented yet");
Class for Time walk calibration.
unsigned short m_twParamMode_new
=0 for P0/Sqrt(ADC); =1 for P0*Exp(-P1*ADC).
unsigned short m_nTwParams_new
No.
double m_xmin
minimum value cut of drift length.
virtual void readTW()
read tw from database
std::string m_outputT0FileName
Output tw file name for time walk.
TH2D * m_h2[300]
2D histogram of residual vs ADC for each board
virtual void setMinimumPval(double minPval)
minimum chi2 prob requirement for track
TimeWalkCalibration()
Constructor.
double m_constTerm[300]
const term in fitting, it will be added to T0 instead tw
bool m_storeHisto
Store all Histogram or not.
virtual void setMinimumNDF(double minndf)
minimum number of degree freedom requirement for track
double m_ndfmin
minimum number of degree of freedom required for track.
unsigned short m_flag[300]
flag for fit status
virtual void setStoreHisto(bool storeHist)
Store Histogram or not.
std::string m_InputT0FileName
Old t0 file name.
virtual void InputTWFileName(std::string tw_name)
Input tw file name, incase use text mode.
virtual void updateT0()
update constant term to t0 database.
std::vector< float > m_tw_old[300]
tw list old.
virtual void setUseDB(bool useDB)
setting for use database or text mode
int m_lastExperiment
Last experiment.
virtual void Write()
save calibration
std::string m_InputTWFileName
Old tw file name.
virtual ~TimeWalkCalibration()
Destructor.
std::string m_outputTWFileName
Output tw file name for time walk.
virtual void OutputT0FileName(std::string t0_out_name)
output t0 file name, for text mode
std::vector< float > m_tw_new[300]
tw list new.
virtual void InputFileNames(std::string inputname)
input root file names, output of collector
virtual bool calibrate()
Run algorithm.
virtual void CreateHisto()
Create histo for calibrate.
std::string m_InputRootFileName
root input file name.
virtual void fitToExponentialFunc(TH1D *h1)
fit tw histogram
int m_firstExperiment
First experiment.
unsigned short m_twParamMode_old
=0 for P0/Sqrt(ADC); =1 for P0*Exp(-P1*ADC).
virtual void execute()
function to run algorithm
TH1D * m_h1[300]
Mean of residual as function of ADC of each board.
double m_Pvalmin
minimum number of Prob(chi2) of fitted track.
unsigned short m_nTwParams_old
No.
virtual void setMode(unsigned short mode)
Set time walk mode.
virtual void OutputTWFileName(std::string tw_out_name)
output tw file name, for text mode
bool m_useDB
flag to switch btw text mode and database.
Abstract base class for different kinds of events.