1#ifndef ParticleID_DedxPID_H
2#define ParticleID_DedxPID_H
26 double chi(
int n)
const {
return m_chi[
n];}
27 double prob(
int n)
const {
return m_prob[
n];}
28 double offset(
int n)
const {
return m_offset[
n];}
29 double sigma(
int n)
const {
return m_sigma[
n];}
30 int ndof()
const {
return m_ndof;}
31 double normPH()
const {
return m_normPH;}
35 void setNhitCutDx(
const int nhitcuthdx = 5) {m_nhitcutdx = nhitcuthdx;}
44 double mypol3(
double x,
double par0,
double par1,
double par2,
double par3);
45 double mypol5(
double x,
double par0,
double par1,
double par2,
double par3,
double par4,
50 double cal_par(
int index1,
double *m_jpsi_pip_ptrk_offset,
double ptrk,
double begin,
double bin);
70 double m_jpsi_kap_ptrk_offset[12];
71 double m_jpsi_kap_ptrk_sigma[12];
72 double m_jpsi_kam_ptrk_offset[12];
73 double m_jpsi_kam_ptrk_sigma[12];
74 double m_jpsi_kap_theta_offset[18];
75 double m_jpsi_kap_theta_sigma[18];
76 double m_jpsi_kam_theta_offset[18];
77 double m_jpsi_kam_theta_sigma[18];
79 double m_jpsi_mc_kap_ptrk_offset[12];
80 double m_jpsi_mc_kap_ptrk_sigma[12];
81 double m_jpsi_mc_kam_ptrk_offset[12];
82 double m_jpsi_mc_kam_ptrk_sigma[12];
83 double m_jpsi_mc_kap_theta_offset[18];
84 double m_jpsi_mc_kap_theta_sigma[18];
85 double m_jpsi_mc_kam_theta_offset[18];
86 double m_jpsi_mc_kam_theta_sigma[18];
90 double m_jpsi_protonp_ptrk_offset[8];
91 double m_jpsi_protonp_ptrk_sigma[8];
92 double m_jpsi_protonm_ptrk_offset[8];
93 double m_jpsi_protonm_ptrk_sigma[8];
94 double m_jpsi_protonp_theta_offset[18];
95 double m_jpsi_protonp_theta_sigma[18];
96 double m_jpsi_protonm_theta_offset[18];
97 double m_jpsi_protonm_theta_sigma[18];
100 double m_jpsi_mc_protonp_ptrk_offset[8];
101 double m_jpsi_mc_protonp_ptrk_sigma[8];
102 double m_jpsi_mc_protonm_ptrk_offset[8];
103 double m_jpsi_mc_protonm_ptrk_sigma[8];
104 double m_jpsi_mc_protonp_theta_offset[18];
105 double m_jpsi_mc_protonp_theta_sigma[18];
106 double m_jpsi_mc_protonm_theta_offset[18];
107 double m_jpsi_mc_protonm_theta_sigma[18];
112 double m_psip_kap_ptrk_offset[9];
113 double m_psip_kap_ptrk_sigma[9];
114 double m_psip_kam_ptrk_offset[9];
115 double m_psip_kam_ptrk_sigma[9];
117 double m_psip_mc_kap_ptrk_offset[9];
118 double m_psip_mc_kap_ptrk_sigma[9];
119 double m_psip_mc_kam_ptrk_offset[9];
120 double m_psip_mc_kam_ptrk_sigma[9];
123 double m_psip_protonp_ptrk_offset[9];
124 double m_psip_protonp_ptrk_sigma[9];
125 double m_psip_protonm_ptrk_offset[9];
126 double m_psip_protonm_ptrk_sigma[9];
128 double m_psip_mc_protonp_ptrk_offset[9];
129 double m_psip_mc_protonp_ptrk_sigma[9];
130 double m_psip_mc_protonm_ptrk_offset[9];
131 double m_psip_mc_protonm_ptrk_sigma[9];
135 double m_psipp_pi_ptrk_offset[18];
136 double m_psipp_pi_ptrk_sigma[18];
137 double m_psipp_pi_theta_offset[16];
138 double m_psipp_pi_theta_sigma[16];
140 double m_psipp_mc_pi_ptrk_offset[18];
141 double m_psipp_mc_pi_ptrk_sigma[18];
142 double m_psipp_mc_pi_theta_offset[16];
143 double m_psipp_mc_pi_theta_sigma[16];
145 double m_psipp_ka_ptrk_offset[17];
146 double m_psipp_ka_ptrk_sigma[17];
147 double m_psipp_ka_theta_offset[16];
148 double m_psipp_ka_theta_sigma[16];
150 double m_psipp_mc_ka_ptrk_offset[17];
151 double m_psipp_mc_ka_ptrk_sigma[17];
152 double m_psipp_mc_ka_theta_offset[16];
153 double m_psipp_mc_ka_theta_sigma[16];
155 double m_psipp_proton_ptrk_offset[18];
156 double m_psipp_proton_ptrk_sigma[18];
157 double m_psipp_proton_theta_offset[18];
158 double m_psipp_proton_theta_sigma[18];
160 double m_psipp_mc_proton_ptrk_offset[9];
161 double m_psipp_mc_proton_ptrk_sigma[9];
162 double m_psipp_mc_proton_theta_offset[18];
163 double m_psipp_mc_proton_theta_sigma[18];
165 double m_offsetCorr[5];
166 double m_sigmaCorr[5];
*******INTEGER m_nBinMax INTEGER m_NdiMax !No of bins in histogram for cell exploration division $ !Last vertex $ !Last active cell $ !Last cell in buffer $ !No of sampling when dividing cell $ !No of function total $ !Flag for random ceel for $ !Flag for type of for WtMax $ !Flag which decides whether vertices are included in the sampling $ entire domain is hyp !Maximum effective eevents per bin
double mypol3(double x, double par0, double par1, double par2, double par3)
double mypol5(double x, double par0, double par1, double par2, double par3, double par4, double par5)
double sigma(int n) const
double offsetCorr(int n, int charge, double ptrk, double cost)
int particleIDCalculation()
int LikelihoodCalculation()
bool IsPidInfoValid() const
double CorrDedx(int n, double ptrk, double cost, double chi, int charge)
double sigmaDedx(int n, double ptrk, double cost)
double iterate(double ptrk, double *mean, double *p)
int neuronPIDCalculation()
double offsetDedx(int n, double ptrk, double cost)
double interpolation(double cost, double *costheta, double *par)
void setNhitCutDx(const int nhitcuthdx=5)
double offset(int n) const
double cal_par(int index1, double *m_jpsi_pip_ptrk_offset, double ptrk, double begin, double bin)
static DedxPID * instance()
double sigmaCorr(int n, int charge, double ptrk, double cost)