1#ifndef ParticleID_TofCorrPID_H
2#define ParticleID_TofCorrPID_H
24 double chi(
int n)
const {
return m_chi[n]; }
25 double prob(
int n)
const {
return m_prob[n]; }
26 double offset(
int n)
const {
return m_offset[n]; }
27 double sigma(
int n)
const {
return m_sigma[n]; }
28 int ndof()
const {
return m_ndof; }
30 int ipmt()
const {
return m_ipmt; }
31 double dt(
int ipar,
int ipmt)
const {
return m_dt[ipar][
ipmt]; }
43 double offsetTof(
unsigned int ispecies,
bool barrel,
unsigned int ipmt,
double betaGamma,
int charge,
double zrhit,
double dt );
44 double offsetTof(
unsigned int ispecies,
int tofid,
double zrhit,
double betaGamma,
int charge,
double dt );
45 double offsetTof(
unsigned int ispecies,
int tofid1,
int tofid2,
double zrhit1,
double zrhit2,
double betaGamma,
int charge,
double dt );
46 double sigmaTof(
unsigned int ispecies,
int charge,
bool barrel,
unsigned int ipmt,
int tofid[2],
double zrhit[2],
double betaGamma );
47 double sigmaTof(
unsigned int ispecies,
int charge,
bool barrel,
unsigned int ipmt,
double zrhit,
double betaGamma );
49 double qCurveFunc(
unsigned int layer,
double betaGamma );
50 double bSigma(
unsigned int end,
int tofid,
double zrhit );
51 double bSigma(
int tofid[2],
double zrhit[2] );
52 double eSigma(
int tofid,
double zrhit );
58 double m_offset[5], m_sigma[5];
60 double m_chimin, m_chimax;
66 double m_dt[5][7], m_dtCorr[5][7], m_sigCorr[5][7], m_chiCorr[5][7];
69 int m_runBegin, m_runEnd;
70 double m_p_weight[176][3][5], m_p_common, m_ec_sigma[96][3];
71 double m_q0_bg[3][5], m_par_ab[5][2][5], m_par_pbar_ab[5][2][5];
72 double m_par_sigma[4][8][12], m_par_sig_mom[3][7][3];
73 double m_p_offset[2][4][10][20], m_p_sigma[2][7][10][20];
74 double m_p_offset_12[2][7][20][46], m_p_sigma_12[2][7][20][46];
75 double m_p_offset_ec12[2][20][7], m_p_sigma_ec12[2][20][7];
77 double m_par_ab_12[2][5][2][2][11];
double dtCorr(int ipar, int ipmt) const
int neuronPIDCalculation()
void inputParameter(int run)
bool IsPidInfoValid() const
double qCurveFunc(unsigned int layer, double betaGamma)
int particleIDCalculation()
double chiCorr(int ipar, int ipmt) const
double sigCorr(int ipar, int ipmt) const
double sigma(int n) const
double offset(int n) const
double sigmaTof(unsigned int ispecies, int charge, bool barrel, unsigned int ipmt, int tofid[2], double zrhit[2], double betaGamma)
double dt(int ipar, int ipmt) const
double bSigma(unsigned int end, int tofid, double zrhit)
double offsetTof(unsigned int ispecies, bool barrel, unsigned int ipmt, double betaGamma, int charge, double zrhit, double dt)
static TofCorrPID * instance()
double eSigma(int tofid, double zrhit)
int LikelihoodCalculation()
bool correlationCheck(unsigned int ipmt)