Belle II Software development
|
Class for Space resolution calibration. More...
#include <SpaceResolutionCalibration.h>
Public Member Functions | |
SpaceResolutionCalibration () | |
Constructor. | |
virtual | ~SpaceResolutionCalibration () |
Destructor. | |
virtual void | setDebug (bool debug=false) |
Debug or not. | |
virtual void | setUseDB (bool useDB=false) |
Use database or text mode. | |
virtual void | setMinimumNDF (double minndf) |
minimum NDF required for track | |
virtual void | setMinimumPval (double minPval) |
Minimum Pval required. | |
virtual void | setBinWidth (double bw) |
Bin width of each slide. | |
virtual void | BField (bool bfield) |
Work with B field or not;. | |
virtual void | inputFileNames (std::string inputname) |
Input root file names, results of collector module. | |
virtual void | setStoreHisto (bool storeHist=false) |
Store histograms durring the calibration or not. | |
virtual void | ProfileFileNames (std::string profileFileName) |
File name describe theta/alpha bin, if don't want to use default from input sigma. | |
virtual void | useProfileFromInputSigma (bool useProfileFromInputSigma) |
use sigma bin profile form input sigma or new one from input file | |
virtual void | setSigmaFileName (std::string name) |
Output sigma file name, for text mode. | |
void | execute () |
execute all, make the interface the same as CAF | |
Protected Member Functions | |
virtual bool | calibrate () |
Run algo on data. | |
virtual void | createHisto () |
create histogram | |
virtual void | readProfile () |
read sigma bining (alpha, theta bining) | |
virtual void | readSigma () |
read sigma from previous calibration, (input sigma) | |
virtual void | readSigmaFromDB () |
read sigma from DB | |
virtual void | readSigmaFromText () |
read sigma from text file | |
virtual void | storeHisto () |
store histogram | |
virtual void | write () |
save calibration, in text file or db | |
Private Member Functions | |
double | getUpperBoundaryForFit (TGraphErrors *graph) |
search max point at boundary region | |
Private Attributes | |
double | m_ndfmin = 5 |
Minimum NDF | |
double | m_Pvalmin = 0. |
Minimum Prob(chi2) of track. | |
double | m_binWidth = 0.05 |
width of each bin, unit cm | |
bool | m_debug = false |
Debug or not. | |
bool | m_storeHisto = false |
Store histogram or not. | |
bool | m_useDB = false |
use db or text mode | |
bool | m_useProfileFromInputSigma = true |
Use binning from old sigma or new one form input. | |
bool | m_BField = true |
Work with BField, fit range and initial parameters is different incase B and noB. | |
double | sigma_old [56][2][18][7][8] |
old sigma prameters. | |
double | sigma_new [56][2][18][7][8] |
new sigma prameters. | |
TGraphErrors * | gfit [56][2][18][7] |
sigma*sigma graph for fit | |
TGraphErrors * | gr [56][2][18][7] |
sigma graph. | |
TH2F * | hist_b [56][2][Max_nalpha][Max_ntheta] |
2D histogram of biased residual | |
TH2F * | hist_u [56][2][Max_nalpha][Max_ntheta] |
2D histogram of unbiased residual | |
TH1F * | hu_m [56][2][Max_nalpha][Max_ntheta] |
mean histogram biased residual | |
TH1F * | hu_s [56][2][Max_nalpha][Max_ntheta] |
sigma histogram of biased residual | |
TH1F * | hb_m [56][2][Max_nalpha][Max_ntheta] |
mean histogram of unbiased residual | |
TH1F * | hb_s [56][2][Max_nalpha][Max_ntheta] |
sigma histogram of ubiased residual | |
int | m_fitflag [56][2][Max_nalpha][Max_ntheta] = {{{{0}}}} |
Fit flag; 1:OK ; 0:error. | |
std::string | m_outputSigmaFileName = "sigma_new.dat" |
Output sigma file name. | |
std::string | m_inputRootFileNames = "rootfile/output*" |
Input root file names. | |
std::string | m_ProfileFileName = "sigma_profile" |
Profile file name. | |
DBObjPtr< CDCSpaceResols > * | m_sResolFromDB |
Database for sigma. | |
std::string | m_sigmafile = "cdc/data/sigma.dat" |
Sigma file name, for 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 | m_sigmaParamMode_old |
sigma mode from input. | |
Static Private Attributes | |
static const int | Max_nalpha = 18 |
Maximum alpha bin. | |
static const int | Max_ntheta = 7 |
maximum theta bin | |
static const unsigned short | Max_np = 40 |
Maximum number of point =1/binwidth. | |
Class for Space resolution calibration.
Definition at line 25 of file SpaceResolutionCalibration.h.
Constructor.
Definition at line 32 of file SpaceResolutionCalibration.cc.
|
inlinevirtual |
|
inlinevirtual |
Work with B field or not;.
Definition at line 43 of file SpaceResolutionCalibration.h.
|
protectedvirtual |
Run algo on data.
Upper limit of fitting.
Definition at line 286 of file SpaceResolutionCalibration.cc.
|
protectedvirtual |
create histogram
Definition at line 37 of file SpaceResolutionCalibration.cc.
|
inline |
execute all, make the interface the same as CAF
Definition at line 65 of file SpaceResolutionCalibration.h.
|
inlineprivate |
search max point at boundary region
Definition at line 151 of file SpaceResolutionCalibration.h.
|
inlinevirtual |
Input root file names, results of collector module.
Definition at line 45 of file SpaceResolutionCalibration.h.
|
inlinevirtual |
File name describe theta/alpha bin, if don't want to use default from input sigma.
Definition at line 52 of file SpaceResolutionCalibration.h.
|
protectedvirtual |
read sigma bining (alpha, theta bining)
Definition at line 612 of file SpaceResolutionCalibration.cc.
|
protectedvirtual |
read sigma from previous calibration, (input sigma)
Definition at line 471 of file SpaceResolutionCalibration.cc.
|
protectedvirtual |
read sigma from DB
< angle bin info.
Definition at line 570 of file SpaceResolutionCalibration.cc.
|
protectedvirtual |
read sigma from text file
Definition at line 486 of file SpaceResolutionCalibration.cc.
|
inlinevirtual |
Bin width of each slide.
Definition at line 41 of file SpaceResolutionCalibration.h.
|
inlinevirtual |
Debug or not.
Definition at line 33 of file SpaceResolutionCalibration.h.
|
inlinevirtual |
minimum NDF required for track
Definition at line 37 of file SpaceResolutionCalibration.h.
|
inlinevirtual |
Minimum Pval required.
Definition at line 39 of file SpaceResolutionCalibration.h.
|
inlinevirtual |
Output sigma file name, for text mode.
Definition at line 62 of file SpaceResolutionCalibration.h.
|
inlinevirtual |
Store histograms durring the calibration or not.
Definition at line 50 of file SpaceResolutionCalibration.h.
|
inlinevirtual |
Use database or text mode.
Definition at line 35 of file SpaceResolutionCalibration.h.
|
protectedvirtual |
store histogram
Definition at line 372 of file SpaceResolutionCalibration.cc.
|
inlinevirtual |
use sigma bin profile form input sigma or new one from input file
Definition at line 57 of file SpaceResolutionCalibration.h.
|
protectedvirtual |
save calibration, in text file or db
Definition at line 405 of file SpaceResolutionCalibration.cc.
|
private |
sigma*sigma graph for fit
Definition at line 106 of file SpaceResolutionCalibration.h.
|
private |
sigma graph.
Definition at line 107 of file SpaceResolutionCalibration.h.
|
private |
mean histogram of unbiased residual
Definition at line 112 of file SpaceResolutionCalibration.h.
|
private |
sigma histogram of ubiased residual
Definition at line 113 of file SpaceResolutionCalibration.h.
|
private |
2D histogram of biased residual
Definition at line 108 of file SpaceResolutionCalibration.h.
|
private |
2D histogram of unbiased residual
Definition at line 109 of file SpaceResolutionCalibration.h.
|
private |
mean histogram biased residual
Definition at line 110 of file SpaceResolutionCalibration.h.
|
private |
sigma histogram of biased residual
Definition at line 111 of file SpaceResolutionCalibration.h.
|
private |
represented alphas of alpha bins.
Definition at line 130 of file SpaceResolutionCalibration.h.
|
private |
represented alphas of alpha bins from input.
Definition at line 140 of file SpaceResolutionCalibration.h.
|
private |
represented alphas of theta bins.
Definition at line 133 of file SpaceResolutionCalibration.h.
|
private |
represented alphas of theta bins from input.
Definition at line 143 of file SpaceResolutionCalibration.h.
|
private |
Lower boundays of alpha bins.
Definition at line 128 of file SpaceResolutionCalibration.h.
|
private |
Lower boundays of alpha bins from input.
Definition at line 138 of file SpaceResolutionCalibration.h.
|
private |
Lower boundays of theta bins.
Definition at line 131 of file SpaceResolutionCalibration.h.
|
private |
Lower boundays of theta bins from input.
Definition at line 141 of file SpaceResolutionCalibration.h.
|
private |
Work with BField, fit range and initial parameters is different incase B and noB.
Definition at line 101 of file SpaceResolutionCalibration.h.
|
private |
width of each bin, unit cm
Definition at line 95 of file SpaceResolutionCalibration.h.
|
private |
Debug or not.
Definition at line 96 of file SpaceResolutionCalibration.h.
|
private |
Fit flag; 1:OK ; 0:error.
Definition at line 114 of file SpaceResolutionCalibration.h.
|
private |
Input root file names.
Definition at line 117 of file SpaceResolutionCalibration.h.
|
private |
number of alpha bins
Definition at line 126 of file SpaceResolutionCalibration.h.
|
private |
Minimum NDF
Definition at line 93 of file SpaceResolutionCalibration.h.
|
private |
number of theta bins
Definition at line 127 of file SpaceResolutionCalibration.h.
|
private |
Output sigma file name.
Definition at line 116 of file SpaceResolutionCalibration.h.
|
private |
Profile file name.
Definition at line 118 of file SpaceResolutionCalibration.h.
|
private |
Minimum Prob(chi2) of track.
Definition at line 94 of file SpaceResolutionCalibration.h.
|
private |
Sigma file name, for text mode.
Definition at line 120 of file SpaceResolutionCalibration.h.
|
private |
sigma mode from input.
Definition at line 145 of file SpaceResolutionCalibration.h.
|
private |
Database for sigma.
Definition at line 119 of file SpaceResolutionCalibration.h.
|
private |
Store histogram or not.
Definition at line 98 of file SpaceResolutionCalibration.h.
|
private |
use db or text mode
Definition at line 99 of file SpaceResolutionCalibration.h.
|
private |
Use binning from old sigma or new one form input.
Definition at line 100 of file SpaceResolutionCalibration.h.
|
staticprivate |
Maximum alpha bin.
Definition at line 89 of file SpaceResolutionCalibration.h.
|
staticprivate |
Maximum number of point =1/binwidth.
Definition at line 91 of file SpaceResolutionCalibration.h.
|
staticprivate |
maximum theta bin
Definition at line 90 of file SpaceResolutionCalibration.h.
|
private |
number of alpha bins from input
Definition at line 136 of file SpaceResolutionCalibration.h.
|
private |
number of theta bins from input
Definition at line 137 of file SpaceResolutionCalibration.h.
|
private |
new sigma prameters.
Definition at line 104 of file SpaceResolutionCalibration.h.
|
private |
old sigma prameters.
Definition at line 103 of file SpaceResolutionCalibration.h.
|
private |
Upper boundays of alpha bins.
Definition at line 129 of file SpaceResolutionCalibration.h.
|
private |
Upper boundays of alpha bins from input.
Definition at line 139 of file SpaceResolutionCalibration.h.
|
private |
Upper boundays of theta bins.
Definition at line 132 of file SpaceResolutionCalibration.h.
|
private |
Upper boundays of theta bins from input.
Definition at line 142 of file SpaceResolutionCalibration.h.