Belle II Software development
|
Class for Time walk calibration. More...
#include <TimeWalkCalibration.h>
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. | |
unsigned short | m_nTwParams_old |
No. | |
Class for Time walk calibration.
Time walk is calibrated for each board as function of ADC
Definition at line 27 of file TimeWalkCalibration.h.
Constructor.
Definition at line 28 of file TimeWalkCalibration.cc.
|
inlinevirtual |
|
protectedvirtual |
Run algorithm.
Definition at line 95 of file TimeWalkCalibration.cc.
|
protectedvirtual |
Create histo for calibrate.
Definition at line 32 of file TimeWalkCalibration.cc.
|
inlinevirtual |
function to run algorithm
Definition at line 61 of file TimeWalkCalibration.h.
|
protectedvirtual |
fit tw histogram
Definition at line 263 of file TimeWalkCalibration.cc.
|
inlinevirtual |
input root file names, output of collector
Definition at line 42 of file TimeWalkCalibration.h.
|
inlinevirtual |
Input tw file name, incase use text mode.
Definition at line 44 of file TimeWalkCalibration.h.
|
inlinevirtual |
output t0 file name, for text mode
Definition at line 48 of file TimeWalkCalibration.h.
|
inlinevirtual |
output tw file name, for text mode
Definition at line 46 of file TimeWalkCalibration.h.
|
protectedvirtual |
read tw from database
Definition at line 300 of file TimeWalkCalibration.cc.
|
inlinevirtual |
minimum number of degree freedom requirement for track
Definition at line 38 of file TimeWalkCalibration.h.
|
inlinevirtual |
minimum chi2 prob requirement for track
Definition at line 40 of file TimeWalkCalibration.h.
|
inlinevirtual |
Set time walk mode.
Definition at line 50 of file TimeWalkCalibration.h.
|
inlinevirtual |
Store Histogram or not.
Definition at line 36 of file TimeWalkCalibration.h.
|
inlinevirtual |
setting for use database or text mode
Definition at line 34 of file TimeWalkCalibration.h.
|
protectedvirtual |
update constant term to t0 database.
Definition at line 230 of file TimeWalkCalibration.cc.
|
protectedvirtual |
save calibration
Definition at line 194 of file TimeWalkCalibration.cc.
|
private |
const term in fitting, it will be added to T0 instead tw
Definition at line 89 of file TimeWalkCalibration.h.
|
private |
First experiment.
Definition at line 100 of file TimeWalkCalibration.h.
|
private |
First run.
Definition at line 101 of file TimeWalkCalibration.h.
|
private |
flag for fit status
Definition at line 94 of file TimeWalkCalibration.h.
|
private |
Mean of residual as function of ADC of each board.
Definition at line 81 of file TimeWalkCalibration.h.
|
private |
2D histogram of residual vs ADC for each board
Definition at line 82 of file TimeWalkCalibration.h.
|
private |
root input file name.
Definition at line 99 of file TimeWalkCalibration.h.
|
private |
Old t0 file name.
Definition at line 96 of file TimeWalkCalibration.h.
|
private |
Old tw file name.
Definition at line 95 of file TimeWalkCalibration.h.
|
private |
Last experiment.
Definition at line 102 of file TimeWalkCalibration.h.
|
private |
Last run.
Definition at line 103 of file TimeWalkCalibration.h.
|
private |
minimum number of degree of freedom required for track.
Definition at line 85 of file TimeWalkCalibration.h.
|
private |
|
private |
|
private |
Output tw file name for time walk.
Definition at line 98 of file TimeWalkCalibration.h.
|
private |
Output tw file name for time walk.
Definition at line 97 of file TimeWalkCalibration.h.
|
private |
minimum number of Prob(chi2) of fitted track.
Definition at line 86 of file TimeWalkCalibration.h.
|
private |
Store all Histogram or not.
Definition at line 92 of file TimeWalkCalibration.h.
|
private |
tw list new.
Definition at line 91 of file TimeWalkCalibration.h.
|
private |
tw list old.
Definition at line 90 of file TimeWalkCalibration.h.
|
private |
=0 for P0/Sqrt(ADC); =1 for P0*Exp(-P1*ADC).
Definition at line 105 of file TimeWalkCalibration.h.
|
private |
=0 for P0/Sqrt(ADC); =1 for P0*Exp(-P1*ADC).
Definition at line 104 of file TimeWalkCalibration.h.
|
private |
flag to switch btw text mode and database.
Definition at line 93 of file TimeWalkCalibration.h.
|
private |
minimum value cut of drift length.
Definition at line 84 of file TimeWalkCalibration.h.