40 model_name=
"DsToKpPipPimPi0";
112 mass_Pion_N = 0.134977;
114 mass_Kaon = 0.493677;
126 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
128 { { {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
129 {{0,0,0,0}, {0,0,0,0}, {0,0,0,1}, {0,0,-1,0}},
130 {{0,0,0,0}, {0,0,0,-1}, {0,0,0,0}, {0,1,0,0} },
131 {{0,0,0,0}, {0,0,1,0}, {0,-1,0,0}, {0,0,0,0} } },
132 { {{0,0,0,0}, {0,0,0,0}, {0,0,0,-1}, {0,0,1,0} },
133 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
134 {{0,0,0,1}, {0,0,0,0}, {0,0,0,0}, {-1,0,0,0}},
135 {{0,0,-1,0}, {0,0,0,0}, {1,0,0,0}, {0,0,0,0} } },
136 { {{0,0,0,0}, {0,0,0,1}, {0,0,0,0}, {0,-1,0,0}},
137 {{0,0,0,-1}, {0,0,0,0}, {0,0,0,0}, {1,0,0,0} },
138 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
139 {{0,1,0,0}, {-1,0,0,0}, {0,0,0,0}, {0,0,0,0} } },
140 { {{0,0,0,0}, {0,0,-1,0}, {0,1,0,0}, {0,0,0,0} },
141 {{0,0,1,0}, {0,0,0,0}, {-1,0,0,0}, {0,0,0,0} },
142 {{0,-1,0,0}, {1,0,0,0}, {0,0,0,0}, {0,0,0,0} },
143 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} } } };
144 for (
int i=0; i<4; i++) {
145 for (
int j=0; j<4; j++) {
147 for (
int k=0; k<4; k++) {
148 for (
int l=0; l<4; l++) {
149 E[i][j][k][l] = EE[i][j][k][l];
212 double Pip[4],Pim[4],Kp[4],
Pi0[4];
215 Kp[0] = kp.
get(0); Pip[0] = pip.
get(0); Pim[0] = pim.
get(0);
Pi0[0] = pi0.
get(0);
216 Kp[1] = kp.
get(1); Pip[1] = pip.
get(1); Pim[1] = pim.
get(1);
Pi0[1] = pi0.
get(1);
217 Kp[2] = kp.
get(2); Pip[2] = pip.
get(2); Pim[2] = pim.
get(2);
Pi0[2] = pi0.
get(2);
218 Kp[3] = kp.
get(3); Pip[3] = pip.
get(3); Pim[3] = pim.
get(3);
Pi0[3] = pi0.
get(3);
222 int modetype[11]= {1,1,2,10,12,11,16,17,14,2,15};
223 int g0[11] = {1,1,1,1,1,1,1,1,1,0,0};
224 int g1[11] = {1,1,1,1,1,1,1,1,1,1,0};
225 int g2[11] = {0,1,1,0,0,0,0,0,1,0,0};
226 double mass1[11] = {mKst0,mKst0,mKstp,mK1270,mKstp,mKst0,mA1,mA1,mOmega,mKst0,mKst0};
227 double mass2[11] = {mrho,mrho,mrho0,mrho,mK1400,mK1400,mrho,mrho,mrho,mrho,mrho};
228 double width1[11] = {GKst0,GKst0,GKstp,GK1270,GKstp,GKst0,GA1,GA1,GOmega,GKst0,GKst0};
229 double width2[11] = {Grho,Grho,Grho0,Grho,GK1400,GK1400,Grho,Grho,Grho,mrho,mrho};
231 calEvaMy(Kp,Pip,Pim,
Pi0,mass1,mass2,width1,width2,rho,phi,g0,
g1,g2,modetype,nstates,value,q1270);
236double EvtDsToKpPipPimPi0::CalRho4pi(
double s)
239 return sqrt((
s-16.*mass_Pion*mass_Pion)/
s);
258TComplex EvtDsToKpPipPimPi0::ResonanceSkm(
double &
m2)
260 double g11 = 0.22889, g12 = -0.55377, g13 = 0.00, g14 = -0.39899, g15 = -0.34639;
261 double g21 = 0.94128, g22 = 0.55095, g23 = 0.00, g24 = 0.39065, g25 = 0.31503;
262 double g31 = 0.36856, g32 = 0.23888, g33 = 0.55639, g34 = 0.18340, g35 = 0.18681;
263 double g41 = 0.33650, g42 = 0.40907, g43 = 0.85679, g44 = 0.19906, g45 = -0.00984;
264 double g51 = 0.18171, g52 = -0.17558, g53 = -0.79658, g54 = -0.00355, g55 = 0.22358;
265 double fs11 = 0.23399, fs12 = 0.15044, fs13 =-0.20545, fs14 = 0.32825, fs15 = 0.35412;
266 double m_1 = 0.65100, m_2 = 1.20360, m_3 = 1.55817, m_4 = 1.21000, m_5 = 1.82206;
267 double ss0 = -3.92637;
271 const double mass_Eta = 0.547862;
272 const double mass_Etap = 0.95778;
274 double km11 = (g11*g11/(m_1*m_1-
m2)+g21*g21/(m_2*m_2-
m2)+g31*g31/(m_3*m_3-
m2)+g41*g41/(m_4*m_4-
m2)+g51*g51/(m_5*m_5-
m2)+fs11*(1-ss0)/(
m2-ss0))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
275 double km12 = (g11*g12/(m_1*m_1-
m2)+g21*g22/(m_2*m_2-
m2)+g31*g32/(m_3*m_3-
m2)+g41*g42/(m_4*m_4-
m2)+g51*g52/(m_5*m_5-
m2)+fs12*(1-ss0)/(
m2-ss0))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
276 double km13 = (g11*g13/(m_1*m_1-
m2)+g21*g23/(m_2*m_2-
m2)+g31*g33/(m_3*m_3-
m2)+g41*g43/(m_4*m_4-
m2)+g51*g53/(m_5*m_5-
m2)+fs13*(1-ss0)/(
m2-ss0))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
277 double km14 = (g11*g14/(m_1*m_1-
m2)+g21*g24/(m_2*m_2-
m2)+g31*g34/(m_3*m_3-
m2)+g41*g44/(m_4*m_4-
m2)+g51*g54/(m_5*m_5-
m2)+fs14*(1-ss0)/(
m2-ss0))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
278 double km15 = (g11*g15/(m_1*m_1-
m2)+g21*g25/(m_2*m_2-
m2)+g31*g35/(m_3*m_3-
m2)+g41*g45/(m_4*m_4-
m2)+g51*g55/(m_5*m_5-
m2)+fs15*(1-ss0)/(
m2-ss0))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
279 double km21 = km12, km31 = km13, km41 = km14, km51 = km15;
280 double km23 = (g12*g13/(m_1*m_1-
m2)+g22*g23/(m_2*m_2-
m2)+g32*g33/(m_3*m_3-
m2)+g42*g43/(m_4*m_4-
m2)+g52*g53/(m_5*m_5-
m2))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
281 double km24 = (g12*g14/(m_1*m_1-
m2)+g22*g24/(m_2*m_2-
m2)+g32*g34/(m_3*m_3-
m2)+g42*g44/(m_4*m_4-
m2)+g52*g54/(m_5*m_5-
m2))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
282 double km25 = (g12*g15/(m_1*m_1-
m2)+g22*g25/(m_2*m_2-
m2)+g32*g35/(m_3*m_3-
m2)+g42*g45/(m_4*m_4-
m2)+g52*g55/(m_5*m_5-
m2))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
283 double km32 = km23, km42 = km24, km52 = km25;
284 double km34 = (g13*g14/(m_1*m_1-
m2)+g23*g24/(m_2*m_2-
m2)+g33*g34/(m_3*m_3-
m2)+g43*g44/(m_4*m_4-
m2)+g53*g54/(m_5*m_5-
m2))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
285 double km35 = (g13*g15/(m_1*m_1-
m2)+g23*g25/(m_2*m_2-
m2)+g33*g35/(m_3*m_3-
m2)+g43*g45/(m_4*m_4-
m2)+g53*g55/(m_5*m_5-
m2))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
286 double km43 = km34, km53 = km35;
287 double km45 = (g14*g15/(m_1*m_1-
m2)+g24*g25/(m_2*m_2-
m2)+g34*g35/(m_3*m_3-
m2)+g44*g45/(m_4*m_4-
m2)+g54*g55/(m_5*m_5-
m2))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
289 double km22 = (g12*g12/(m_1*m_1-
m2)+g22*g22/(m_2*m_2-
m2)+g32*g32/(m_3*m_3-
m2)+g42*g42/(m_4*m_4-
m2)+g52*g52/(m_5*m_5-
m2))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
290 double km33 = (g13*g13/(m_1*m_1-
m2)+g23*g23/(m_2*m_2-
m2)+g33*g33/(m_3*m_3-
m2)+g43*g43/(m_4*m_4-
m2)+g53*g53/(m_5*m_5-
m2))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
291 double km44 = (g14*g14/(m_1*m_1-
m2)+g24*g24/(m_2*m_2-
m2)+g34*g34/(m_3*m_3-
m2)+g44*g44/(m_4*m_4-
m2)+g54*g54/(m_5*m_5-
m2 ))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
292 double km55 = (g15*g15/(m_1*m_1-
m2)+g25*g25/(m_2*m_2-
m2)+g35*g35/(m_3*m_3-
m2)+g45*g45/(m_4*m_4-
m2)+g55*g55/(m_5*m_5-
m2 ))*(1-sA0)/(
m2-sA0)*(
m2-sA*mass_Pion*mass_Pion*0.5);
298 TComplex P1 = fp11*(1-sp0)/(
m2-sp0)+beta1*g11/(m_1*m_1-
m2)+beta2*g21/(m_2*m_2-
m2)+beta3*g31/(m_3*m_3-
m2)+beta4*g41/(m_4*m_4-
m2)+beta5*g51/(m_5*m_5-
m2);
299 TComplex P2 = fp12*(1-sp0)/(
m2-sp0)+beta1*g12/(m_1*m_1-
m2)+beta2*g22/(m_2*m_2-
m2)+beta3*g32/(m_3*m_3-
m2)+beta4*g42/(m_4*m_4-
m2)+beta5*g52/(m_5*m_5-
m2);
300 TComplex P3 = fp13*(1-sp0)/(
m2-sp0)+beta1*g13/(m_1*m_1-
m2)+beta2*g23/(m_2*m_2-
m2)+beta3*g33/(m_3*m_3-
m2)+beta4*g43/(m_4*m_4-
m2)+beta5*g53/(m_5*m_5-
m2);
301 TComplex P4 = fp14*(1-sp0)/(
m2-sp0)+beta1*g14/(m_1*m_1-
m2)+beta2*g24/(m_2*m_2-
m2)+beta3*g34/(m_3*m_3-
m2)+beta4*g44/(m_4*m_4-
m2)+beta5*g54/(m_5*m_5-
m2);
302 TComplex P5 = fp15*(1-sp0)/(
m2-sp0)+beta1*g15/(m_1*m_1-
m2)+beta2*g25/(m_2*m_2-
m2)+beta3*g35/(m_3*m_3-
m2)+beta4*g45/(m_4*m_4-
m2)+beta5*g55/(m_5*m_5-
m2);
304 TMatrixD MI(5,5), MA(5,5), MA_invt(5,5), MB(5,5), KM(5,5), RhoA(5,5), RhoB(5,5), MRe(5,5), MIm(5,5);
309 TMatrixDRow(KM,0)(0) = km11;TMatrixDRow(KM,1)(0) = km21;TMatrixDRow(KM,2)(0) = km31;TMatrixDRow(KM,3)(0) = km41;TMatrixDRow(KM,4)(0)= km51;
310 TMatrixDRow(KM,0)(1) = km12;TMatrixDRow(KM,1)(1) = km22;TMatrixDRow(KM,2)(1) = km32;TMatrixDRow(KM,3)(1) = km42;TMatrixDRow(KM,4)(1)= km52;
311 TMatrixDRow(KM,0)(2) = km13;TMatrixDRow(KM,1)(2) = km23;TMatrixDRow(KM,2)(2) = km33;TMatrixDRow(KM,3)(2) = km43;TMatrixDRow(KM,4)(2)= km53;
312 TMatrixDRow(KM,0)(3) = km14;TMatrixDRow(KM,1)(3) = km24;TMatrixDRow(KM,2)(3) = km34;TMatrixDRow(KM,3)(3) = km44;TMatrixDRow(KM,4)(3)= km54;
313 TMatrixDRow(KM,0)(4) = km15;TMatrixDRow(KM,1)(4) = km25;TMatrixDRow(KM,2)(4) = km35;TMatrixDRow(KM,3)(4) = km45;TMatrixDRow(KM,4)(4)= km55;
315 TMatrixDRow(RhoA,0)(0) = sqrt(1.0-4.0*mass_Pion*mass_Pion/
m2);
316 TMatrixDRow(RhoB,0)(0) = 0.0;
317 if ( (1.0-4.0*mass_Kaon*mass_Kaon/
m2) > 0) {
318 TMatrixDRow(RhoA,1)(1) = sqrt(1.0-4.0*mass_Kaon*mass_Kaon/
m2);
319 TMatrixDRow(RhoB,1)(1) = 0.0;
322 TMatrixDRow(RhoA,1)(1) = 0.0;
323 TMatrixDRow(RhoB,1)(1) = sqrt(4.0*mass_Kaon*mass_Kaon/
m2-1.0);
325 TMatrixDRow(RhoA,2)(2) = CalRho4pi(
m2);
326 TMatrixDRow(RhoB,2)(2) = 0.0;
327 if ( (1.0-4.0*mass_Eta*mass_Eta/
m2) > 0) {
328 TMatrixDRow(RhoA,3)(3) = sqrt(1.0-4.0*mass_Eta*mass_Eta/
m2);
329 TMatrixDRow(RhoB,3)(3) = 0.0;
331 TMatrixDRow(RhoA,3)(3) = 0.0;
332 TMatrixDRow(RhoB,3)(3) = sqrt(4.0*mass_Eta*mass_Eta/
m2-1.0);
334 TMatrixDRow(RhoA,4)(4) = 0.0;
335 TMatrixDRow(RhoB,4)(4) = sqrt((mass_Eta + mass_Etap)*(mass_Eta + mass_Etap)/
m2-1.0);
341 MRe = MA+MB*MA_invt*MB;
343 MIm = MA_invt*MB*MRe;
347 amp = (ciR*TMatrixDRow(MRe,0)(0)-ciM*TMatrixDRow(MIm,0)(0))*P1+
348 (ciR*TMatrixDRow(MRe,0)(1)-ciM*TMatrixDRow(MIm,0)(1))*P2+
349 (ciR*TMatrixDRow(MRe,0)(2)-ciM*TMatrixDRow(MIm,0)(2))*P3+
350 (ciR*TMatrixDRow(MRe,0)(3)-ciM*TMatrixDRow(MIm,0)(3))*P4+
351 (ciR*TMatrixDRow(MRe,0)(4)-ciM*TMatrixDRow(MIm,0)(4))*P5;
354void EvtDsToKpPipPimPi0::KPiSLASS(
double sa,
double sb,
double sc,
double prop[2]) {
355 const double m1430 = 1.463;
356 const double sa0 = 2.140369;
357 const double w1430 = 0.233;
358 const double Lass1 = 0.25/sa0;
360 double tmp1 = sa0+tmp;
361 double q0 = Lass1*tmp1*tmp1-sb;
363 double tmp2 = sa+tmp;
364 double qs = 0.25*tmp2*tmp2/sa-sb;
366 double width = w1430*
q*m1430/sqrt(sa*q0);
367 double temp_R = atan(m1430*width/(sa0-sa));
368 if(temp_R<0) temp_R += math_pi;
369 double deltaR = -5.31 + temp_R;
370 double temp_F = atan(2.14*
q/(2.0-1.926*qs));
371 if(temp_F<0) temp_F += math_pi;
372 double deltaF = 2.33 + temp_F;
373 double deltaS = deltaR + 2.0*deltaF;
374 double t1 = 0.8*
sin(deltaF);
375 double t2 =
sin(deltaR);
381 prop[0] = t1*CF[0] + t2*
CS[0];
382 prop[1] = t1*CF[1] + t2*
CS[1];
386void EvtDsToKpPipPimPi0::Com_Multi(
double a1[2],
double a2[2],
double res[2]){
387 res[0] = a1[0]*a2[0]-a1[1]*a2[1];
388 res[1] = a1[1]*a2[0]+a1[0]*a2[1];
390void EvtDsToKpPipPimPi0::Com_Divide(
double a1[2],
double a2[2],
double res[2]){
391 res[0] = (a1[0]*a2[0]+a1[1]*a2[1])/(a2[0]*a2[0]+a2[1]*a2[1]);
392 res[1] = (a1[1]*a2[0]-a1[0]*a2[1])/(a2[0]*a2[0]+a2[1]*a2[1]);
394double EvtDsToKpPipPimPi0::SCADot(
double a1[4],
double a2[4])
397 _cal = a1[0]*a2[0]-a1[1]*a2[1]-a1[2]*a2[2]-a1[3]*a2[3];
400double EvtDsToKpPipPimPi0::barrier(
int l,
double sa,
double sb,
double sc,
double r,
double mass)
402 double q = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
410 double q0 = (sa0+sb-sc)*(sa0+sb-sc)/(4*sa0)-sb;
416 if(l == 1) F = sqrt((1+z0)/(1+z));
417 if(l == 2) F = sqrt((9+3*z0+z0*z0)/(9+3*z+z*z));
422void EvtDsToKpPipPimPi0::calt1(
double daug1[4],
double daug0[4],
double t1[4]){
425 for(
int i=0; i<4; i++){
426 pa[i] = daug1[i] + daug0[i];
427 qa[i] = daug1[i] - daug0[i];
431 for(
int i=0; i<4; i++){
432 t1[i] = qa[i] - pq/p*pa[i];
435void EvtDsToKpPipPimPi0::calt2(
double daug1[4],
double daug0[4],
double t2[4][4]){
438 calt1(daug1,daug0,t1);
439 r = SCADot(t1,t1)/3.0;
440 for(
int i=0; i<4; i++) {
441 pa[i] = daug1[i] + daug0[i];
444 for(
int i=0; i<4; i++) {
445 for(
int j=0; j<4; j++) {
446 t2[i][j] = t1[i]*t1[j] - r*(G[i][j]-pa[i]*pa[j]/p);
451double EvtDsToKpPipPimPi0::wid(
double mass2,
double mass,
double sa,
double sb,
double sc,
double r,
int l){
455 double tmp1 = sa+tmp;
456 double q = 0.25*tmp1*tmp1/sa-sb;
459 double tmp2 = mass2+tmp;
460 double q0 = 0.25*tmp2*tmp2/mass2-sb;
466 if(l == 0) {widm = sqrt(
t)*
mass/m;}
467 else if(l == 1) {widm =
t*sqrt(
t)*
mass/m*(1+z0)/(1+z);}
468 else if(l == 2) {widm =
t*
t*sqrt(
t)*
mass/m*(9+3*z0+z0*z0)/(9+3*z+z*z);}
472double EvtDsToKpPipPimPi0::widl1(
double mass2,
double mass,
double sa,
double sb,
double sc,
double r)
477 double tmp1 = sa+tmp;
478 double q = 0.25*tmp1*tmp1/sa-sb;
481 double tmp2 = mass2+tmp;
482 double q0 = 0.25*tmp2*tmp2/mass2-sb;
487 double F = (1+z0)/(1+z);
489 widm =
t*sqrt(
t)*
mass/m*F;
493void EvtDsToKpPipPimPi0::propagatorNBW(
double mass2,
double mass,
double width,
double sa,
double sb,
double sc,
double r,
int l,
double prop[2]){
499 Com_Divide(a,
b,prop);
502void EvtDsToKpPipPimPi0::propagatorRBW(
double mass2,
double mass,
double width,
double sa,
double sb,
double sc,
double r,
int l,
double prop[2]){
507 b[1] = -
mass*width*wid(mass2,
mass,sa,sb,sc,r,l);
508 Com_Divide(a,
b,prop);
510void EvtDsToKpPipPimPi0::propagatorRBWl1(
double mass2,
double mass,
double width,
double sa,
double sb,
double sc,
double r,
double prop[2])
517 b[1] = -
mass*width*widl1(mass2,
mass,sa,sb,sc,r);
518 Com_Divide(a,
b,prop);
521void EvtDsToKpPipPimPi0::propagatorGS(
double mass2,
double mass,
double width,
double sa,
double sb,
double sc,
double r,
double prop[2])
525 double tmp1 = sa+tmp;
526 double q2 = 0.25*tmp1*tmp1/sa-sb;
530 double tmp2 = mass2+tmp;
531 double q02 = 0.25*tmp2*tmp2/mass2-sb;
533 if(q02<0) q02 = -q02;
536 double q0 = sqrt(q02);
539 double tmp3 = log(
mass+2*q0)+1.2760418309;
541 double h = GS1*
q/m*(log(m+2*
q)+1.2760418309);
542 double h0 = GS1*q0/
mass*tmp3;
543 double dh = h0*(0.125/q02-0.5/mass2)+GS3/mass2;
544 double d = GS2/q02*tmp3+GS3*
mass/q0-GS4*
mass/q03;
545 double f = mass2/q03*(q2*(h-h0)+(mass2-sa)*q02*dh);
547 a[0] = 1.0+d*width/
mass;
549 b[0] = mass2-sa+width*
f;
550 b[1] = -
mass*width*widl1(mass2,
mass,sa,sb,sc,r);
551 Com_Divide(a,
b,prop);
553void EvtDsToKpPipPimPi0::calEvaMy(
554 double* Kp,
double* Pip,
double* Pim,
double*
Pi0,
555 double* mass1,
double* mass2,
556 double* width1,
double* width2,
557 double* amp,
double* phase,
558 int* g0,
int*
g1,
int* g2,
559 int* modetype,
int nstates,
double & Result,
double & q1270)
566 spipi = (Pip[0]+Pim[0])*(Pip[0]+Pim[0])-
567 (Pip[1]+Pim[1])*(Pip[1]+Pim[1])-
568 (Pip[2]+Pim[2])*(Pip[2]+Pim[2])-
569 (Pip[3]+Pim[3])*(Pip[3]+Pim[3]);
570 tmpswave = ResonanceSkm(spipi);
571 double realpipis = tmpswave.Re();
572 double imagpipis = tmpswave.Im();
574 double pKstr0[4],pKstrp[4],prhop[4],prhom[4],prho0[4],pK11[4],pK12[4],pK13[4],pA1[4],pD[4],pomega[4];
575 for(
int i=0;i!=4;i++){
576 prhop[i] =Pip[i]+
Pi0[i];
577 prhom[i] =Pim[i]+
Pi0[i];
578 prho0[i] =Pim[i]+Pip[i];
579 pKstr0[i] =Kp[i]+Pim[i];
580 pKstrp[i] =Kp[i]+
Pi0[i];
581 pK11[i] =pKstr0[i]+
Pi0[i];
582 pK12[i] =Kp[i]+Pim[i];
583 pK13[i] =pKstr0[i]+Pip[i];
584 pA1[i] =prhop[i]+Pim[i];
585 pomega[i] =Pim[i]+Pip[i]+
Pi0[i];
586 pD[i] =pKstr0[i]+prhop[i];
588 double spi0,spionp,spionm,skaon,srhop,srhom,srho0,sKst0,sKstp,sk11,sk12,sk13,sa1,sD,somega;
590 skaon = SCADot(Kp,Kp);
591 spionp = SCADot(Pip,Pip);
592 spionm = SCADot(Pim,Pim);
595 srhop = SCADot(prhop,prhop);
596 srhom = SCADot(prhom,prhom);
597 srho0 = SCADot(prho0,prho0);
598 somega = SCADot(pomega,pomega);
600 sKst0 = SCADot(pKstr0,pKstr0);
601 sKstp = SCADot(pKstrp,pKstrp);
602 sk11 = SCADot(pK11,pK11);
603 sk12 = SCADot(pK12,pK12);
604 sk13 = SCADot(pK13,pK13);
605 sa1 = SCADot(pA1,pA1);
608 double t2A1[4][4],t2A2[4][4],t2A3[4][4],t1rhom[4],t1rhop[4],t1rho0[4],t1Kst0[4],t1Kstp[4],t2k11[4][4],t2k12[4][4];
609 double t1K1_KPi[4],t2k21[4][4],t2k22[4][4],t1A3[4];
610 calt1(Pip,
Pi0,t1rhop);
611 calt1(Pim,
Pi0,t1rhom);
612 calt1(Pim,Pip,t1rho0);
614 calt1(Kp,Pim,t1Kst0);
615 calt1(Kp,
Pi0,t1Kstp);
616 calt1(Kp,Pim,t1K1_KPi);
618 calt1(prho0,
Pi0,t1A3);
620 calt2(prhop,Pim,t2A1);
621 calt2(prhom,Pip,t2A2);
622 calt2(prho0,
Pi0,t2A3);
624 calt2(pKstr0,
Pi0,t2k11);
625 calt2(pKstrp,Pim,t2k12);
627 calt2(prhom,Kp,t2k21);
628 calt2(prho0,Kp,t2k22);
630 double B_rhop =-1.0, B_rhom =-1.0, B_Kst0rhop1 =-1.0, B_Kst0rhop2=-1.0;
631 double B_Kst0 =-1.0, B_K1_KPi =-1.0, B_K1rhop1 =-1.0, B_K1rhop2 =-1.0;
632 double B_Kstp =-1.0, B_K1rho =-1.0, B_D_K1rho =-1.0, B_RhopKs1 =-1.0;
633 double B_K1_Kst0pi0=-1.0, B_D_K1Pi =-1.0, B_K1_Kstppim=-1.0,B_K1Kstp2 =-1.0 ;
634 double B_D_A1 = -1.0, B_D_A2 =-1.0, B_rho0 =-1.0, B_Rho0Ks1 =-1.0;
635 double B_K1PiPi = -1.0, B_K14_1 =-1.0, B_K14_2 =-1.0;
636 double B_Kstprho01 =-1.0, B_Kstprho02=-1.0;
638 double cof[2],amp_tmp[2],amp_PDF[2], PDF[2];
641 double mass1sq,mass2sq,tt1,tt2,tt21,tt22,tt23,tt3,qqq=10,qqq0=10,nq=0;
642 double temp_PDF, tmp1,tmp3,temp_PDF1;
643 double pro[2], pro0[2], pro1[2],pro2[2],pro3[2],pro4[2];
644 double t1D[4],t2D[4][4],t1Ds_omega[4],B1_Ds_omega,B1_1V23;
645 int isKstp=0.0, isKst0=0.0, isRhop=0.0,isRhom=0.0,isRho0=0.0,isKpPim_S=0.0,isPipPi0_S=0.0,isf0=0.0,isPipPim_S=0.0;
646 double proRhop[2], proRhom[2],proRho0[2],proKstp[2], proKst0[2],proKPi_S[2],proPiPi_S[2],prof0[2];
647 double temp_PDF11, temp_PDF12, temp_PDF13;
648 double pro0_11[2],pro0_12[2],pro0_13[2];
649 double pro_11[2],pro_12[2],pro_13[2];
651 for(
int i=0; i<nstates; i++){
657 cof[0] = amp[i]*
cos(phase[i]);
658 cof[1] = amp[i]*
sin(phase[i]);
659 mass1sq = mass1[i]*mass1[i];
660 mass2sq = mass2[i]*mass2[i];
663 if (B_Kst0<0.0) B_Kst0 = barrier(1,sKst0,skaon,spionm,rRes1,mass1[i]);
664 if (B_rhop<0.0) B_rhop = barrier(1,srhop,spionp,spi0,rRes1,mass2[i]);
666 for(
int w=0;
w<4;
w++){
667 temp_PDF += G[
w][
w]*t1Kst0[
w]*t1rhop[
w];
669 tmp1 = B_Kst0*B_rhop*temp_PDF;
672 calt1(pKstr0,prhop,t1D);
673 for(
int w=0;
w<4;
w++){
675 for(
int j=0; j<4; j++){
677 for(
int k=0; k<4; k++){
678 tt3=t1Kst0[k]*G[k][k];
679 for(
int l=0; l<4; l++){
680 temp_PDF += E[
w][j][k][l]*tt1*tt2*tt3*t1rhop[l]*G[l][l];
686 B_Kst0rhop1 = barrier(1,sD,sKst0,srhop,rD2,mDsM);
687 tmp1 = B_Kst0*B_rhop*B_Kst0rhop1*temp_PDF;
691 calt2(pKstr0,prhop,t2D);
692 for(
int w=0;
w<4;
w++){
693 tt1=t1Kst0[
w]*G[
w][
w];
694 for(
int j=0; j<4; j++){
695 temp_PDF += t2D[
w][j]*t1rhop[j]*G[j][j]*tt1;
698 if (B_Kst0rhop2<0.0){
699 B_Kst0rhop2 = barrier(2,sD,sKst0,srhop,rD2,mDsM);
700 tmp1 = B_Kst0*B_rhop*B_Kst0rhop2*temp_PDF;
704 propagatorGS(mass2sq,mass2[i],width2[i],srhop,spionp,spi0,rRes1,proRhop);
707 if(g0[i]==1){ propagatorRBWl1(mass1sq,mass1[i],width1[i],sKst0,skaon,spionm,rRes1,pro0);}
708 else if(g0[i]==0){ pro0[0] = 1; pro0[1] = 0;}
709 if(
g1[i]==1){ pro1[0] = proRhop[0]; pro1[1] = proRhop[1];}
710 else if(
g1[i]==0){ pro1[0] = 1; pro1[1] = 0;}
711 Com_Multi(pro0,pro1,pro);
712 amp_tmp[0] = tmp1*pro[0];
713 amp_tmp[1] = tmp1*pro[1];
716 if (B_Kstp<0.0) B_Kstp = barrier(1,sKstp,skaon,spi0,rRes1,mass1[i]);
717 if (B_rho0<0.0) B_rho0 = barrier(1,srho0,spionp,spionm,rRes1,mass2[i]);
719 for(
int w=0;
w<4;
w++){
720 temp_PDF += G[
w][
w]*t1Kstp[
w]*t1rho0[
w];
722 tmp1 = B_Kstp*B_rho0*temp_PDF;
725 calt1(pKstrp,prho0,t1D);
726 for(
int w=0;
w<4;
w++){
728 for(
int j=0; j<4; j++){
730 for(
int k=0; k<4; k++){
731 tt3=t1Kstp[k]*G[k][k];
732 for(
int l=0; l<4; l++){
733 temp_PDF += E[
w][j][k][l]*tt1*tt2*tt3*t1rho0[l]*G[l][l];
739 B_Kstprho01 = barrier(1,sD,sKstp,srho0,rD2,mDsM);
740 tmp1 = B_Kstp*B_rho0*B_Kstprho01*temp_PDF;
744 calt2(pKstrp,prho0,t2D);
745 for(
int w=0;
w<4;
w++){
746 tt1=t1Kstp[
w]*G[
w][
w];
747 for(
int j=0; j<4; j++){
748 temp_PDF += t2D[
w][j]*t1rho0[j]*G[j][j]*tt1;
751 if (B_Kstprho02<0.0){
752 B_Kstprho02 = barrier(2,sD,sKstp,srho0,rD2,mDsM);
753 tmp1 = B_Kstp*B_rho0*B_Kstprho02*temp_PDF;
757 propagatorGS(mass2sq,mass2[i],width2[i],srho0,spionp,spionm,rRes1,proRho0);
760 if(g0[i]==1){ propagatorRBWl1(mass1sq,mass1[i],width1[i],sKstp,skaon,spi0,rRes1,pro0);}
761 else if(g0[i]==0){ pro0[0] = 1; pro0[1] = 0;}
762 if(
g1[i]==1){ pro1[0] = proRho0[0]; pro1[1] = proRho0[1];}
763 else if(
g1[i]==0){ pro1[0] = 1; pro1[1] = 0;}
764 Com_Multi(pro0,pro1,pro);
765 amp_tmp[0] = tmp1*pro[0];
766 amp_tmp[1] = tmp1*pro[1];
768else if(modetype[i]==6){
769 if(B_D_A1<0.0) B_D_A1 = barrier(1,sD,sa1,skaon,rD2,mDsM);
770 if(B_rhop<0.0) B_rhop = barrier(1,srhop,spionp,spi0,rRes1,mass2[i]);
773 for(
int w=0;
w<4;
w++){
774 tt1 = t1D[
w]*G[
w][
w];
775 for(
int j=0; j<4; j++){
776 temp_PDF += tt1*(G[
w][j]-pA1[
w]*pA1[j]/sa1)*t1rhop[j]*G[j][j];
779 tmp1 = B_rhop*B_D_A1*temp_PDF;
782 for(
int w=0;
w<4;
w++){
784 for(
int j=0; j<4; j++){
785 temp_PDF += tt1*t2A1[
w][j]*t1rhop[j]*G[j][j];
788 if(B_D_A2<0.0) B_D_A2 = barrier(2,sa1,srhop,spionm,rRes1,mass1[i]);
789 tmp1 = B_rhop*B_D_A2*B_D_A1*temp_PDF;
792 propagatorGS(mass2sq,mass2[i],width2[i],srhop,spionp,spi0,rRes1,proRhop);
795 if(g0[i]==1) propagatorRBW(mass1sq,mass1[i],width1[i],sa1,srhop,spionm,rRes1,g2[i],pro0);
796 else if(g0[i]==0){pro0[0] = 1; pro0[1] = 0;}
797 if(
g1[i]==1){pro1[0] = proRhop[0]; pro1[1] = proRhop[1];}
798 else if(
g1[i]==0){pro1[0] = 1; pro1[1] = 0;}
799 Com_Multi(pro0,pro1,pro);
800 amp_tmp[0] = tmp1*pro[0];
801 amp_tmp[1] = tmp1*pro[1];
803else if(modetype[i]==7){
804 if(B_D_A1<0.0) B_D_A1 = barrier(1,sD,sa1,skaon,rD2,mDsM);
805 if(B_rhom<0.0) B_rhom = barrier(1,srhom,spionm,spi0,rRes1,mass2[i]);
808 for(
int w=0;
w<4;
w++){
809 tt1 = t1D[
w]*G[
w][
w];
810 for(
int j=0; j<4; j++){
811 temp_PDF += tt1*(G[
w][j]-pA1[
w]*pA1[j]/sa1)*t1rhom[j]*G[j][j];
814 tmp1 = B_rhom*B_D_A1*temp_PDF;
817 for(
int w=0;
w<4;
w++){
819 for(
int j=0; j<4; j++){
820 temp_PDF += tt1*t2A2[
w][j]*t1rhom[j]*G[j][j];
823 if(B_D_A2<0.0) B_D_A2 = barrier(2,sa1,srhom,spionp,rRes1,mass1[i]);
824 tmp1 = B_rhom*B_D_A2*B_D_A1*temp_PDF;
827 propagatorGS(mass2sq,mass2[i],width2[i],srhom,spionm,spi0,rRes1,proRhom);
830 if(g0[i]==1) propagatorRBW(mass1sq,mass1[i],width1[i],sa1,srhom,spionp,rRes1,g2[i],pro0);
831 else if(g0[i]==0){pro0[0] = 1; pro0[1] = 0;}
832 if(
g1[i]==1){pro1[0] = proRhom[0]; pro1[1] = proRhom[1];}
833 else if(
g1[i]==0){pro1[0] = 1; pro1[1] = 0;}
834 Com_Multi(pro0,pro1,pro);
835 amp_tmp[0] = -tmp1*pro[0];
836 amp_tmp[1] = -tmp1*pro[1];
840 else if(modetype[i]==10){
841 if(B_rhom<0.0) B_rhom = barrier(1,srhom,spionm,spi0,rRes1,mass2[i]);
843 if(B_D_K1rho<0.0) B_D_K1rho = barrier(1,sD,sk11,spionp,rD2,mDsM);
847 for(
int w=0;
w<4;
w++){
849 for(
int j=0; j<4; j++){
850 temp_PDF += tt1*(G[
w][j]-pK11[
w]*pK11[j]/sk11)*t1rhom[j]*G[j][j];
853 tmp1 = B_rhom*B_D_K1rho*temp_PDF;
856 for(
int w=0;
w<4;
w++){
858 for(
int j=0; j<4; j++){
859 temp_PDF += tt1*t2k21[
w][j]*t1rhom[j]*G[j][j];
863 B_K1rho = barrier(2,sk11,srhom,skaon,rRes1,mass1[i]);
864 tmp1 = B_rhom*B_K1rho*B_D_K1rho*temp_PDF;
868 propagatorGS(mass2sq,mass2[i],width2[i],srhom,spionm,spi0,rRes1,proRhom);
871 qqq = 0.25*(sk11+srhom-skaon)*(sk11+srhom-skaon)/sk11-srhom;
872 qqq0 = 0.25*(mK1270+srhom-skaon)*(mK1270+srhom-skaon)/mK1270-srhom;
873 if(qqq<2e-4)
continue;
874 if(g0[i]==1) propagatorRBW(mass1sq,mass1[i],width1[i],sk11,srhom,skaon,rRes1,g2[i],pro0);
875 else if(g0[i]==0){pro0[0] = 1; pro0[1] = 0;}
876 if(
g1[i]==1){pro1[0] = proRhom[0]; pro1[1] = proRhom[1];}
877 else if(
g1[i]==0){pro1[0] = 1; pro1[1] = 0;}
878 Com_Multi(pro0,pro1,pro);
879 amp_tmp[0] = tmp1*pro[0];
880 amp_tmp[1] = tmp1*pro[1];
883else if(modetype[i]==11){
884 if(B_D_K1Pi<0.0) B_D_K1Pi = barrier(1,sD,sk11,spionp,rD2,mDsM);
885 if(B_Kst0<0.0) B_Kst0 = barrier(1,sKst0,skaon,spionm,rRes1,mass1[i]);
888 for(
int w=0;
w<4;
w++){
889 tt1 = t1D[
w]*G[
w][
w];
890 for(
int j=0; j<4; j++){
891 temp_PDF += tt1*(G[
w][j]-pK11[
w]*pK11[j]/sk11)*t1Kst0[j]*G[j][j];
894 tmp1 = B_Kst0*B_D_K1Pi*temp_PDF;
897 for(
int w=0;
w<4;
w++){
899 for(
int j=0; j<4; j++){
900 temp_PDF += tt1*t2k11[
w][j]*t1Kst0[j]*G[j][j];
903 if(B_K1rhop2<0.0) B_K1rhop2 = barrier(2,sk11,sKst0,spi0,rRes1,mass2[i]);
904 tmp1 = B_Kst0*B_K1rhop2*B_D_K1Pi*temp_PDF;
907 propagatorRBWl1(mass1sq,mass1[i],width1[i],sKst0,skaon,spionm,rRes1,proKst0);
911 pro0[0] = proKst0[0]; pro0[1] = proKst0[1];
913 else if(g0[i]==0){pro0[0] = 1; pro0[1] = 0;}
915 propagatorRBW(mass2sq,mass2[i],width2[i],sk11,sKst0,spi0,rRes1,g2[i],pro1);
917 else if(
g1[i]==0){pro1[0] = 1; pro1[1] = 0;}
918 Com_Multi(pro0,pro1,pro);
919 amp_tmp[0] = tmp1*pro[0];
920 amp_tmp[1] = tmp1*pro[1];
923 else if(modetype[i]==12){
924 if(B_D_K1Pi<0.0) B_D_K1Pi = barrier(1,sD,sk11,spionp,rD2,mDsM);
925 if(B_Kstp<0.0) B_Kstp = barrier(1,sKstp,skaon,spi0,rRes1,mass1[i]);
928 for(
int w=0;
w<4;
w++){
929 tt1 = t1D[
w]*G[
w][
w];
930 for(
int j=0; j<4; j++){
931 temp_PDF1 += tt1*(G[
w][j]-pK11[
w]*pK11[j]/sk11)*t1Kstp[j]*G[j][j];
934 tmp1 = B_Kstp*B_D_K1Pi*temp_PDF1;
937 for(
int w=0;
w<4;
w++){
939 for(
int j=0; j<4; j++){
940 temp_PDF1 += tt1*t2k12[
w][j]*t1Kstp[j]*G[j][j];
943 if(B_K1Kstp2<0.0) B_K1Kstp2 = barrier(2,sk11,sKstp,spionm,rRes1,mass2[i]);
944 tmp1 = B_Kstp*B_K1Kstp2*B_D_K1Pi*temp_PDF1;
947 propagatorRBWl1(mass1sq,mass1[i],width1[i],sKstp,skaon,spi0,rRes1,proKstp);
951 pro0[0] = proKstp[0]; pro0[1] = proKstp[1];
953 else if(g0[i]==0){pro0[0] = 1; pro0[1] = 0;}
955 propagatorRBW(mass2sq,mass2[i],width2[i],sk11,sKstp,spionm,rRes1,g2[i],pro1);
957 else if(
g1[i]==0){pro1[0] = 1; pro1[1] = 0;}
958 Com_Multi(pro0,pro1,pro);
959 amp_tmp[0] = -tmp1*pro[0];
960 amp_tmp[1] = -tmp1*pro[1];
963 else if(modetype[i]==14){
964 double B1_omega1=barrier(1,somega,srhop,spionm,rRes1,mass1[i]);
965 double B1_omega2=barrier(1,somega,srho0,spi0,rRes1,mass1[i]);
966 double B1_omega3=barrier(1,somega,srhom,spionp,rRes1,mass1[i]);
967 calt1(pomega,Kp,t1Ds_omega);
968 double B1_1V11=barrier(1,srhop,spionp,spi0,rRes1,mrho);
969 double B1_1V12=barrier(1,srho0,spionp,spionm,rRes1,mrho0);
970 double B1_1V13=barrier(1,srhom,spi0,spionm,rRes1,mrho);
971 double B1_Ds_omega=barrier(1,sD,somega,skaon,rD2,mDsM);
972 for(
int w=0;
w<4;
w++){
973 tt1=pomega[
w]*G[
w][
w];
974 for(
int j=0; j<4; j++){
975 tt21=(prhop[j]-Pim[j])*G[j][j];
976 tt22=(prho0[j]-
Pi0[j])*G[j][j];
977 tt23=(prhom[j]-Pip[j])*G[j][j];
978 for(
int k=0; k<4; k++){
980 for(
int l=0; l<4; l++){
981 temp_PDF11 += E[
w][j][k][l]*tt1*tt21*tt3*(Pip[l]-
Pi0[l])*G[l][l];
982 temp_PDF12 += E[
w][j][k][l]*tt1*tt22*tt3*(Pip[l]-Pim[l])*G[l][l];
983 temp_PDF13 += E[
w][j][k][l]*tt1*tt23*tt3*(Pim[l]-
Pi0[l])*G[l][l];
988 temp_PDF11 = temp_PDF11*B1_Ds_omega*B1_omega1*B1_1V11;
989 temp_PDF12 = temp_PDF12*B1_Ds_omega*B1_omega2*B1_1V12;
990 temp_PDF13 = temp_PDF13*B1_Ds_omega*B1_omega3*B1_1V13;
991 double pro1V11[2],pro1V12[2],pro1V13[2];
992 propagatorGS(mass2sq,mass2[i],width2[i],srhop,spionp,spi0,rRes1,pro1V11);
993 propagatorGS(mass2sq,mass2[i],width2[i],srho0,spionp,spionm,rRes1,pro1V12);
994 propagatorGS(mass2sq,mass2[i],width2[i],srhom,spi0,spionm,rRes1,pro1V13);
996 propagatorRBW(mass1sq,mass1[i],width1[i],somega,srhop,spionm,rRes1,1,pro0_11);
997 propagatorRBW(mass1sq,mass1[i],width1[i],somega,srho0,spi0,rRes1,1,pro0_12);
998 propagatorRBW(mass1sq,mass1[i],width1[i],somega,srhom,spionp,rRes1,1,pro0_13);
1001 pro0_11[0] = 1; pro0_11[1] = 0;
1002 pro0_12[0] = 1; pro0_12[1] = 0;
1003 pro0_13[0] = 1; pro0_13[1] = 0;
1005 Com_Multi(pro0_11,pro1V11,pro_11);
1006 Com_Multi(pro0_12,pro1V12,pro_12);
1007 Com_Multi(pro0_13,pro1V13,pro_13);
1008 amp_tmp[0] = (temp_PDF11*pro_11[0] + temp_PDF12*pro_12[0] + temp_PDF13*pro_13[0]);
1009 amp_tmp[1] = (temp_PDF11*pro_11[1] + temp_PDF12*pro_12[1] + temp_PDF13*pro_13[1]);
1015 proPiPi_S[0] = realpipis;
1016 proPiPi_S[1] = imagpipis;
1020 KPiSLASS(sKstp,skaon,spi0,proKPi_S);
1023 Com_Multi(proKPi_S,proPiPi_S,amp_tmp);
1026else if(modetype[i]==16){
1027 if(B_D_A1<0.0) B_D_A1 = barrier(1,sD,sa1,skaon,rD2,mDsM);
1028 if(B_rhop<0.0) B_rhop = barrier(1,srhop,spionp,spi0,rRes1,mass2[i]);
1031 for(
int w=0;
w<4;
w++){
1032 tt1 = t1D[
w]*G[
w][
w];
1033 for(
int j=0; j<4; j++){
1034 temp_PDF += tt1*(G[
w][j]-pA1[
w]*pA1[j]/sa1)*t1rhop[j]*G[j][j];
1037 tmp1 = B_rhop*B_D_A1*temp_PDF;
1040 for(
int w=0;
w<4;
w++){
1042 for(
int j=0; j<4; j++){
1043 temp_PDF += tt1*t2A1[
w][j]*t1rhop[j]*G[j][j];
1046 if(B_D_A2<0.0) B_D_A2 = barrier(2,sa1,srhop,spionm,rRes1,mass1[i]);
1047 tmp1 = B_rhop*B_D_A2*B_D_A1*temp_PDF;
1050 propagatorGS(mass2sq,mass2[i],width2[i],srhop,spionp,spi0,rRes1,proRhop);
1053 if(g0[i]==1) propagatorRBW(mass1sq,mass1[i],width1[i],sa1,srhop,spionm,rRes1,g2[i],pro0);
1054 else if(g0[i]==0){pro0[0] = 1; pro0[1] = 0;}
1055 if(
g1[i]==1){pro1[0] = proRhop[0]; pro1[1] = proRhop[1];}
1056 else if(
g1[i]==0){pro1[0] = 1; pro1[1] = 0;}
1057 Com_Multi(pro0,pro1,pro);
1058 amp_tmp[0] = tmp1*pro[0];
1059 amp_tmp[1] = tmp1*pro[1];
1062else if(modetype[i]==17){
1063 if(B_D_A1<0.0) B_D_A1 = barrier(1,sD,sa1,skaon,rD2,mDsM);
1064 if(B_rhom<0.0) B_rhom = barrier(1,srhom,spionm,spi0,rRes1,mass2[i]);
1067 for(
int w=0;
w<4;
w++){
1068 tt1 = t1D[
w]*G[
w][
w];
1069 for(
int j=0; j<4; j++){
1070 temp_PDF += tt1*(G[
w][j]-pA1[
w]*pA1[j]/sa1)*t1rhom[j]*G[j][j];
1073 tmp1 = B_rhom*B_D_A1*temp_PDF;
1076 for(
int w=0;
w<4;
w++){
1078 for(
int j=0; j<4; j++){
1079 temp_PDF += tt1*t2A2[
w][j]*t1rhom[j]*G[j][j];
1082 if(B_D_A2<0.0) B_D_A2 = barrier(2,sa1,srhom,spionp,rRes1,mass1[i]);
1083 tmp1 = B_rhom*B_D_A2*B_D_A1*temp_PDF;
1086 propagatorGS(mass2sq,mass2[i],width2[i],srhom,spionm,spi0,rRes1,proRhom);
1089 if(g0[i]==1) propagatorRBW(mass1sq,mass1[i],width1[i],sa1,srhom,spionp,rRes1,g2[i],pro0);
1090 else if(g0[i]==0){pro0[0] = 1; pro0[1] = 0;}
1091 if(
g1[i]==1){pro1[0] = proRhom[0]; pro1[1] = proRhom[1];}
1092 else if(
g1[i]==0){pro1[0] = 1; pro1[1] = 0;}
1093 Com_Multi(pro0,pro1,pro);
1094 amp_tmp[0] = -tmp1*pro[0];
1095 amp_tmp[1] = -tmp1*pro[1];
1097 Com_Multi(amp_tmp,cof,amp_PDF);
1098 PDF[0] += amp_PDF[0];
1099 PDF[1] += amp_PDF[1];
1100 double value = PDF[0]*PDF[0] + PDF[1]*PDF[1];
1101 if(value <=0) {value = 1e-20;}
double sin(const BesAngle a)
double cos(const BesAngle a)
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
****INTEGER imax DOUBLE PRECISION m_pi *DOUBLE PRECISION m_amfin DOUBLE PRECISION m_Chfin DOUBLE PRECISION m_Xenph DOUBLE PRECISION m_sinw2 DOUBLE PRECISION m_GFermi DOUBLE PRECISION m_MfinMin DOUBLE PRECISION m_ta2 INTEGER m_out INTEGER m_KeyFSR INTEGER m_KeyQCD *COMMON c_Semalib $ !copy of input $ !CMS energy $ !beam mass $ !final mass $ !beam charge $ !final charge $ !smallest final mass $ !Z mass $ !Z width $ !EW mixing angle $ !Gmu Fermi $ alphaQED at q
void checkSpinDaughter(int d1, EvtSpinType::spintype sp)
void checkSpinParent(EvtSpinType::spintype sp)
void setProbMax(double prbmx)
void checkNDaug(int d1, int d2=-1)
void checkNArg(int a1, int a2=-1, int a3=-1, int a4=-1)
void setProb(double prob)
void decay(EvtParticle *p)
virtual ~EvtDsToKpPipPimPi0()
void getName(std::string &name)
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)