Belle II Software  release-08-01-10
TimeWalkCalibration Class Reference

Class for Time walk calibration. More...

#include <TimeWalkCalibration.h>

Collaboration diagram for TimeWalkCalibration:

Public Member Functions

 TimeWalkCalibration ()
 Constructor.
 
virtual ~TimeWalkCalibration ()
 Destructor.
 
virtual void setUseDB (bool useDB)
 setting for use database or text mode
 
virtual void setStoreHisto (bool storeHist)
 Store Histogram or not.
 
virtual void setMinimumNDF (double minndf)
 minimum number of degree freedom requirement for track
 
virtual void setMinimumPval (double minPval)
 minimum chi2 prob requirement for track
 
virtual void InputFileNames (std::string inputname)
 input root file names, output of collector
 
virtual void InputTWFileName (std::string tw_name)
 Input tw file name, incase use text mode.
 
virtual void OutputTWFileName (std::string tw_out_name)
 output tw file name, for text mode
 
virtual void OutputT0FileName (std::string t0_out_name)
 output t0 file name, for text mode
 
virtual void setMode (unsigned short mode)
 Set time walk mode.
 
virtual void execute ()
 function to run algorithm
 

Protected Member Functions

virtual bool calibrate ()
 Run algorithm.
 
virtual void CreateHisto ()
 Create histo for calibrate.
 
virtual void Write ()
 save calibration
 
virtual void updateT0 ()
 update constant term to t0 database.
 
virtual void readTW ()
 read tw from database
 
virtual void fitToExponentialFunc (TH1D *h1)
 fit tw histogram
 

Private Attributes

TH1D * m_h1 [300]
 Mean of residual as function of ADC of each board.
 
TH2D * m_h2 [300]
 2D histogram of residual vs ADC for each board
 
double m_xmin = 0.07
 minimum value cut of drift length.
 
double m_ndfmin = 20
 minimum number of degree of freedom required for track.
 
double m_Pvalmin = 0.
 minimum number of Prob(chi2) of fitted track.
 
double m_constTerm [300] = {0.}
 const term in fitting, it will be added to T0 instead tw
 
std::vector< float > m_tw_old [300]
 tw list old.
 
std::vector< float > m_tw_new [300]
 tw list new.
 
bool m_storeHisto = true
 Store all Histogram or not.
 
bool m_useDB = false
 flag to switch btw text mode and database.
 
unsigned short m_flag [300]
 flag for fit status
 
std::string m_InputTWFileName = "tw.dat"
 Old tw file name.
 
std::string m_InputT0FileName = "t0.dat"
 Old t0 file name.
 
std::string m_outputTWFileName = "tw_new.dat"
 Output tw file name for time walk.
 
std::string m_outputT0FileName = "t0.dat"
 Output tw file name for time walk.
 
std::string m_InputRootFileName = "rootfile/output*"
 root input file name.
 
int m_firstExperiment = 0
 First experiment.
 
int m_firstRun = 0
 First run.
 
int m_lastExperiment = -1
 Last experiment.
 
int m_lastRun = -1
 Last run.
 
unsigned short m_twParamMode_old
 =0 for P0/Sqrt(ADC); =1 for P0*Exp(-P1*ADC).
 
unsigned short m_twParamMode_new = 1
 =0 for P0/Sqrt(ADC); =1 for P0*Exp(-P1*ADC).
 
unsigned short m_nTwParams_new = 2
 No. More...
 
unsigned short m_nTwParams_old
 No. More...
 

Detailed Description

Class for Time walk calibration.

Time walk is calibrated for each board as function of ADC

Definition at line 27 of file TimeWalkCalibration.h.

Member Data Documentation

◆ m_nTwParams_new

unsigned short m_nTwParams_new = 2
private

No.

of tw parameters. for new database

Definition at line 106 of file TimeWalkCalibration.h.

◆ m_nTwParams_old

unsigned short m_nTwParams_old
private

No.

of tw parameters. in old database

Definition at line 107 of file TimeWalkCalibration.h.


The documentation for this class was generated from the following files: