Belle II Software development
|
Class to perform xt calibration for drift chamber. More...
#include <XTCalibration.h>
Public Member Functions | |
XTCalibration () | |
Constructor. | |
virtual | ~XTCalibration () |
Destructor. | |
virtual void | BField (bool bfield) |
set to use BField | |
virtual void | setDebug (bool debug=false) |
Run in debug or silent. | |
virtual void | setUseDB (bool useDB=false) |
Set to run with database mode or text mode. | |
virtual void | setMinimumNDF (double minndf) |
set minimum number of degree of freedom requirement | |
virtual void | setMinimumPval (double minPval) |
set minimum Prob(Chi2) requirement | |
virtual void | inputFileNames (std::string inputname) |
Input root file name, output of collector. | |
virtual void | profileFileNames (std::string profileFileName) |
Profile file name incase you want to change the xt binning. | |
virtual void | useProfileFromInputXT (bool useProfileXTFromInputXT) |
if you want to change xt bining, you have to set this to true | |
virtual void | setXTFileName (std::string name) |
input xt file name incase text mode is used. | |
virtual void | setMode (unsigned short mode=1) |
set xt mode, 0 is polynimial, 1 is Chebshev polynomial | |
virtual void | setStoreHisto (bool storeHist=false) |
set to store histogram or not. | |
void | setLRSeparate (bool lr=true) |
Set LR separate mode (default is true). | |
void | execute () |
Run calibration. | |
Protected Member Functions | |
virtual bool | calibrate () |
Run algo on data. | |
virtual void | readXTFromDB () |
Read old xt parameter from database. | |
virtual void | readXTFromText () |
Read old xt parameter from text file, incase text mode is used. | |
virtual void | CreateHisto () |
Create histogram for calibration. | |
virtual void | readProfile () |
Read profile xt file. | |
virtual void | readXT () |
read xt paramter (wrap text mode and database mode) | |
virtual void | Write () |
Store calibrated constand. | |
virtual void | storeHisto () |
Store histogram to file. | |
Private Attributes | |
double | m_ndfmin = 5 |
minimum ndf required | |
double | m_Pvalmin = 0. |
minimum pvalue required | |
bool | m_debug = false |
run in debug or silent | |
bool | m_storeHisto = false |
Store histogram or not. | |
bool | m_useDB = false |
Use Database or text mode. | |
bool | m_useProfileXTFromInputXT = true |
use profile from text file or default in input xt | |
bool | m_LRseparate = true |
Separate LR in calibration or mix. | |
bool | m_useSliceFit = false |
Use slice fit or profile. | |
bool | m_BField = true |
with b field or none | |
double | xtold [56][2][18][7][8] |
Old paremeter. | |
int | fitflag [56][2][20][10] |
Fit flag. | |
TF1 * | xtf5r [56][2][20][10] |
XTFunction. | |
TProfile * | hprof [56][2][20][10] |
Profile xt histo. | |
TH2D * | hist2d [56][2][20][10] |
2D histo of xt | |
TH2D * | hist2d_draw [56][20][10] |
2d histo for draw | |
TH1D * | hist2d_1 [56][2][20][10] |
1D xt histo, results of slice fit | |
std::string | m_OutputXTFileName = "xt_new.dat" |
Out put xt filename. | |
std::string | m_inputRootFileNames = "rootfile/output*" |
input root filename | |
std::string | m_profileFileName = "xt_profile" |
profile file name | |
std::string | m_xtfile = "cdc/data/xt.dat" |
Input xt file name, incase text mode. | |
int | m_nalpha |
number of alpha bins | |
int | m_ntheta |
number of theta bins | |
double | l_alpha [18] |
Lower boundays of alpha bins. | |
double | u_alpha [18] |
Upper boundays of alpha bins. | |
double | ialpha [18] |
represented alphas of alpha bins. | |
double | l_theta [7] |
Lower boundays of theta bins. | |
double | u_theta [7] |
Upper boundays of theta bins. | |
double | itheta [7] |
represented alphas of theta bins. | |
int | nalpha_old |
number of alpha bins from input | |
int | ntheta_old |
number of theta bins from input | |
double | l_alpha_old [18] |
Lower boundays of alpha bins from input. | |
double | u_alpha_old [18] |
Upper boundays of alpha bins from input. | |
double | ialpha_old [18] |
represented alphas of alpha bins from input. | |
double | l_theta_old [7] |
Lower boundays of theta bins from input. | |
double | u_theta_old [7] |
Upper boundays of theta bins from input. | |
double | itheta_old [7] |
represented alphas of theta bins from input. | |
unsigned short | xtmode_old |
XT mode old, 0-polynomial, 1 Cheb. | |
int | m_MAXalpha = 18 |
max alpha bin | |
int | m_MAXtheta = 7 |
max theta bin | |
unsigned short | m_xtmode = 1 |
Mode of xt; 0 is polynomial;1 is Chebyshev. | |
int | m_smallestEntryRequire = 1000 |
minimum number of hit per hitosgram. | |
double | m_par6 [56] |
boundary parameter for fitting, semi-experiment number | |
Class to perform xt calibration for drift chamber.
Definition at line 21 of file XTCalibration.h.
XTCalibration | ( | ) |
Constructor.
Definition at line 37 of file XTCalibration.cc.
|
inlinevirtual |
|
inlinevirtual |
|
protectedvirtual |
Run algo on data.
Definition at line 200 of file XTCalibration.cc.
|
protectedvirtual |
Create histogram for calibration.
Definition at line 52 of file XTCalibration.cc.
|
inline |
Run calibration.
Definition at line 54 of file XTCalibration.h.
|
inlinevirtual |
Input root file name, output of collector.
Definition at line 38 of file XTCalibration.h.
|
inlinevirtual |
Profile file name incase you want to change the xt binning.
Definition at line 40 of file XTCalibration.h.
|
protectedvirtual |
Read profile xt file.
Definition at line 149 of file XTCalibration.cc.
|
protectedvirtual |
read xt paramter (wrap text mode and database mode)
B2FATAL("Error reading xt from DB");return;}
Definition at line 409 of file XTCalibration.cc.
|
protectedvirtual |
Read old xt parameter from database.
Definition at line 538 of file XTCalibration.cc.
|
protectedvirtual |
Read old xt parameter from text file, incase text mode is used.
Definition at line 438 of file XTCalibration.cc.
|
inlinevirtual |
|
inline |
Set LR separate mode (default is true).
Definition at line 50 of file XTCalibration.h.
|
inlinevirtual |
set minimum number of degree of freedom requirement
Definition at line 34 of file XTCalibration.h.
|
inlinevirtual |
set minimum Prob(Chi2) requirement
Definition at line 36 of file XTCalibration.h.
|
inlinevirtual |
set xt mode, 0 is polynimial, 1 is Chebshev polynomial
Definition at line 46 of file XTCalibration.h.
|
inlinevirtual |
set to store histogram or not.
Definition at line 48 of file XTCalibration.h.
|
inlinevirtual |
Set to run with database mode or text mode.
Definition at line 32 of file XTCalibration.h.
|
inlinevirtual |
input xt file name incase text mode is used.
Definition at line 44 of file XTCalibration.h.
|
protectedvirtual |
Store histogram to file.
Definition at line 375 of file XTCalibration.cc.
|
inlinevirtual |
if you want to change xt bining, you have to set this to true
Definition at line 42 of file XTCalibration.h.
|
protectedvirtual |
Store calibrated constand.
Definition at line 297 of file XTCalibration.cc.
|
private |
Fit flag.
Definition at line 90 of file XTCalibration.h.
|
private |
2D histo of xt
Definition at line 94 of file XTCalibration.h.
|
private |
1D xt histo, results of slice fit
Definition at line 96 of file XTCalibration.h.
|
private |
2d histo for draw
Definition at line 95 of file XTCalibration.h.
|
private |
Profile xt histo.
Definition at line 93 of file XTCalibration.h.
|
private |
represented alphas of alpha bins.
Definition at line 124 of file XTCalibration.h.
|
private |
represented alphas of alpha bins from input.
Definition at line 133 of file XTCalibration.h.
|
private |
represented alphas of theta bins.
Definition at line 127 of file XTCalibration.h.
|
private |
represented alphas of theta bins from input.
Definition at line 136 of file XTCalibration.h.
|
private |
Lower boundays of alpha bins.
Definition at line 122 of file XTCalibration.h.
|
private |
Lower boundays of alpha bins from input.
Definition at line 131 of file XTCalibration.h.
|
private |
Lower boundays of theta bins.
Definition at line 125 of file XTCalibration.h.
|
private |
Lower boundays of theta bins from input.
Definition at line 134 of file XTCalibration.h.
|
private |
with b field or none
Definition at line 86 of file XTCalibration.h.
|
private |
run in debug or silent
Definition at line 80 of file XTCalibration.h.
|
private |
input root filename
Definition at line 107 of file XTCalibration.h.
|
private |
Separate LR in calibration or mix.
Definition at line 84 of file XTCalibration.h.
|
private |
max alpha bin
Definition at line 139 of file XTCalibration.h.
|
private |
max theta bin
Definition at line 140 of file XTCalibration.h.
|
private |
number of alpha bins
Definition at line 120 of file XTCalibration.h.
|
private |
minimum ndf required
Definition at line 78 of file XTCalibration.h.
|
private |
number of theta bins
Definition at line 121 of file XTCalibration.h.
|
private |
Out put xt filename.
Definition at line 106 of file XTCalibration.h.
|
private |
boundary parameter for fitting, semi-experiment number
Definition at line 144 of file XTCalibration.h.
|
private |
profile file name
Definition at line 108 of file XTCalibration.h.
|
private |
minimum pvalue required
Definition at line 79 of file XTCalibration.h.
|
private |
minimum number of hit per hitosgram.
Definition at line 142 of file XTCalibration.h.
|
private |
Store histogram or not.
Definition at line 81 of file XTCalibration.h.
|
private |
Use Database or text mode.
Definition at line 82 of file XTCalibration.h.
|
private |
use profile from text file or default in input xt
Definition at line 83 of file XTCalibration.h.
|
private |
Use slice fit or profile.
Definition at line 85 of file XTCalibration.h.
|
private |
Input xt file name, incase text mode.
Definition at line 109 of file XTCalibration.h.
|
private |
Mode of xt; 0 is polynomial;1 is Chebyshev.
Definition at line 141 of file XTCalibration.h.
|
private |
number of alpha bins from input
Definition at line 129 of file XTCalibration.h.
|
private |
number of theta bins from input
Definition at line 130 of file XTCalibration.h.
|
private |
Upper boundays of alpha bins.
Definition at line 123 of file XTCalibration.h.
|
private |
Upper boundays of alpha bins from input.
Definition at line 132 of file XTCalibration.h.
|
private |
Upper boundays of theta bins.
Definition at line 126 of file XTCalibration.h.
|
private |
Upper boundays of theta bins from input.
Definition at line 135 of file XTCalibration.h.
|
private |
Definition at line 91 of file XTCalibration.h.
|
private |
XT mode old, 0-polynomial, 1 Cheb.
Definition at line 138 of file XTCalibration.h.
|
private |
Old paremeter.
Definition at line 89 of file XTCalibration.h.