144 double m_par6[56] = {89, 91, 94, 99, 104, 107, 110, 117,
145 126, 144, 150, 157, 170, 180,
146 160, 167, 183, 205, 200, 194,
147 177, 189, 192, 206, 224, 234,
148 193, 206, 209, 215, 222, 239,
149 204, 212, 217, 227, 235, 240,
150 215, 222, 230, 239, 246, 253,
151 227, 232, 239, 243, 253, 258,
152 231, 243, 246, 256, 263, 300
Class to perform xt calibration for drift chamber.
bool m_BField
with b field or none
unsigned short xtmode_old
XT mode old, 0-polynomial, 1 Cheb.
virtual void storeHisto()
Store histogram to file.
double ialpha[18]
represented alphas of alpha bins.
virtual void setStoreHisto(bool storeHist=false)
set to store histogram or not.
virtual void useProfileFromInputXT(bool useProfileXTFromInputXT)
if you want to change xt bining, you have to set this to true
std::string m_inputRootFileNames
input root filename
bool m_useProfileXTFromInputXT
use profile from text file or default in input xt
virtual void setMinimumPval(double minPval)
set minimum Prob(Chi2) requirement
double m_par6[56]
boundary parameter for fitting, semi-experiment number
double xtold[56][2][18][7][8]
Old paremeter.
int m_nalpha
number of alpha bins
int m_MAXalpha
max alpha bin
virtual void readXTFromText()
Read old xt parameter from text file, incase text mode is used.
bool m_storeHisto
Store histogram or not.
TProfile * hprof[56][2][20][10]
Profile xt histo.
double u_alpha[18]
Upper boundays of alpha bins.
virtual void setMinimumNDF(double minndf)
set minimum number of degree of freedom requirement
virtual void BField(bool bfield)
set to use BField
virtual void readXT()
read xt paramter (wrap text mode and database mode)
bool m_LRseparate
Separate LR in calibration or mix.
virtual void readProfile()
Read profile xt file.
double m_ndfmin
minimum ndf required
void execute()
Run calibration.
virtual void inputFileNames(std::string inputname)
Input root file name, output of collector.
bool m_debug
run in debug or silent
double l_theta_old[7]
Lower boundays of theta bins from input.
double l_alpha[18]
Lower boundays of alpha bins.
XTCalibration()
Constructor.
virtual ~XTCalibration()
Destructor.
int m_ntheta
number of theta bins
std::string m_OutputXTFileName
Out put xt filename.
virtual void readXTFromDB()
Read old xt parameter from database.
virtual void Write()
Store calibrated constand.
int nalpha_old
number of alpha bins from input
TH2D * hist2d_draw[56][20][10]
2d histo for draw
double itheta_old[7]
represented alphas of theta bins from input.
virtual void setMode(unsigned short mode=1)
set xt mode, 0 is polynimial, 1 is Chebshev polynomial
virtual void setUseDB(bool useDB=false)
Set to run with database mode or text mode.
double l_alpha_old[18]
Lower boundays of alpha bins from input.
bool m_useSliceFit
Use slice fit or profile.
TH1D * hist2d_1[56][2][20][10]
1D xt histo, results of slice fit
std::string m_xtfile
Input xt file name, incase text mode.
double u_theta_old[7]
Upper boundays of theta bins from input.
virtual bool calibrate()
Run algo on data.
virtual void CreateHisto()
Create histogram for calibration.
double itheta[7]
represented alphas of theta bins.
double ialpha_old[18]
represented alphas of alpha bins from input.
double l_theta[7]
Lower boundays of theta bins.
int m_MAXtheta
max theta bin
void setLRSeparate(bool lr=true)
Set LR separate mode (default is true).
unsigned short m_xtmode
Mode of xt; 0 is polynomial;1 is Chebyshev.
int fitflag[56][2][20][10]
Fit flag.
TF1 * xtf5r[56][2][20][10]
XTFunction.
virtual void profileFileNames(std::string profileFileName)
Profile file name incase you want to change the xt binning.
TH2D * hist2d[56][2][20][10]
2D histo of xt
double m_Pvalmin
minimum pvalue required
double u_alpha_old[18]
Upper boundays of alpha bins from input.
virtual void setDebug(bool debug=false)
Run in debug or silent.
double u_theta[7]
Upper boundays of theta bins.
int ntheta_old
number of theta bins from input
bool m_useDB
Use Database or text mode.
virtual void setXTFileName(std::string name)
input xt file name incase text mode is used.
std::string m_profileFileName
profile file name
int m_smallestEntryRequire
minimum number of hit per hitosgram.
Abstract base class for different kinds of events.