103 if (!isChargedPion) {
108 double Epion2 = TMath::Power(Epion,2);
109 double ppi = TMath::Sqrt( TMath::Max(0., Epion2 - mpi2) );
111 if( ppi <= 0.0 )
return 0.0;
114 if( get_total ) out = 0;
117 const double M_pi = mpi;
119 const double pi =
kPi;
130 double epi = TMath::Sqrt(M_pi*M_pi + ppi*ppi);
131 double sx = M_p*M_p + M_pi*M_pi + 2.0 * epi * M_p;
132 double Wx = TMath::Sqrt(sx);
134 double s12x = TMath::Sqrt((sx - TMath::Power((M_pi+M_p),2)) * (sx - (M_pi-M_p)*(M_pi-M_p)));
135 double ppistx = s12x/2.0/Wx;
138 double arg1 = (Wdel*Wdel - (M_p + M_pi)*(M_p + M_pi))*(Wdel*Wdel - (M_p -M_pi)*(M_p -M_pi));
139 if(arg1<=0) arg1 = 0.0;
140 double gamx = 0.15 * TMath::Power((6.0*ppistx),3) / (1.0 + (6*ppistx)*(6*ppistx));
141 double bwnrx = 1.0 / (4.0*(Wx - Wdel)*(Wx - Wdel) + gamx*gamx);
142 double f1x = afit * 0.3892 * 8.0 * pi / (ppistx*ppistx) * gamx*gamx * bwnrx;
143 double f4x = afit4 * 0.3892 * 8.0 * pi / (ppistx*ppistx) * gamx*gamx * bwnrx;
147 double arg2 = (Wres2*Wres2 - (M_p+M_pi)*(M_p+M_pi)) * (Wres2*Wres2 - (M_p - M_pi)*(M_p - M_pi));
148 if(arg2<=0) arg2 = 0.0;
149 double pp2 = TMath::Sqrt(arg2)/2.0/Wres2;
150 double gam2x = Gres2 * TMath::Power((ppistx/pp2),3);
151 double bwnr2x = 1.0 / (4.0 * (Wx-Wres2)*(Wx-Wres2) + gam2x*gam2x);
152 double f2x = afit2 * 0.3892 * 8.0 * pi / (ppistx*ppistx) * gam2x*gam2x * bwnr2x;
156 double arg3 = (Wres3*Wres3 - (M_p+M_pi)*(M_p+M_pi)) * (Wres3*Wres3 - (M_p - M_pi)*(M_p - M_pi));
157 if(arg3<=0) arg3 = 0.0;
158 double pp3 = TMath::Sqrt(arg3)/2.0/Wres3;
159 double gam3x = Gres3 * TMath::Power((ppistx/pp3),3);
160 double bwnr3x = 1.0 / (4.0 * (Wx-Wres3)*(Wx-Wres3) + gam3x*gam3x);
161 double f3x = afit3 * 0.3892 * 8.0 * pi / (ppistx*ppistx) * gam3x*gam3x * bwnr3x;
165 double arg5 = (Wres5*Wres5 - (M_p+M_pi)*(M_p+M_pi)) * (Wres5*Wres5 - (M_p - M_pi)*(M_p - M_pi));
166 if(arg5<=0) arg5 = 0.0;
167 double pp5 = TMath::Sqrt(arg5)/2.0/Wres5;
168 double gam5x = Gres5 * (ppistx/pp5);
169 double bwnr5x = 1.0 / (4.0 * (Wx-Wres5)*(Wx-Wres5) + gam5x*gam5x);
170 double f5x = afit5 * 0.3892 * 8.0 * pi / (ppistx*ppistx) * gam5x*gam5x * bwnr5x;
173 double Gres6 = 0.140;
174 double arg6 = (Wres6*Wres6 - (M_p+M_pi)*(M_p+M_pi)) * (Wres6*Wres6 - (M_p - M_pi)*(M_p - M_pi));
175 if(arg6<=0) arg6 = 0.0;
176 double pp6 = TMath::Sqrt(arg6)/2.0/Wres6;
177 double gam6x = Gres6 * (ppistx/pp6);
178 double bwnr6x = 1.0 / (4.0 * (Wx-Wres6)*(Wx-Wres6) + gam6x*gam6x);
179 double f6x = afit6 * 0.3892 * 8.0 * pi / (ppistx*ppistx) * gam6x*gam6x * bwnr6x;
183 double bgplusx = 0.834 * ppi + 1.77 * ppi*ppi;
184 double sigplusx = f1x + 0.86 * f2x + 0.7 * f3x + bgplusx;
185 if(ppi>1.9) sigplusx = 20.1 + 15.4 / TMath::Sqrt(ppi);
186 double bgminx = 17.8 * ppi + 6.22 * ppi*ppi - 3.1 * ppi*ppi*ppi;
187 double sigminx = 0.94 * f4x + 0.65 *f5x + 0.61 * f6x + bgminx;
188 if(ppi>1.2) sigminx = 21.64 + 17.29 / TMath::Sqrt(ppi);
189 double sigma_t = (sigplusx + sigminx) / 2.0;
192 double sgpelx = f1x + 0.411 * f2x;
193 if(ppi>1.9) sgpelx = 2.38 + 17.55 / ppi;
194 double sgmelx = 0.275 * f4x + 0.268 * f5x + 0.281 * f6x + 11.83 * ppi - 3.39 * ppi*ppi;
195 if(ppi>1.5) sgmelx = 3.4 + 11.35 / ppi;
196 double sigma_el = (sgpelx + sgmelx) / 2.0;
static const double kPi0Mass
static constexpr double mb
static const double kPionMass
static const double kProtonMass
static const double kPionMass2