37 model_name=
"DToKSKmpippip";
50mass_Pion_N = 0.134977;
52mD = 1.86966; mPi = 0.13957; mKa = 0.493677;
61 mK1400 = 1.403; GK1400 = 0.174;
62 m1510 = 1.518; G1510 = 0.073;
63 meta1405 =1.4139; Geta1405 = 0.048;
64 meta1475 = 1.475; Geta1475 = 0.09;
65 mf1285 = 1.2819; Gf1285 = 0.0227;
66 mKstp =0.89176; GKstp = 0.0514;
67 mKst0 =0.89555; GKst0 = 0.0473;
68 ma0_980 = 0.990; Ga0_980 = 0.05;
101 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
103 { { {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
104 {{0,0,0,0}, {0,0,0,0}, {0,0,0,1}, {0,0,-1,0}},
105 {{0,0,0,0}, {0,0,0,-1}, {0,0,0,0}, {0,1,0,0} },
106 {{0,0,0,0}, {0,0,1,0}, {0,-1,0,0}, {0,0,0,0} } },
107 { {{0,0,0,0}, {0,0,0,0}, {0,0,0,-1}, {0,0,1,0} },
108 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
109 {{0,0,0,1}, {0,0,0,0}, {0,0,0,0}, {-1,0,0,0}},
110 {{0,0,-1,0}, {0,0,0,0}, {1,0,0,0}, {0,0,0,0} } },
111 { {{0,0,0,0}, {0,0,0,1}, {0,0,0,0}, {0,-1,0,0}},
112 {{0,0,0,-1}, {0,0,0,0}, {0,0,0,0}, {1,0,0,0} },
113 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
114 {{0,1,0,0}, {-1,0,0,0}, {0,0,0,0}, {0,0,0,0} } },
115 { {{0,0,0,0}, {0,0,-1,0}, {0,1,0,0}, {0,0,0,0} },
116 {{0,0,1,0}, {0,0,0,0}, {-1,0,0,0}, {0,0,0,0} },
117 {{0,-1,0,0}, {1,0,0,0}, {0,0,0,0}, {0,0,0,0} },
118 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} } } };
119 for (
int i=0; i<4; i++) {
120 for (
int j=0; j<4; j++) {
122 for (
int k=0; k<4; k++) {
123 for (
int l=0; l<4; l++) {
124 E[i][j][k][l] = EE[i][j][k][l];
189 }
else if(mother_c==-411){
193 double KS[4],Km[4],Pip1[4],Pip2[4];
195 KS[0] = ks.
get(0); Km[0] = km.
get(0); Pip1[0] = pip1.
get(0); Pip2[0] = pip2.
get(0);
196 KS[1] = cc*ks.
get(1); Km[1] = cc*km.
get(1); Pip1[1] = cc*pip1.
get(1); Pip2[1] = cc*pip2.
get(1);
197 KS[2] = cc*ks.
get(2); Km[2] = cc*km.
get(2); Pip1[2] = cc*pip1.
get(2); Pip2[2] = cc*pip2.
get(2);
198 KS[3] = cc*ks.
get(3); Km[3] = cc*km.
get(3); Pip1[3] = cc*pip1.
get(3); Pip2[3] = cc*pip2.
get(3);
206 double mass1[9] ={ mKstp, mKstp, mKstp, mf1285, m1510, m1510, m1510, meta1405, meta1475};
207 double mass2[9] ={ mKst0, mKst0, mKst0, ma0_980, ma0_980, mKst0, mKstp, ma0_980, mKstp };
208 double width1[9]={ GKstp, GKstp, GKstp, Gf1285, G1510, G1510, G1510, Geta1405, Geta1475};
209 double width2[9]={ GKst0, GKst0, GKst0, Ga0_980, Ga0_980, GKst0, GKstp, Ga0_980, GKstp };
210 int g0[9] ={ 1, 1, 1, 1, 1, 1, 1, 1, 1 };
211 int g1[9] ={ 1, 1, 1, 1, 1, 1, 1, 1, 1 };
212 int g2[9] ={ 0, 1, 2, 0, 1, 0, 0, 0, 0 };
214 value=calEva(KS,Km,Pip1,Pip2,mass1,mass2,width1,width2,rho,phi,g0,
g1,g2,modetype,value);
221void EvtDToKSKmpippip::Com_Multi(
double a1[2],
double a2[2],
double res[2])
223 res[0] = a1[0]*a2[0]-a1[1]*a2[1];
224 res[1] = a1[1]*a2[0]+a1[0]*a2[1];
226void EvtDToKSKmpippip::Com_Divide(
double a1[2],
double a2[2],
double res[2])
228 double tmp = a2[0]*a2[0]+a2[1]*a2[1];
229 res[0] = (a1[0]*a2[0]+a1[1]*a2[1])/tmp;
230 res[1] = (a1[1]*a2[0]-a1[0]*a2[1])/tmp;
233double EvtDToKSKmpippip::SCADot(
double a1[4],
double a2[4])
235 double _cal = a1[0]*a2[0]-a1[1]*a2[1]-a1[2]*a2[2]-a1[3]*a2[3];
239double EvtDToKSKmpippip::Barrier(
double mass2,
int l,
double sa,
double sb,
double sc,
double r2)
242 double tmp = sa+sb-sc;
243 double q = fabs(0.25*tmp*tmp/sa-sb);
245 double tmp2 = mass2+sb-sc;
246 double q0 = fabs(0.25*tmp2*tmp2/mass2-sb);
251 F = sqrt((1.0+z0)/(1.0+z));
254 double z2 = z*z;
double z02 = z0*z0;
255 F = sqrt((9.0+3.0*z0+z02)/(9.0+3.0*z+z2));
262double EvtDToKSKmpippip::barrier(
int l,
double sa,
double sb,
double sc,
double r2)
265 double tmp = sa+sb-sc;
266 double q = 0.25*tmp*tmp/sa-sb;
267 if (
q < 0)
q = 1e-16;
270 F = sqrt(2.0*z/(1.0+z));
274 F = sqrt(13.0*z2/(9.0+3.0*z+z2));
281void EvtDToKSKmpippip::calt1(
double daug1[4],
double daug2[4],
double t1[4])
285 for(
int i=0; i<4; i++) {
286 pa[i] = daug1[i] + daug2[i];
287 qa[i] = daug1[i] - daug2[i];
292 for(
int i=0; i<4; i++) {
293 t1[i] = qa[i] - tmp*pa[i];
296void EvtDToKSKmpippip::calt2(
double daug1[4],
double daug2[4],
double t2[4][4])
300 calt1(daug1,daug2,t1);
301 r = SCADot(t1,t1)/3.0;
302 for(
int i=0; i<4; i++) {
303 pa[i] = daug1[i] + daug2[i];
306 for(
int i=0; i<4; i++) {
307 for(
int j=0; j<4; j++) {
308 t2[i][j] = t1[i]*t1[j] - r*(G[i][j]-pa[i]*pa[j]/p);
313void EvtDToKSKmpippip::Flatte_rhoab(
double sa,
double sb,
double sc,
double rho[2])
315 double q = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
317 rho[0]=2* sqrt(
q/sa);
322 rho[1]=2*sqrt(-
q/sa);
325void EvtDToKSKmpippip::propagator980(
double mass2,
double mass,
double sx,
double *sb,
double *sc,
double prop[2])
327 double unit[2]={1.0};
330 Flatte_rhoab(sx,sb[0],sc[0],rho1);
332 Flatte_rhoab(sx,sb[1],sc[1],rho2);
334 double gK_f980=0.69465, gPi_f980=0.165;
335 double tmp1[2]={gK_f980,0};
337 double tmp2[2]={gPi_f980,0};
339 Com_Multi(tmp1,rho1,tmp11);
340 Com_Multi(tmp2,rho2,tmp22);
341 double tmp3[2]={tmp11[0]+tmp22[0],tmp11[1]+tmp22[1]};
343 Com_Multi(tmp3, ci,tmp31);
344 double tmp4[2]={mass2-sx-tmp31[0], -1.0*tmp31[1]};
345 Com_Divide(
unit,tmp4, prop);
347void EvtDToKSKmpippip::propagatora0980(
double mass2,
double mass,
double sx,
double *sb,
double *sc,
double prop[2])
349 double unit[2]={1.0};
352 Flatte_rhoab(sx,sb[0],sc[0],rho1);
354 Flatte_rhoab(sx,sb[1],sc[1],rho2);
356 double gKK_a980=0.892*0.341, gPiEta_a980=0.341;
357 double tmp1[2]={gKK_a980,0};
359 double tmp2[2]={gPiEta_a980,0};
361 Com_Multi(tmp1,rho1,tmp11);
362 Com_Multi(tmp2,rho2,tmp22);
363 double tmp3[2]={tmp11[0]+tmp22[0],tmp11[1]+tmp22[1]};
365 Com_Multi(tmp3, ci,tmp31);
366 double tmp4[2]={mass2-sx-tmp31[0], -1.0*tmp31[1]};
367 Com_Divide(
unit,tmp4, prop);
370void EvtDToKSKmpippip::propagator(
double mass2,
double mass,
double width,
double sx,
double prop[2])
377 Com_Divide(a,
b,prop);
379double EvtDToKSKmpippip::wid(
double mass2,
double mass,
double sa,
double sb,
double sc,
double r2,
int l)
384 double tmp1 = sa+tmp;
385 double q = 0.25*tmp1*tmp1/sa-sb;
387 double tmp2 = mass2+tmp;
388 double q0 = 0.25*tmp2*tmp2/mass2-sb;
393 if(l == 0) {widm = sqrt(
t)*
mass/m;}
394 else if(l == 1) {widm =
t*sqrt(
t)*
mass/m*(1+z0)/(1+z);}
395 else if(l == 2) {widm =
t*
t*sqrt(
t)*
mass/m*(9+3*z0+z0*z0)/(9+3*z+z*z);}
398double EvtDToKSKmpippip::widl1(
double mass2,
double mass,
double sa,
double sb,
double sc,
double r2)
403 double tmp1 = sa+tmp;
404 double q = 0.25*tmp1*tmp1/sa-sb;
406 double tmp2 = mass2+tmp;
407 double q0 = 0.25*tmp2*tmp2/mass2-sb;
411 double F = (1+z0)/(1+z);
413 widm =
t*sqrt(
t)*
mass/m*F;
416void EvtDToKSKmpippip::propagatorRBW(
double mass2,
double mass,
double width,
double sa,
double sb,
double sc,
double r2,
int l,
double prop[2])
422 b[1] = -
mass*width*wid(mass2,
mass,sa,sb,sc,r2,l);
423 Com_Divide(a,
b,prop);
425void EvtDToKSKmpippip::propagatorRBWl1(
double mass2,
double mass,
double width,
double sa,
double sb,
double sc,
double r2,
double prop[2])
431 b[1] = -
mass*width*widl1(mass2,
mass,sa,sb,sc,r2);
432 Com_Divide(a,
b,prop);
435void EvtDToKSKmpippip::propagatorGS(
double mass2,
double mass,
double width,
double sa,
double sb,
double sc,
double r2,
double prop[2])
439 double tmp1 = sa+tmp;
440 double q2 = 0.25*tmp1*tmp1/sa-sb;
443 double tmp2 = mass2+tmp;
444 double q02 = 0.25*tmp2*tmp2/mass2-sb;
445 if(q02<0) q02 = 1e-16;
448 double q0 = sqrt(q02);
451 double tmp3 = log(
mass+2*q0)+1.2760418309;
453 double h = GS1*
q/m*(log(m+2*
q)+1.2760418309);
454 double h0 = GS1*q0/
mass*tmp3;
455 double dh = h0*(0.125/q02-0.5/mass2)+GS3/mass2;
456 double d = GS2/q02*tmp3+GS3*
mass/q0-GS4*
mass/q03;
457 double f = mass2/q03*(q2*(h-h0)+(mass2-sa)*q02*dh);
459 a[0] = 1.0+d*width/
mass;
461 b[0] = mass2-sa+width*
f;
462 b[1] = -
mass*width*widl1(mass2,
mass,sa,sb,sc,r2);
463 Com_Divide(a,
b,prop);
465void EvtDToKSKmpippip::rhoab(
double sa,
double sb,
double sc,
double res[2]) {
466 double tmp = sa+sb-sc;
467 double q = 0.25*tmp*tmp/sa-sb;
469 res[0]=2.0*sqrt(
q/sa);
473 res[1]=2.0*sqrt(-
q/sa);
476void EvtDToKSKmpippip::rho4Pi(
double sa,
double res[2]) {
477 double temp = 1.0-0.3116765584/sa;
479 res[0]=sqrt(temp)/(1.0+
exp(9.8-3.5*sa));
483 res[1]=sqrt(-temp)/(1.0+
exp(9.8-3.5*sa));
486void EvtDToKSKmpippip::propagatorsigma500(
double sa,
double sb,
double sc,
double prop[2]) {
487 double f = 0.5843+1.6663*sa;
488 const double M = 0.9264;
489 const double mass2 = 0.85821696;
490 const double mpi2d2 = 0.00973989245;
491 double g1 =
f*(sa-mpi2d2)/(mass2-mpi2d2)*
exp((mass2-sa)/1.082);
492 double rho1s[2], rho1M[2], rho2s[2], rho2M[2], rho1[2], rho2[2];
493 rhoab(sa,sb,sc,rho1s);
494 rhoab(mass2,sb,sc,rho1M);
497 Com_Divide(rho1s,rho1M,rho1);
498 Com_Divide(rho2s,rho2M,rho2);
502 b[0] = mass2-sa+M*(
g1*rho1[1]+0.0024*rho2[1]);
503 b[1] = -M*(
g1*rho1[0]+0.0024*rho2[0]);
504 Com_Divide(a,
b,prop);
506void EvtDToKSKmpippip::KPiSLASS(
double sa,
double sb,
double sc,
double prop[2]) {
507 const double m1430 = 1.441;
508 const double sa0 = 2.076481;
509 const double w1430 = 0.193;
510 const double Lass1 = 0.25/sa0;
512 double tmp1 = sa0+tmp;
513 double q0 = fabs(Lass1*tmp1*tmp1-sb);
515 double tmp2 = sa+tmp;
516 double qs = fabs(0.25*tmp2*tmp2/sa-sb);
518 double width = w1430*
q*m1430/sqrt(sa*q0);
519 double temp_R = atan(m1430*width/(sa0-sa));
520 if(temp_R<0) temp_R += math_pi;
521 double deltaR = -109.7*math_pi/180.0 + temp_R;
522 double temp_F = atan(0.226*
q/(2.0-3.8194*qs));
523 if(temp_F<0) temp_F += math_pi;
524 double deltaF = 0.1*math_pi/180.0 + temp_F;
525 double deltaS = deltaR + 2.0*deltaF;
526 double t1 = 0.96*
sin(deltaF);
527 double t2 =
sin(deltaR);
533 prop[0] = t1*CF[0] + t2*
CS[0];
534 prop[1] = t1*CF[1] + t2*
CS[1];
539double EvtDToKSKmpippip::calEva(
544 double* mass1,
double* mass2,
545 double* width1,
double* width2,
546 double* amp,
double* phase,
547 int* g0,
int*
g1,
int* g2,
553 double cof[2], amp_tmp1[2], amp_tmp2[2], amp_tmp[2], amp_PDF[2], PDF[2];
554 double pKstr0[4],pKstrp[4],pKstrm[4],prhop[4],pphi[4],pK10[4],pK11[4],pK12[4],pK13[4],pK14[4];
555 double pD[4],pKsPip1[4],pKmPip2[4],pKsPip2[4],pKmPip1[4],pKsKmPip1[4],pKsKmPip2[4],pKsKm[4],pKmPipPip[4],pKsPipPip[4];
557 for(
int i=0;i!=4;i++)
559 pD[i] = Km[i]+Pip[i]+Kp[i]+
Pi0[i];
560 pKsPip1[i] =Km[i]+Pip[i];
561 pKsPip2[i] =Km[i]+
Pi0[i];
562 pKmPip1[i] =Kp[i]+Pip[i];
563 pKmPip2[i] =Kp[i]+
Pi0[i];
564 pKsKm[i] = Km[i]+Kp[i];
565 pKsKmPip1[i] = pKsPip1[i] + Kp[i];
566 pKsKmPip2[i] = pKsPip2[i] + Kp[i];
567 pKmPipPip[i] = Kp[i]+Pip[i]+
Pi0[i];
568 pKsPipPip[i] = Km[i]+Pip[i]+
Pi0[i];
570 pphi[i] =Km[i]+Kp[i];
571 prhop[i] =Pip[i]+
Pi0[i];
572 pKstr0[i] =Km[i]+Pip[i];
573 pKstrp[i] =Kp[i]+
Pi0[i];
574 pKstrm[i] =Km[i]+
Pi0[i];
575 pK10[i] =pKstrm[i]+Kp[i];
576 pK11[i] =pKstrm[i]+Pip[i];
577 pK12[i] =pKstrp[i]+Km[i];
578 pK13[i] =pKstr0[i]+
Pi0[i];
579 pK14[i] =pphi[i]+
Pi0[i];
581 double spi0,spionp,skaon1,skaon2,sphi,srhop,skstr0,skstrp,skstrm,sk10,sk11,sk12,sk13,sk14;
582 double sPip2,sPip1,sKs,sKm,sKsPip1,sKmPip2,sD,sKsPip2,sKmPip1,sKsKmPip1,sKsKmPip2,sKsKm,sKmPipPip,sKsPipPip;
586 sPip1= SCADot(Pip,Pip);
588 sKsPip1 = SCADot(pKsPip1,pKsPip1);
589 sKsPip2 = SCADot(pKsPip2,pKsPip2);
590 sKmPip1 = SCADot(pKmPip1,pKmPip1);
591 sKmPip2 = SCADot(pKmPip2,pKmPip2);
592 sKsKmPip1 = SCADot(pKsKmPip1,pKsKmPip1);
593 sKsKmPip2 = SCADot(pKsKmPip2,pKsKmPip2);
594 sKmPipPip = SCADot(pKmPipPip,pKmPipPip);
595 sKsPipPip = SCADot(pKsPipPip,pKsPipPip);
596 sKsKm =SCADot(pKsKm,pKsKm);
599 skaon1 = SCADot(Km,Km);
600 skaon2 = SCADot(Kp,Kp);
601 spionp = SCADot(Pip,Pip);
604 sphi = SCADot(pphi,pphi);
605 srhop = SCADot(prhop,prhop);
606 skstr0 = SCADot(pKstr0,pKstr0);
607 skstrp = SCADot(pKstrp,pKstrp);
608 skstrm = SCADot(pKstrm,pKstrm);
609 sk10 = SCADot(pK10,pK10);
610 sk11 = SCADot(pK11,pK11);
611 sk12 = SCADot(pK12,pK12);
613 sk14 = SCADot(pK14,pK14);
616 double t1phi[4],t1A1[4],t1A2[4],t1rhop[4],t1kstr1[4],t1kstr2[4],t1kstr3[4],t1kstr4[4],t2k11[4][4],t2k12[4][4],t2k13[4][4],t2k14[4][4],t2k21[4][4];
617 double t1KsPip1[4],t1KmPip2[4],t1KsPip2[4],t1KmPip1[4],t2KsKmPip1_kspip[4][4],t2KsKmPip2_kspip[4][4],t2KsKmPip1_kmpip[4][4],t2KsKmPip2_kmpip[4][4],t1KsKmPip1_kspip[4],t1KsKmPip2_kspip[4],t1KsKmPip1_kmpip[4],t1KsKmPip2_kmpip[4],t1KsKmPip1_ksk[4],t1KsKmPip2_ksk[4],t2KmPipPip_kmpip[4][4],t2KmPipPip_kmpip2[4][4],t2KsPipPip_kspip[4][4],t2KsPipPip_kspip2[4][4],t1KmPipPip_kmpip[4],t1KmPipPip_kmpip2[4],t1KsPipPip_kspip[4],t1KsPipPip_kspip2[4];
618 calt1(Km,Pip, t1KsPip1);
619 calt1(Km,
Pi0, t1KsPip2);
620 calt1(Kp,Pip, t1KmPip1);
621 calt1(Kp,
Pi0, t1KmPip2);
622 calt1(pKsPip1,Kp,t1KsKmPip1_kspip);
623 calt1(pKsPip2,Kp,t1KsKmPip2_kspip);
624 calt1(pKmPip1,Km,t1KsKmPip1_kmpip);
625 calt1(pKmPip2,Km,t1KsKmPip2_kmpip);
627 calt1(pKmPip1,
Pi0,t1KmPipPip_kmpip);
628 calt1(pKmPip2,Pip,t1KmPipPip_kmpip2);
629 calt1(pKsPip1,
Pi0,t1KsPipPip_kspip);
630 calt1(pKsPip2,Pip,t1KsPipPip_kspip2);
631 calt1(pKsKm,Pip,t1KsKmPip1_ksk);
632 calt1(pKsKm,
Pi0,t1KsKmPip2_ksk);
634 calt2(pKsPip1,Kp,t2KsKmPip1_kspip);
635 calt2(pKsPip2,Kp,t2KsKmPip2_kspip);
636 calt2(pKmPip1,Km,t2KsKmPip1_kmpip);
637 calt2(pKmPip2,Km,t2KsKmPip2_kmpip);
638 calt2(pKmPip2,Pip,t2KmPipPip_kmpip);
639 calt2(pKmPip1,
Pi0,t2KmPipPip_kmpip2);
640 calt2(pKsPip2,Pip,t2KsPipPip_kspip);
641 calt2(pKsPip1,
Pi0,t2KsPipPip_kspip2);
658 double B_phi =-1.0, B_rho =-1.0, B_rho_2 =-1.0, B_phirho1=-1.0, B_phirho2=-1.0, B_phi_2 =-1.0;
659 double B_Kstp =-1.0, B_Kst0 =-1.0, B_KsKs1 =-1.0, B_KsKs2 =-1.0, B_Kstp_2 =-1.0, B_Kst0_2 =-1.0, B_DA2 =-1.0;
660 double B_Kstm =-1.0, B_DA1 =-1.0, B_A1 =-1.0, B_A2 =-1.0, B_A1_1 =-1.0, B_K13_1 =-1.0, B_A2_1 =-1.0;
661 double B_D_Arho =-1.0, B_Arho =-1.0, B_K11 =-1.0, B_D11 =-1.0, B_Arho1 =-1.0, B_K14_phi=-1.0, B_A10 =-1.0;
662 double B_K11rho =-1.0, B_D_K11rho=-1.0, B_K14_1 =-1.0, B_K14_2 =-1.0, B_D_K14 =-1.0, B_K14_km =-1.0, B_K14_kp =-1.0;
663 double B_K_Kst0pi0=-1.0, B_D_KK =-1.0, B_K_Kstmpip=-1.0, B_D_K11_2=-1.0, B_K11_21 =-1.0, B_K11_22 =-1.0, B_A12 =-1.0;
667 double mass1sq,mass2sq,tt1,tt2,tmp2;
668 double temp_PDF, tmp1, temp[2],tmp3,temp_PDF1;
669 double pro[2], pro0[2], pro1[2],pro2[2],pro3[2],pro4[2];
670 double pro1b[2],pro2b[2],pro_ksk[2];
671 double pro_kspi1[2],pro_kspi2[2],pro_kpi1[2],pro_kpi2[2],pro_kpi2sw[2],pro_kpi1sw[2],pro_kspi2sw[2],pro_kspi1sw[2];
672 double pro_kspi1_0[2],pro_kspi2_0[2],pro_kpi1_0[2],pro_kpi2_0[2];
673 double ispro_kspi1=0,ispro_kspi2=0,ispro_kpi1=0,ispro_kpi2=0,ispro_kpi2sw=0,ispro_kpi1sw=0,ispro_kspi2sw=0,ispro_kspi1sw=0,ispro_ksk=0;
674 double barr_kskpi1_ksk=-1.0,barr_kskpi2_ksk=-1.0,barr_kskpi1_kspi=-1.0,barr_kskpi2_kspi=-1.0,barr_kskpi1_kpi=-1.0,barr_kskpi2_kpi=-1.0,barr_kspi1=-1.0,barr_kspi2=-1.0,barr_kpi1=-1.0,barr_kpi2=-1.0,barr_kspi1_kpi2=-1.0,barr_kspi2_kpi1=-1.0,barr_ds_kskpi1=-1.0,barr_ds_kskpi2=-1.0;
675 double t1A[4],t1V[4],t1D[4],t2D[4][4],
B[3];
676 double sKs2[2]={sKs,mass_Pion*mass_Pion};
677 double sKm2[2]={sKm,mass_Eta*mass_Eta};
678 double pS[4], pV[4], pA[4];
681 double sa[3], sb[3], sc[3];
682 int isKstp=0.0, isKst0=0.0, isKstm=0.0, isRho=0.0, isf0=0.0, isKmPip_S=0.0, isKpPi0_S=0.0, isKmPi0_S=0.0, isPiPi_S=0.0, isA0980=0.0;
683 double proRho[2], proKstp[2], proKstm[2], proKst0[2], proPiPi_S[2], proKmPip_S[2], proKpPi0_S[2], proKmPi0_S[2], proA0980[2], prof0[2];
684 for(
int i=0; i<9; i++){
689 cof[0] = amp[i]*
cos(phase[i]);
690 cof[1] = amp[i]*
sin(phase[i]);
691 mass1sq = mass1[i]*mass1[i];
692 mass2sq = mass2[i]*mass2[i];
696 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
697 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
698 Com_Multi(pro_kspi1,pro_kpi2,pro1b);
700 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
701 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
702 if(barr_kspi1_kpi2<0.0) barr_kspi1_kpi2 = barrier(1,sD,sKsPip1,sKmPip2,rD2);
705 for(
int a=0; a<4; a++)
707 temp_PDF += G[a][a]*t1KsPip1[a]*t1KmPip2[a];
709 tmp1 = barr_kspi1*barr_kpi2*temp_PDF;
713 calt1(pKsPip1,pKmPip2,t1D);
714 for(
int a=0; a<4; a++)
716 for(
int j=0; j<4; j++)
718 tt1=G[a][a]*G[j][j]*pD[a]*t1D[j];
719 for(
int k=0; k<4; k++)
721 tt2=t1KsPip1[k]*G[k][k];
722 for(
int l=0; l<4; l++)
724 temp_PDF += E[a][j][k][l]*t1KmPip2[l]*G[l][l]*tt1*tt2;
729 tmp1 = barr_kspi1*barr_kpi2*barr_kspi1_kpi2*temp_PDF;
733 calt2(pKsPip1,pKmPip2,t2D);
734 for(
int a=0; a<4; a++)
736 for(
int j=0; j<4; j++)
738 temp_PDF += t2D[a][j]*t1KsPip1[a]*t1KmPip2[j]*G[a][a]*G[j][j];
741 B[2] = barrier(2,sD,sKsPip1,sKmPip2,rD2);
742 tmp1 = barr_kspi1*barr_kpi2*
B[2]*temp_PDF;
745 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
746 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
747 Com_Multi(pro_kspi2,pro_kpi1,pro2b);
749 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
750 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
751 if(barr_kspi2_kpi1<0.0)barr_kspi2_kpi1 = barrier(1,sD,sKsPip2,sKmPip1,rD2);
754 for(
int a=0; a<4; a++)
756 temp_PDF += G[a][a]*t1KsPip2[a]*t1KmPip1[a];
758 tmp2 =barr_kspi2*barr_kpi1*temp_PDF;
762 calt1(pKsPip2,pKmPip1,t1D);
763 for(
int a=0; a<4; a++)
765 for(
int j=0; j<4; j++)
767 tt1 = G[a][a]*G[j][j]*pD[a]*t1D[j];
768 for(
int k=0; k<4; k++)
770 tt2 = t1KsPip2[k]*G[k][k];
771 for(
int l=0; l<4; l++)
773 temp_PDF += E[a][j][k][l]*t1KmPip1[l]*G[l][l]*tt1*tt2;
778 tmp2 = barr_kspi2*barr_kpi1*barr_kspi2_kpi1*temp_PDF;
782 calt2(pKsPip2,pKmPip1,t2D);
783 for(
int a=0; a<4; a++)
785 for(
int j=0; j<4; j++)
787 temp_PDF += t2D[a][j]*t1KsPip2[a]*t1KmPip1[j]*G[a][a]*G[j][j];
790 B[2] = barrier(2,sD,sKsPip2,sKmPip1,rD2);
791 tmp2 = barr_kspi2*barr_kpi1*
B[2]*temp_PDF;
799 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
800 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
801 Com_Multi(pro_kspi1,pro_kpi2,pro1b);
803 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
804 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
805 if(barr_kspi1_kpi2<0.0) barr_kspi1_kpi2 = barrier(1,sD,sKsPip1,sKmPip2,rD2);
808 for(
int a=0; a<4; a++)
810 temp_PDF += G[a][a]*t1KsPip1[a]*t1KmPip2[a];
812 tmp1 = barr_kspi1*barr_kpi2*temp_PDF;
816 calt1(pKsPip1,pKmPip2,t1D);
817 for(
int a=0; a<4; a++)
819 for(
int j=0; j<4; j++)
821 tt1=G[a][a]*G[j][j]*pD[a]*t1D[j];
822 for(
int k=0; k<4; k++)
824 tt2=t1KsPip1[k]*G[k][k];
825 for(
int l=0; l<4; l++)
827 temp_PDF += E[a][j][k][l]*t1KmPip2[l]*G[l][l]*tt1*tt2;
832 tmp1 = barr_kspi1*barr_kpi2*barr_kspi1_kpi2*temp_PDF;
836 calt2(pKsPip1,pKmPip2,t2D);
837 for(
int a=0; a<4; a++)
839 for(
int j=0; j<4; j++)
841 temp_PDF += t2D[a][j]*t1KsPip1[a]*t1KmPip2[j]*G[a][a]*G[j][j];
844 B[2] = barrier(2,sD,sKsPip1,sKmPip2,rD2);
845 tmp1 = barr_kspi1*barr_kpi2*
B[2]*temp_PDF;
849 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
850 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
851 Com_Multi(pro_kspi2,pro_kpi1,pro2b);
853 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
854 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
855 if(barr_kspi2_kpi1<0.0)barr_kspi2_kpi1 = barrier(1,sD,sKsPip2,sKmPip1,rD2);
858 for(
int a=0; a<4; a++)
860 temp_PDF += G[a][a]*t1KsPip2[a]*t1KmPip1[a];
862 tmp2 =barr_kspi2*barr_kpi1*temp_PDF;
866 calt1(pKsPip2,pKmPip1,t1D);
867 for(
int a=0; a<4; a++)
869 for(
int j=0; j<4; j++)
871 tt1 = G[a][a]*G[j][j]*pD[a]*t1D[j];
872 for(
int k=0; k<4; k++)
874 tt2 = t1KsPip2[k]*G[k][k];
875 for(
int l=0; l<4; l++)
877 temp_PDF += E[a][j][k][l]*t1KmPip1[l]*G[l][l]*tt1*tt2;
882 tmp2 = barr_kspi2*barr_kpi1*barr_kspi2_kpi1*temp_PDF;
886 calt2(pKsPip2,pKmPip1,t2D);
887 for(
int a=0; a<4; a++)
889 for(
int j=0; j<4; j++)
891 temp_PDF += t2D[a][j]*t1KsPip2[a]*t1KmPip1[j]*G[a][a]*G[j][j];
894 B[2] = barrier(2,sD,sKsPip2,sKmPip1,rD2);
895 tmp2 = barr_kspi2*barr_kpi1*
B[2]*temp_PDF;
903 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
907 KPiSLASS(sKmPip2,sKm,sPip2,pro_kpi2sw);
910 Com_Multi(pro_kspi1,pro_kpi2sw,pro1b);
911 calt1(pKsPip1,pKmPip2,t1D);
913 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
914 if(barr_kspi1_kpi2<0.0) barr_kspi1_kpi2 = barrier(1,sD,sKsPip1,sKmPip2,rD2);
915 for(
int a=0; a<4; a++)
917 temp_PDF += t1D[a]*t1KsPip1[a]*G[a][a];
919 tmp1 = barr_kspi1*barr_kspi1_kpi2*temp_PDF;
923 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
927 KPiSLASS(sKmPip1,sKm,sPip1,pro_kpi1sw);
930 Com_Multi(pro_kspi2,pro_kpi1sw,pro2b);
932 calt1(pKsPip2,pKmPip1,t1D);
933 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
934 if(barr_kspi2_kpi1<0.0) barr_kspi2_kpi1 = barrier(1,sD,sKsPip2,sKmPip1,rD2);
935 for(
int a=0; a<4; a++)
937 temp_PDF += t1D[a]*t1KsPip2[a]*G[a][a];
939 tmp2 = barr_kspi2*barr_kspi2_kpi1*temp_PDF;
946 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
949 if(ispro_kspi1sw==0){
950 KPiSLASS(sKsPip1,sKs,sPip1,pro_kspi1sw);
953 Com_Multi(pro_kpi2,pro_kspi1sw,pro1b);
955 calt1(pKsPip1,pKmPip2,t1D);
956 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
957 if(barr_kspi1_kpi2<0.0) barr_kspi1_kpi2 = barrier(1,sD,sKsPip1,sKmPip2,rD2);
958 for(
int a=0; a<4; a++)
960 temp_PDF += t1D[a]*t1KmPip2[a]*G[a][a];
962 tmp1 = barr_kpi2*barr_kspi1_kpi2*temp_PDF;
966 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
969 if(ispro_kspi2sw==0){
970 KPiSLASS(sKsPip2,sKs,sPip2,pro_kspi2sw);
973 Com_Multi(pro_kpi1,pro_kspi2sw,pro2b);
975 calt1(pKsPip2,pKmPip1,t1D);
976 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
977 if(barr_kspi2_kpi1<0.0) barr_kspi2_kpi1 = barrier(1,sD,sKsPip2,sKmPip1,rD2);
978 for(
int a=0; a<4; a++)
980 temp_PDF += t1D[a]*t1KmPip1[a]*G[a][a];
982 tmp2 = barr_kspi2_kpi1*barr_kpi1*temp_PDF;
989 if(ispro_kspi1sw==0){
990 KPiSLASS(sKsPip1,sKs,sPip1,pro_kspi1sw);
994 KPiSLASS(sKmPip2,sKm,sPip2,pro_kpi2sw);
997 Com_Multi(pro_kspi1sw,pro_kpi2sw,pro1b);
1001 if(ispro_kspi2sw==0){
1002 KPiSLASS(sKsPip2,sKs,sPip2,pro_kspi2sw);
1005 if(ispro_kpi1sw==0){
1006 KPiSLASS(sKmPip1,sKm,sPip1,pro_kpi1sw);
1009 Com_Multi(pro_kspi2sw,pro_kpi1sw,pro2b);
1018 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKs,rRes2,1,pro1);
1020 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
1023 Com_Multi(pro1,pro_kpi1, pro1b);
1025 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
1026 barr_kskpi1_kpi = barrier(1,sKsKmPip1,sKmPip1,sKs,rRes2);
1027 for(
int a=0; a<4; a++)
1029 temp_PDF += Km[a]*t1KmPip1[a]*G[a][a];
1031 tmp1 = barr_kpi1*barr_kskpi1_kpi*temp_PDF;
1034 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,1,pro1);
1036 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
1039 Com_Multi(pro1,pro_kpi2,pro2b);
1041 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
1042 barr_kskpi2_kpi = barrier(1,sKsKmPip2,sKmPip2,sKs,rRes2);
1043 for(
int a=0; a<4; a++)
1045 temp_PDF += Km[a]*t1KmPip2[a]*G[a][a];
1047 tmp2 = barr_kpi2*barr_kskpi2_kpi*temp_PDF;
1053 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,1,pro1);
1055 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
1058 Com_Multi(pro1,pro_kspi1,pro1b);
1060 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
1061 if(barr_kskpi1_kspi<0.0)barr_kskpi1_kspi= barrier(1,sKsKmPip1,sKsPip1,sKm,rRes2);
1062 for(
int a=0; a<4; a++)
1064 temp_PDF += Kp[a]*t1KsPip1[a]*G[a][a];
1066 tmp1 = barr_kspi1*barr_kskpi1_kspi*temp_PDF;
1069 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,1,pro1);
1071 propagatorRBW(mass1sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
1074 Com_Multi(pro1,pro_kspi2,pro2b);
1076 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
1077 if(barr_kskpi2_kspi<0.0)barr_kskpi2_kspi= barrier(1,sKsKmPip2,sKsPip2,sKm,rRes2);
1078 for(
int a=0; a<4; a++)
1080 temp_PDF += Kp[a]*t1KsPip2[a]*G[a][a];
1082 tmp2 = barr_kspi2*barr_kskpi2_kspi*temp_PDF;
1086 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsKm,sPip1,rRes2,0,pro1);
1088 propagatora0980(mass2sq,mass2[i],sKsKm,sKs2,sKm2,pro_ksk);
1091 Com_Multi(pro1,pro_ksk,pro1b);
1095 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsKm,sPip2,rRes2,0,pro1);
1097 propagatora0980(mass2sq,mass2[i],sKsKm,sKs2,sKm2,pro_ksk);
1100 Com_Multi(pro1,pro_ksk,pro2b);
1107 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsKm,sPip1,rRes2,1,pro1);
1109 propagatora0980(mass2sq,mass2[i],sKsKm,sKs2,sKm2,pro_ksk);
1112 Com_Multi(pro1,pro_ksk,pro1b);
1113 calt1(pKsKmPip1,
Pi0,t1D);
1115 if(barr_kskpi1_ksk<0.0) barr_kskpi1_ksk = barrier(1,sKsKmPip1,sKsKm,sPip1,rRes2);
1116 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1117 for(
int a=0; a<4; a++)
1119 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip1_ksk[a];
1121 tmp1 = barr_kskpi1_ksk*barr_ds_kskpi1*temp_PDF;
1124 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsKm,sPip2,rRes2,1,pro1);
1126 propagatora0980(mass2sq,mass2[i],sKsKm,sKs2,sKm2,pro_ksk);
1129 Com_Multi(pro1,pro_ksk,pro2b);
1130 calt1(pKsKmPip2,Pip,t1D);
1132 if(barr_kskpi2_ksk<0.0)barr_kskpi2_ksk = barrier(1,sKsKmPip2,sKsKm,sPip2,rRes2);
1133 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1134 for(
int a=0; a<4; a++)
1136 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip2_ksk[a];
1138 tmp2 = barr_kskpi2_ksk*barr_ds_kskpi2*temp_PDF;
1143 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,g2[i],pro1);
1146 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
1149 Com_Multi(pro1,pro_kspi1,pro1b);
1150 calt1(pKsKmPip1,
Pi0,t1D);
1152 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
1153 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1154 barr_kskpi1_kspi= barrier(2,sKsKmPip1,sKsPip1,sKm,rRes2);
1157 for(
int a=0; a<4; a++)
1159 for(
int j=0; j<4; j++)
1161 temp_PDF += t1D[a]*(pKsKmPip1[a]*pKsKmPip1[j]/sKsKmPip1-G[a][j])*t1KsPip1[j]*G[a][a]*G[j][j];
1164 tmp1 = barr_kspi1*barr_ds_kskpi1*temp_PDF;
1168 for(
int a=0; a<4; a++)
1170 for(
int j=0; j<4; j++)
1172 temp_PDF += t1D[a]*t2KsKmPip1_kspip[a][j]*t1KsPip1[j]*G[a][a]*G[j][j];
1175 tmp1 = barr_kspi1*barr_ds_kskpi1*barr_kskpi1_kspi*temp_PDF;
1179 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,g2[i],pro2);
1182 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
1185 Com_Multi(pro2,pro_kspi2,pro2b);
1187 calt1(pKsKmPip2,Pip,t1D);
1188 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
1189 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1190 barr_kskpi2_kspi = barrier(2,sKsKmPip2,sKsPip2,sKm,rRes2);
1193 for(
int a=0; a<4; a++)
1195 for(
int j=0; j<4; j++)
1197 temp_PDF += t1D[a]*(pKsKmPip2[a]*pKsKmPip2[j]/sKsKmPip2-G[a][j])*t1KsPip2[j]*G[a][a]*G[j][j];
1200 tmp2 = barr_kspi2*barr_ds_kskpi2*temp_PDF;
1204 for(
int a=0; a<4; a++)
1206 for(
int j=0; j<4; j++)
1208 temp_PDF += t1D[a]*t2KsKmPip2_kspip[a][j]*t1KsPip2[j]*G[a][a]*G[j][j];
1211 tmp2 = barr_kspi2*barr_ds_kskpi2*barr_kskpi2_kspi*temp_PDF;
1216 if(modetype[i]==26){
1217 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKs,rRes2,g2[i],pro1);
1220 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
1223 Com_Multi(pro1,pro_kpi1, pro1b);
1224 calt1(pKsKmPip1,
Pi0,t1D);
1226 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
1227 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1228 barr_kskpi1_kpi = barrier(2,sKsKmPip1,sKmPip1,sKs,rRes2);
1231 for(
int a=0; a<4; a++)
1233 for(
int j=0; j<4; j++)
1235 temp_PDF += t1D[a]*(pKsKmPip1[a]*pKsKmPip1[j]/sKsKmPip1-G[a][j])*t1KmPip1[j]*G[a][a]*G[j][j];
1238 tmp1 = barr_kpi1*barr_ds_kskpi1*temp_PDF;
1242 for(
int a=0; a<4; a++)
1244 for(
int j=0; j<4; j++)
1246 temp_PDF += t1D[a]*t2KsKmPip1_kmpip[a][j]*t1KmPip1[j]*G[a][a]*G[j][j];
1249 tmp1 = barr_kpi1*barr_ds_kskpi1*barr_kskpi1_kpi*temp_PDF;
1254 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,g2[i],pro2);
1257 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
1260 Com_Multi(pro2,pro_kpi2, pro2b);
1262 calt1(pKsKmPip2,Pip,t1D);
1263 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
1264 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1265 barr_kskpi2_kpi = barrier(2,sKsKmPip2,sKmPip2,sKs,rRes2);
1268 for(
int a=0; a<4; a++)
1270 for(
int j=0; j<4; j++)
1272 temp_PDF += t1D[a]*(pKsKmPip2[a]*pKsKmPip2[j]/sKsKmPip2-G[a][j])*t1KmPip2[j]*G[a][a]*G[j][j];
1276 tmp2 = barr_kpi2*barr_ds_kskpi2*temp_PDF;
1280 for(
int a=0; a<4; a++)
1282 for(
int j=0; j<4; j++)
1284 temp_PDF += t1D[a]*t2KsKmPip2_kmpip[a][j]*t1KmPip2[j]*G[a][a]*G[j][j];
1287 tmp2 = barr_kpi2*barr_ds_kskpi2*barr_kskpi2_kpi*temp_PDF;
1298 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKs,rRes2,1,pro1);
1300 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
1303 Com_Multi(pro1,pro_kpi1, pro1b);
1305 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
1306 barr_kskpi1_kpi = barrier(1,sKsKmPip1,sKmPip1,sKs,rRes2);
1307 for(
int a=0; a<4; a++)
1309 temp_PDF += Km[a]*t1KmPip1[a]*G[a][a];
1311 tmp1 = barr_kpi1*barr_kskpi1_kpi*temp_PDF;
1314 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,1,pro1);
1316 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
1319 Com_Multi(pro1,pro_kpi2,pro2b);
1321 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
1322 barr_kskpi2_kpi = barrier(1,sKsKmPip2,sKmPip2,sKs,rRes2);
1323 for(
int a=0; a<4; a++)
1325 temp_PDF += Km[a]*t1KmPip2[a]*G[a][a];
1327 tmp2 = barr_kpi2*barr_kskpi2_kpi*temp_PDF;
1334 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,1,pro1);
1336 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
1339 Com_Multi(pro1,pro_kspi1,pro1b);
1341 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
1342 if(barr_kskpi1_kspi<0.0)barr_kskpi1_kspi= barrier(1,sKsKmPip1,sKsPip1,sKm,rRes2);
1343 for(
int a=0; a<4; a++)
1345 temp_PDF += Kp[a]*t1KsPip1[a]*G[a][a];
1347 tmp1 = barr_kspi1*barr_kskpi1_kspi*temp_PDF;
1350 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,1,pro1);
1352 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
1355 Com_Multi(pro1,pro_kspi2,pro2b);
1357 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
1358 if(barr_kskpi2_kspi<0.0)barr_kskpi2_kspi= barrier(1,sKsKmPip2,sKsPip2,sKm,rRes2);
1359 for(
int a=0; a<4; a++)
1361 temp_PDF += Kp[a]*t1KsPip2[a]*G[a][a];
1363 tmp2 = barr_kspi2*barr_kskpi2_kspi*temp_PDF;
1370 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsKm,sPip1,rRes2,0,pro1);
1372 propagatora0980(mass2sq,mass2[i],sKsKm,sKs2,sKm2,pro_ksk);
1375 Com_Multi(pro1,pro_ksk,pro1b);
1379 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsKm,sPip2,rRes2,0,pro1);
1381 propagatora0980(mass2sq,mass2[i],sKsKm,sKs2,sKm2,pro_ksk);
1384 Com_Multi(pro1,pro_ksk,pro2b);
1390 if(modetype[i]==133)
1392 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKs,rRes2,0,pro1);
1393 if(ispro_kpi1sw==0){
1394 KPiSLASS(sKmPip1,sKm,sPip1,pro_kpi1sw);
1397 Com_Multi(pro1,pro_kpi1sw, pro1b);
1400 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,0,pro1);
1401 if(ispro_kpi2sw==0){
1402 KPiSLASS(sKmPip2,sKm,sPip2,pro_kpi2sw);
1405 Com_Multi(pro1,pro_kpi2sw, pro2b);
1412 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKs,rRes2,0,pro1);
1413 if(ispro_kpi1sw==0){
1414 KPiSLASS(sKmPip1,sKm,sPip1,pro_kpi1sw);
1417 Com_Multi(pro1,pro_kpi1sw, pro1b);
1420 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,0,pro1);
1421 if(ispro_kpi2sw==0){
1422 KPiSLASS(sKmPip2,sKm,sPip2,pro_kpi2sw);
1425 Com_Multi(pro1,pro_kpi2sw, pro2b);
1433 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,0,pro1);
1434 if(ispro_kspi1sw==0){
1435 KPiSLASS(sKsPip1,sKs,sPip1,pro_kspi1sw);
1438 Com_Multi(pro1,pro_kspi1sw,pro1b);
1441 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,0,pro1);
1442 if(ispro_kspi2sw==0){
1443 KPiSLASS(sKsPip2,sKs,sPip2,pro_kspi2sw);
1446 Com_Multi(pro1,pro_kspi2sw,pro2b);
1454 if(ispro_kspi1sw==0){
1455 KPiSLASS(sKsPip1,sKs,sPip1,pro_kspi1sw);
1458 if(ispro_kpi1sw==0){
1459 KPiSLASS(sKmPip1,sKm,sPip1,pro_kpi1sw);
1462 Com_Multi(pro_kpi1sw,pro_kspi1sw,pro1b);
1465 if(ispro_kspi2sw==0){
1466 KPiSLASS(sKsPip2,sKs,sPip2,pro_kspi2sw);
1469 if(ispro_kpi2sw==0){
1470 KPiSLASS(sKmPip2,sKm,sPip2,pro_kpi2sw);
1473 Com_Multi(pro_kpi2sw,pro_kspi2sw,pro2b);
1479 if(modetype[i]==11){
1480 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,g2[i],pro1);
1482 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
1485 Com_Multi(pro1,pro_kspi1,pro1b);
1486 calt1(pKsKmPip1,
Pi0,t1D);
1488 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
1489 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1490 barr_kskpi1_kspi= barrier(2,sKsKmPip1,sKsPip1,sKm,rRes2);
1493 for(
int a=0; a<4; a++)
1495 for(
int j=0; j<4; j++)
1497 temp_PDF += t1D[a]*(pKsKmPip1[a]*pKsKmPip1[j]/sKsKmPip1-G[a][j])*t1KsPip1[j]*G[a][a]*G[j][j];
1500 tmp1 = barr_kspi1*barr_ds_kskpi1*temp_PDF;
1504 for(
int a=0; a<4; a++)
1506 for(
int j=0; j<4; j++)
1508 temp_PDF += t1D[a]*t2KsKmPip1_kspip[a][j]*t1KsPip1[j]*G[a][a]*G[j][j];
1511 tmp1 = barr_kspi1*barr_ds_kskpi1*barr_kskpi1_kspi*temp_PDF;
1516 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,g2[i],pro1);
1518 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
1521 Com_Multi(pro1,pro_kspi2,pro2b);
1523 calt1(pKsKmPip2,Pip,t1D);
1524 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
1525 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1526 barr_kskpi2_kspi = barrier(2,sKsKmPip2,sKsPip2,sKm,rRes2);
1529 for(
int a=0; a<4; a++)
1531 for(
int j=0; j<4; j++)
1533 temp_PDF += t1D[a]*(pKsKmPip2[a]*pKsKmPip2[j]/sKsKmPip2-G[a][j])*t1KsPip2[j]*G[a][a]*G[j][j];
1536 tmp2 = barr_kspi2*barr_ds_kskpi2*temp_PDF;
1540 for(
int a=0; a<4; a++)
1542 for(
int j=0; j<4; j++)
1544 temp_PDF += t1D[a]*t2KsKmPip2_kspip[a][j]*t1KsPip2[j]*G[a][a]*G[j][j];
1547 tmp2 = barr_kspi2*barr_ds_kskpi2*barr_kskpi2_kspi*temp_PDF;
1550 if(modetype[i]==1200){
1551 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKs,rRes2,g2[i],pro1);
1556 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
1559 Com_Multi(pro1,pro_kpi1, pro1b);
1560 calt1(pKsKmPip1,
Pi0,t1D);
1562 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
1563 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1564 barr_kskpi1_kpi = barrier(2,sKsKmPip1,sKmPip1,sKs,rRes2);
1567 for(
int a=0; a<4; a++)
1569 for(
int j=0; j<4; j++)
1571 temp_PDF += t1D[a]*(pKsKmPip1[a]*pKsKmPip1[j]/sKsKmPip1-G[a][j])*t1KmPip1[j]*G[a][a]*G[j][j]; }
1573 tmp1 = barr_kpi1*barr_ds_kskpi1*temp_PDF;
1577 for(
int a=0; i<4; i++)
1579 for(
int j=0; j<4; j++)
1581 temp_PDF += t1D[a]*t2KsKmPip1_kmpip[a][j]*t1KmPip1[j]*G[a][a]*G[j][j];
1584 tmp1 = barr_kpi1*barr_ds_kskpi1*barr_kskpi1_kpi*temp_PDF;
1588 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,g2[i],pro2);
1592 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
1595 Com_Multi(pro2,pro_kpi2, pro2b);
1597 calt1(pKsKmPip2,Pip,t1D);
1598 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
1599 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1600 barr_kskpi2_kpi = barrier(2,sKsKmPip2,sKmPip2,sKs,rRes2);
1603 for(
int a=0; a<4; a++)
1605 for(
int j=0; j<4; j++)
1607 temp_PDF += t1D[a]*(pKsKmPip2[a]*pKsKmPip2[j]/sKsKmPip2-G[a][j])*t1KmPip2[j]*G[a][a]*G[j][j];
1610 tmp2 = barr_kpi2*barr_ds_kskpi2*temp_PDF;
1614 for(
int a=0; a<4; a++)
1616 for(
int j=0; j<4; j++)
1618 temp_PDF += t1D[a]*t2KsKmPip2_kmpip[a][j]*t1KmPip2[j]*G[a][a]*G[j][j];
1621 tmp2 = barr_kpi2*barr_ds_kskpi2*barr_kskpi2_kpi*temp_PDF;
1626 if(modetype[i]==1100){
1627 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,g2[i],pro1);
1631 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
1634 Com_Multi(pro1,pro_kspi1,pro1b);
1635 calt1(pKsKmPip1,
Pi0,t1D);
1637 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
1638 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1639 barr_kskpi1_kspi= barrier(2,sKsKmPip1,sKsPip1,sKm,rRes2);
1642 for(
int a=0; a<4; a++)
1644 for(
int j=0; j<4; j++)
1646 temp_PDF += t1D[a]*(pKsKmPip1[a]*pKsKmPip1[j]/sKsKmPip1-G[a][j])*t1KsPip1[j]*G[a][a]*G[j][j];
1649 tmp1 = barr_kspi1*barr_ds_kskpi1*temp_PDF;
1653 for(
int a=0; a<4; a++)
1655 for(
int j=0; j<4; j++)
1657 temp_PDF += t1D[a]*t2KsKmPip1_kspip[a][j]*t1KsPip1[j]*G[a][a]*G[j][j];
1660 tmp1 = barr_kspi1*barr_ds_kskpi1*barr_kskpi1_kspi*temp_PDF;
1665 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,g2[i],pro1);
1669 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
1672 Com_Multi(pro1,pro_kspi2,pro2b);
1674 calt1(pKsKmPip2,Pip,t1D);
1675 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
1676 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1677 barr_kskpi2_kspi = barrier(2,sKsKmPip2,sKsPip2,sKm,rRes2);
1680 for(
int a=0; a<4; a++)
1682 for(
int j=0; j<4; j++)
1684 temp_PDF += t1D[a]*(pKsKmPip2[a]*pKsKmPip2[j]/sKsKmPip2-G[a][j])*t1KsPip2[j]*G[a][a]*G[j][j];
1687 tmp2 = barr_kspi2*barr_ds_kskpi2*temp_PDF;
1691 for(
int a=0; a<4; a++)
1693 for(
int j=0; j<4; j++)
1695 temp_PDF += t1D[a]*t2KsKmPip2_kspip[a][j]*t1KsPip2[j]*G[a][a]*G[j][j];
1698 tmp2 = barr_kspi2*barr_ds_kskpi2*barr_kskpi2_kspi*temp_PDF;
1705 if(modetype[i]==12){
1706 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKs,rRes2,g2[i],pro1);
1708 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
1711 Com_Multi(pro1,pro_kpi1, pro1b);
1712 calt1(pKsKmPip1,
Pi0,t1D);
1714 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
1715 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1716 barr_kskpi1_kpi = barrier(2,sKsKmPip1,sKmPip1,sKs,rRes2);
1719 for(
int a=0; a<4; a++)
1721 for(
int j=0; j<4; j++)
1723 temp_PDF += t1D[a]*(pKsKmPip1[a]*pKsKmPip1[j]/sKsKmPip1-G[a][j])*t1KmPip1[j]*G[a][a]*G[j][j]; }
1725 tmp1 = barr_kpi1*barr_ds_kskpi1*temp_PDF;
1729 for(
int a=0; i<4; i++)
1731 for(
int j=0; j<4; j++)
1733 temp_PDF += t1D[a]*t2KsKmPip1_kmpip[a][j]*t1KmPip1[j]*G[a][a]*G[j][j];
1736 tmp1 = barr_kpi1*barr_ds_kskpi1*barr_kskpi1_kpi*temp_PDF;
1739 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,g2[i],pro2);
1741 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
1744 Com_Multi(pro2,pro_kpi2, pro2b);
1746 calt1(pKsKmPip2,Pip,t1D);
1747 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
1748 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1749 barr_kskpi2_kpi = barrier(2,sKsKmPip2,sKmPip2,sKs,rRes2);
1752 for(
int a=0; a<4; a++)
1754 for(
int j=0; j<4; j++)
1756 temp_PDF += t1D[a]*(pKsKmPip2[a]*pKsKmPip2[j]/sKsKmPip2-G[a][j])*t1KmPip2[j]*G[a][a]*G[j][j];
1759 tmp2 = barr_kpi2*barr_ds_kskpi2*temp_PDF;
1763 for(
int a=0; a<4; a++)
1765 for(
int j=0; j<4; j++)
1767 temp_PDF += t1D[a]*t2KsKmPip2_kmpip[a][j]*t1KmPip2[j]*G[a][a]*G[j][j];
1770 tmp2 = barr_kpi2*barr_ds_kskpi2*barr_kskpi2_kpi*temp_PDF;
1773 if(modetype[i]==1500){
1774 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsKm,sPip1,rRes2,1,pro1);
1778 propagatora0980(mass2sq,mass2[i],sKsKm,sKs2,sKm2,pro_ksk);
1781 Com_Multi(pro1,pro_ksk,pro1b);
1782 calt1(pKsKmPip1,
Pi0,t1D);
1784 if(barr_kskpi1_ksk<0.0) barr_kskpi1_ksk = barrier(1,sKsKmPip1,sKsKm,sPip1,rRes2);
1785 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1786 for(
int a=0; a<4; a++)
1788 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip1_ksk[a];
1790 tmp1 = barr_kskpi1_ksk*barr_ds_kskpi1*temp_PDF;
1793 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsKm,sPip2,rRes2,1,pro1);
1797 propagatora0980(mass2sq,mass2[i],sKsKm,sKs2,sKm2,pro_ksk);
1800 Com_Multi(pro1,pro_ksk,pro2b);
1801 calt1(pKsKmPip2,Pip,t1D);
1803 if(barr_kskpi2_ksk<0.0) barr_kskpi2_ksk = barrier(1,sKsKmPip2,sKsKm,sPip2,rRes2);
1804 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1805 for(
int a=0; a<4; a++)
1807 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip2_ksk[a];
1809 tmp2 = barr_kskpi2_ksk*barr_ds_kskpi2*temp_PDF;
1815 if(modetype[i]==15){
1816 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsKm,sPip1,rRes2,1,pro1);
1818 propagatora0980(mass2sq,mass2[i],sKsKm,sKs2,sKm2,pro_ksk);
1821 Com_Multi(pro1,pro_ksk,pro1b);
1822 calt1(pKsKmPip1,
Pi0,t1D);
1824 if(barr_kskpi1_ksk<0.0) barr_kskpi1_ksk = barrier(1,sKsKmPip1,sKsKm,sPip1,rRes2);
1825 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1826 for(
int a=0; a<4; a++)
1828 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip1_ksk[a];
1830 tmp1 = barr_kskpi1_ksk*barr_ds_kskpi1*temp_PDF;
1833 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsKm,sPip2,rRes2,1,pro1);
1835 propagatora0980(mass2sq,mass2[i],sKsKm,sKs2,sKm2,pro_ksk);
1838 Com_Multi(pro1,pro_ksk,pro2b);
1839 calt1(pKsKmPip2,Pip,t1D);
1841 if(barr_kskpi2_ksk<0.0) barr_kskpi2_ksk = barrier(1,sKsKmPip2,sKsKm,sPip2,rRes2);
1842 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1843 for(
int a=0; a<4; a++)
1845 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip2_ksk[a];
1847 tmp2 = barr_kskpi2_ksk*barr_ds_kskpi2*temp_PDF;
1852 if(modetype[i]==24){
1853 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,1,pro1);
1854 if(ispro_kspi1sw==0){
1855 KPiSLASS(sKsPip1,sKs,sPip1,pro_kspi1sw);
1858 Com_Multi(pro1,pro_kspi1sw,pro1b);
1859 calt1(pKsKmPip1,
Pi0,t1D);
1861 if(barr_kskpi1_kspi<0.0) barr_kskpi1_kspi = barrier(1,sKsKmPip1,sKsPip1,sKm,rRes2);
1862 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1863 for(
int a=0; a<4; a++)
1865 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip1_kspip[a];
1867 tmp1 = barr_kskpi1_kspi*barr_ds_kskpi1*temp_PDF;
1870 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,1,pro1);
1871 if(ispro_kspi2sw==0){
1872 KPiSLASS(sKsPip2,sKs,sPip2,pro_kspi2sw);
1875 Com_Multi(pro1,pro_kspi2sw,pro2b);
1876 calt1(pKsKmPip2,Pip,t1D);
1878 if(barr_kskpi2_kspi<0.0) barr_kskpi2_kspi = barrier(1,sKsKmPip2,sKsPip2,sKm,rRes2);
1879 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1880 for(
int a=0; a<4; a++)
1882 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip2_kspip[a];
1884 tmp2 = barr_kskpi2_kspi*barr_ds_kskpi2*temp_PDF;
1890 if(modetype[i]==27){
1891 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKs,rRes2,1,pro1);
1892 if(ispro_kspi1sw==0){
1893 KPiSLASS(sKsPip1,sKm,sPip1,pro_kpi1sw);
1896 Com_Multi(pro1,pro_kpi1sw,pro1b);
1897 calt1(pKsKmPip1,
Pi0,t1D);
1899 barr_kskpi1_kpi = barrier(1,sKsKmPip1,sKmPip1,sKs,rRes2);
1900 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1901 for(
int a=0; a<4; a++)
1903 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip1_kmpip[a];
1905 tmp1 = barr_kskpi1_kpi*barr_ds_kskpi1*temp_PDF;
1908 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,1,pro1);
1909 if(ispro_kpi2sw==0){
1910 KPiSLASS(sKsPip2,sKs,sPip2,pro_kpi2sw);
1913 Com_Multi(pro1,pro_kpi2sw,pro2b);
1914 calt1(pKsKmPip2,Pip,t1D);
1916 barr_kskpi2_kpi = barrier(1,sKsKmPip2,sKmPip2,sKs,rRes2);
1917 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1918 for(
int a=0; a<4; a++)
1920 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip2_kmpip[a];
1922 tmp2 = barr_kskpi2_kpi*barr_ds_kskpi2*temp_PDF;
1926 if(modetype[i]==244)
1928 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,0,pro1);
1929 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,0,pro3);
1930 Com_Multi(pro1,pro3,pro1b);
1933 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,0,pro1);
1934 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,0,pro3);
1935 Com_Multi(pro1,pro3,pro2b);
1940 if(modetype[i]==280)
1942 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPipPip,sKsPip1,sPip2,rRes2,1,pro1);
1943 if (ispro_kspi1==0){
1944 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
1947 Com_Multi(pro1,pro_kspi1,pro1b);
1950 B[0] = barrier(1,sKsPip1,sKs,sPip1,rRes2);
1951 B[1] = barrier(1,sKsKmPip1,sKsPip1,sKm,rRes2);
1952 B[2] = barrier(1,sD,sKsKmPip1,sPip2,rD2);
1953 for(
int a=0; a<4; a++)
1955 for(
int j=0; j<4; j++)
1957 for(
int k=0; k<4; k++)
1959 for(
int l=0; l<4; l++)
1961 temp_PDF += E[a][j][k][l]*pKsKmPip1[a]*(pKsPip1[j]-Kp[j])*
Pi0[k]*(Km[l]-Pip[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
1966 tmp1 =
B[0]*
B[1]*
B[2]*temp_PDF;
1970 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPipPip,sKsPip2,sPip1,rRes2,1,pro2);
1971 if (ispro_kspi2==0){
1972 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
1975 Com_Multi(pro2,pro_kspi2,pro2b);
1978 B[0] = barrier(1,sKsPip2,sKs,sPip2,rRes2);
1979 B[1] = barrier(1,sKsKmPip2,sKsPip2,sKm,rRes2);
1980 B[2] = barrier(1,sD,sKsKmPip2,sPip1,rD2);
1982 for(
int a=0; a<4; a++)
1984 for(
int j=0; j<4; j++)
1986 for(
int k=0; k<4; k++)
1988 for(
int l=0; l<4; l++)
1990 temp_PDF += E[a][j][k][l]*pKsKmPip2[a]*(pKsPip2[j]-Kp[j])*Pip[k]*(Km[l]-
Pi0[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
1995 tmp2 =
B[0]*
B[1]*
B[2]*temp_PDF;
2000 if(modetype[i]==290){
2001 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPipPip,sKmPip1,sPip2,rRes2,1,pro1);
2003 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
2006 Com_Multi(pro1,pro_kpi1,pro1b);
2008 B[0] = barrier(1,sKmPip1,sKm,sPip1,rRes2);
2009 B[1] = barrier(1,sKsKmPip1,sKmPip1,sKs,rRes2);
2010 B[2] = barrier(1,sD,sKsKmPip1,sPip2,rD2);
2011 for(
int a=0; a<4; a++)
2013 for(
int j=0; j<4; j++)
2015 for(
int k=0; k<4; k++)
2017 for(
int l=0; l<4; l++)
2019 temp_PDF += E[a][j][k][l]*pKsKmPip1[a]*(pKmPip1[j]-Km[j])*
Pi0[k]*(Kp[l]-Pip[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
2024 tmp1 =
B[0]*
B[1]*
B[2]*temp_PDF;
2028 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPipPip,sKmPip2,sPip1,rRes2,1,pro2);
2030 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
2033 Com_Multi(pro2,pro_kpi2,pro2b);
2034 B[0] = barrier(1,sKmPip2,sKm,sPip2,rRes2);
2035 B[1] = barrier(1,sKsKmPip2,sKmPip2,sKs,rRes2);
2036 B[2] = barrier(1,sD,sKsKmPip2,sPip1,rD2);
2038 for(
int a=0; a<4; a++)
2040 for(
int j=0; j<4; j++)
2042 for(
int k=0; k<4; k++)
2044 for(
int l=0; l<4; l++)
2046 temp_PDF += E[a][j][k][l]*pKsKmPip2[a]*(pKmPip2[j]-Km[j])*Pip[k]*(Kp[l]-
Pi0[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
2052 tmp2 =
B[0]*
B[1]*
B[2]*temp_PDF*(-1);
2058 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,1,pro1);
2059 if (ispro_kspi1==0){
2060 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
2063 Com_Multi(pro1,pro_kspi1,pro1b);
2066 B[0] = barrier(1,sKsPip1,sKs,sPip1,rRes2);
2067 B[1] = barrier(1,sKsKmPip1,sKsPip1,sKm,rRes2);
2068 B[2] = barrier(1,sD,sKsKmPip1,sPip2,rD2);
2069 for(
int a=0; a<4; a++)
2071 for(
int j=0; j<4; j++)
2073 for(
int k=0; k<4; k++)
2075 for(
int l=0; l<4; l++)
2077 temp_PDF += E[a][j][k][l]*pKsKmPip1[a]*(pKsPip1[j]-Kp[j])*
Pi0[k]*(Km[l]-Pip[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
2082 tmp1 =
B[0]*
B[1]*
B[2]*temp_PDF;
2084 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,1,pro2);
2085 if (ispro_kspi2==0){
2086 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
2089 Com_Multi(pro2,pro_kspi2,pro2b);
2092 B[0] = barrier(1,sKsPip2,sKs,sPip2,rRes2);
2093 B[1] = barrier(1,sKsKmPip2,sKsPip2,sKm,rRes2);
2094 B[2] = barrier(1,sD,sKsKmPip2,sPip1,rD2);
2096 for(
int a=0; a<4; a++)
2098 for(
int j=0; j<4; j++)
2100 for(
int k=0; k<4; k++)
2102 for(
int l=0; l<4; l++)
2104 temp_PDF += E[a][j][k][l]*pKsKmPip2[a]*(pKsPip2[j]-Kp[j])*Pip[k]*(Km[l]-
Pi0[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
2109 tmp2 =
B[0]*
B[1]*
B[2]*temp_PDF;
2114 if(modetype[i]==29){
2115 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKm,rRes2,1,pro1);
2117 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
2120 Com_Multi(pro1,pro_kpi1,pro1b);
2122 B[0] = barrier(1,sKmPip1,sKm,sPip1,rRes2);
2123 B[1] = barrier(1,sKsKmPip1,sKmPip1,sKs,rRes2);
2124 B[2] = barrier(1,sD,sKsKmPip1,sPip2,rD2);
2125 for(
int a=0; a<4; a++)
2127 for(
int j=0; j<4; j++)
2129 for(
int k=0; k<4; k++)
2131 for(
int l=0; l<4; l++)
2133 temp_PDF += E[a][j][k][l]*pKsKmPip1[a]*(pKmPip1[j]-Km[j])*
Pi0[k]*(Kp[l]-Pip[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
2138 tmp1 =
B[0]*
B[1]*
B[2]*temp_PDF;
2142 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,1,pro2);
2144 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
2147 Com_Multi(pro2,pro_kpi2,pro2b);
2150 B[0] = barrier(1,sKmPip2,sKm,sPip2,rRes2);
2151 B[1] = barrier(1,sKsKmPip2,sKmPip2,sKs,rRes2);
2152 B[2] = barrier(1,sD,sKsKmPip2,sPip1,rD2);
2154 for(
int a=0; a<4; a++)
2156 for(
int j=0; j<4; j++)
2158 for(
int k=0; k<4; k++)
2160 for(
int l=0; l<4; l++)
2162 temp_PDF += E[a][j][k][l]*pKsKmPip2[a]*(pKmPip2[j]-Km[j])*Pip[k]*(Kp[l]-
Pi0[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
2168 tmp2 =
B[0]*
B[1]*
B[2]*temp_PDF*(-1);
2172 if(modetype[i]==16){
2173 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPipPip,sKsPip1,sPip2,rRes2,g2[i],pro1);
2174 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kpi1);
2175 Com_Multi(pro1,pro_kpi1,pro1b);
2177 B[0]= barrier(1,sKsPip1,sKs,sPip1,rRes2);
2178 B[1]= barrier(1,sD,sKsPipPip,sKm,rD2);
2179 B[2]= barrier(2,sKsPipPip,sKsPip1,sPip2,rRes2);
2182 for(
int a=0; a<4; a++)
2184 for(
int j=0; j<4; j++)
2186 temp_PDF += t1D[a]*(pKsPipPip[a]*pKsPipPip[j]/sKsPipPip-G[a][j])*t1KsPip1[j]*G[a][a]*G[j][j];
2189 tmp1 =
B[0]*
B[1]*temp_PDF;
2193 for(
int a=0; a<4; a++)
2195 for(
int j=0; j<4; j++)
2197 temp_PDF += t1D[a]*t2KsPipPip_kspip[a][j]*t1KsPip1[j]*G[a][a]*G[j][j];
2200 tmp1 =
B[0]*
B[1]*
B[2]*temp_PDF;
2205 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPipPip,sKsPip2,sPip1,rRes2,g2[i],pro1);
2206 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kpi2);
2207 Com_Multi(pro1,pro_kpi2,pro2b);
2209 B[0]= barrier(1,sKsPip2,sKs,sPip2,rRes2);
2210 B[1]= barrier(1,sD,sKsPipPip,sKm,rD2);
2211 B[2]= barrier(2,sKsPipPip,sKsPip2,sPip1,rRes2);
2214 for(
int a=0; a<4; a++)
2216 for(
int j=0; j<4; j++)
2218 temp_PDF += t1D[a]*(pKsPipPip[a]*pKsPipPip[j]/sKsPipPip-G[a][j])*t1KsPip2[j]*G[a][a]*G[j][j];
2221 tmp2 =
B[0]*
B[1]*temp_PDF;
2225 for(
int a=0; a<4; a++)
2227 for(
int j=0; j<4; j++)
2229 temp_PDF += t1D[a]*t2KsPipPip_kspip2[a][j]*t1KsPip2[j]*G[a][a]*G[j][j];
2232 tmp2 =
B[0]*
B[1]*
B[2]*temp_PDF;
2236 if(modetype[i]==36){
2237 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPipPip,sKmPip1,sPip2,rRes2,1,pro1);
2238 if(ispro_kspi1sw==0){
2239 KPiSLASS(sKmPip1,sKm,sPip1,pro_kspi1sw);
2242 Com_Multi(pro1,pro_kspi1sw,pro1b);
2243 calt1(pKmPipPip,Km,t1D);
2245 if(barr_kskpi1_kspi<0.0) barr_kskpi1_kspi = barrier(1,sKmPipPip,sKmPip1,sPip2,rRes2);
2246 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKmPipPip,sKs,rD2);
2247 for(
int a=0; a<4; a++)
2249 temp_PDF += G[a][a]*t1D[a]*t1KmPipPip_kmpip[a];
2252 tmp1 = barr_kskpi1_kspi*barr_ds_kskpi1*temp_PDF;
2255 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPipPip,sKmPip2,sPip1,rRes2,1,pro1);
2256 if(ispro_kspi2sw==0){
2257 KPiSLASS(sKmPip2,sKm,sPip2,pro_kspi2sw);
2260 Com_Multi(pro1,pro_kspi2sw,pro2b);
2261 calt1(pKmPipPip,Km,t1D);
2263 if(barr_kskpi2_kspi<0.0) barr_kskpi2_kspi = barrier(1,sKmPipPip,sKmPip2,sPip1,rRes2);
2264 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKmPipPip,sKs,rD2);
2265 for(
int a=0; a<4; a++)
2267 temp_PDF += G[a][a]*t1D[a]*t1KmPipPip_kmpip2[a];
2270 tmp2 = barr_kskpi2_kspi*barr_ds_kskpi2*temp_PDF;
2274 if(modetype[i]==46){
2275 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPipPip,sKsPip1,sPip2,rRes2,1,pro1);
2276 if(ispro_kspi1sw==0){
2277 KPiSLASS(sKsPip1,sKs,sPip1,pro_kspi1sw);
2280 Com_Multi(pro1,pro_kspi1sw,pro1b);
2281 calt1(pKsPipPip,Kp,t1D);
2283 if(barr_kskpi1_kspi<0.0) barr_kskpi1_kspi = barrier(1,sKsPipPip,sKsPip1,sPip2,rRes2);
2284 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsPipPip,sKm,rD2);
2285 for(
int a=0; a<4; a++)
2287 temp_PDF += G[a][a]*t1D[a]*t1KsPipPip_kspip[a];
2290 tmp1 = barr_kskpi1_kspi*barr_ds_kskpi1*temp_PDF;
2292 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPipPip,sKsPip2,sPip1,rRes2,1,pro1);
2293 if(ispro_kspi2sw==0){
2294 KPiSLASS(sKsPip2,sKs,sPip2,pro_kspi2sw);
2297 Com_Multi(pro1,pro_kspi2sw,pro2b);
2298 calt1(pKsPipPip,Kp,t1D);
2300 if(barr_kskpi2_kspi<0.0) barr_kskpi2_kspi = barrier(1,sKsPipPip,sKsPip2,sPip1,rRes2);
2301 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsPipPip,sKm,rD2);
2302 for(
int a=0; a<4; a++)
2304 temp_PDF += G[a][a]*t1D[a]*t1KsPipPip_kspip2[a];
2307 tmp2 = barr_kskpi2_kspi*barr_ds_kskpi2*temp_PDF;
2313 if(modetype[i]==46){
2314 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKs,rRes2,1,pro1);
2315 if(ispro_kspi1sw==0){
2316 KPiSLASS(sKsPip1,sKm,sPip1,pro_kpi1sw);
2319 Com_Multi(pro1,pro_kpi1sw,pro1b);
2320 calt1(pKsKmPip1,
Pi0,t1D);
2322 barr_kskpi1_kpi = barrier(1,sKsKmPip1,sKmPip1,sKs,rRes2);
2323 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
2324 for(
int a=0; a<4; a++)
2326 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip1_kmpip[a];
2328 tmp1 = barr_kskpi1_kpi*barr_ds_kskpi1*temp_PDF;
2331 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,1,pro1);
2332 if(ispro_kpi2sw==0){
2333 KPiSLASS(sKsPip2,sKs,sPip2,pro_kpi2sw);
2336 Com_Multi(pro1,pro_kpi2sw,pro2b);
2337 calt1(pKsKmPip2,Pip,t1D);
2339 barr_kskpi2_kpi = barrier(1,sKsKmPip2,sKmPip2,sKs,rRes2);
2340 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
2341 for(
int a=0; a<4; a++)
2343 temp_PDF += G[a][a]*t1D[a]*t1KsKmPip2_kmpip[a];
2345 tmp2 = barr_kskpi2_kpi*barr_ds_kskpi2*temp_PDF;
2350 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPipPip,sKmPip1,sPip2,rRes2,g2[i],pro1);
2351 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
2352 Com_Multi(pro1,pro_kpi1,pro1b);
2354 B[0]= barrier(1,sKmPip1,sKm,sPip1,rRes2);
2355 B[1]= barrier(1,sD,sKmPipPip,sKs,rD2);
2356 B[2]= barrier(2,sKmPipPip,sKmPip1,sPip2,rRes2);
2359 for(
int a=0; a<4; a++)
2361 for(
int j=0; j<4; j++)
2363 temp_PDF += t1D[a]*(pKmPipPip[a]*pKmPipPip[j]/sKmPipPip-G[a][j])*t1KmPip1[j]*G[a][a]*G[j][j];
2366 tmp1 =
B[0]*
B[1]*temp_PDF;
2370 for(
int a=0; a<4; a++)
2372 for(
int j=0; j<4; j++)
2374 temp_PDF += t1D[a]*t2KmPipPip_kmpip[a][j]*t1KmPip1[j]*G[a][a]*G[j][j];
2377 tmp1 =
B[0]*
B[1]*
B[2]*temp_PDF;
2382 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPipPip,sKmPip2,sPip1,rRes2,g2[i],pro1);
2383 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
2384 Com_Multi(pro1,pro_kpi2,pro2b);
2386 B[0]= barrier(1,sKmPip2,sKm,sPip2,rRes2);
2387 B[1]= barrier(1,sD,sKmPipPip,sKs,rD2);
2388 B[2]= barrier(2,sKmPipPip,sKmPip2,sPip1,rRes2);
2391 for(
int a=0; a<4; a++)
2393 for(
int j=0; j<4; j++)
2395 temp_PDF += t1D[a]*(pKmPipPip[a]*pKmPipPip[j]/sKmPipPip-G[a][j])*t1KmPip2[j]*G[a][a]*G[j][j];
2398 tmp2 =
B[0]*
B[1]*temp_PDF;
2402 for(
int a=0; a<4; a++)
2404 for(
int j=0; j<4; j++)
2406 temp_PDF += t1D[a]*t2KmPipPip_kmpip2[a][j]*t1KmPip2[j]*G[a][a]*G[j][j];
2409 tmp2 =
B[0]*
B[1]*
B[2]*temp_PDF;
2417 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
2420 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,0,pro_kpi2_0);
2422 Com_Multi(pro_kspi1,pro_kpi2_0,pro1b);
2423 calt1(pKsPip1,pKmPip2,t1D);
2425 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
2426 if(barr_kspi1_kpi2<0.0) barr_kspi1_kpi2 = barrier(1,sD,sKsPip1,sKmPip2,rD2);
2427 for(
int a=0; a<4; a++)
2429 temp_PDF += t1D[a]*t1KsPip1[a]*G[a][a];
2431 tmp1 = barr_kspi1*barr_kspi1_kpi2*temp_PDF;
2434 if(ispro_kspi2==0) {
2435 propagatorRBW(mass1sq,mass1[i],width1[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
2439 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,0,pro_kpi1_0);
2440 Com_Multi(pro_kspi2,pro_kpi1_0,pro2b);
2442 calt1(pKsPip2,pKmPip1,t1D);
2443 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
2444 if(barr_kspi2_kpi1<0.0) barr_kspi2_kpi1 = barrier(1,sD,sKsPip2,sKmPip1,rD2);
2445 for(
int a=0; a<4; a++)
2447 temp_PDF += t1D[a]*t1KsPip2[a]*G[a][a];
2449 tmp2 = barr_kspi2*barr_kspi2_kpi1*temp_PDF;
2456 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
2459 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,0,pro_kspi1_0);
2460 Com_Multi(pro_kpi2,pro_kspi1_0,pro1b);
2462 calt1(pKsPip1,pKmPip2,t1D);
2463 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
2464 if(barr_kspi1_kpi2<0.0) barr_kspi1_kpi2 = barrier(1,sD,sKsPip1,sKmPip2,rD2);
2465 for(
int a=0; a<4; a++)
2467 temp_PDF += t1D[a]*t1KmPip2[a]*G[a][a];
2469 tmp1 = barr_kpi2*barr_kspi1_kpi2*temp_PDF;
2473 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
2476 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,0,pro_kspi2_0);
2477 Com_Multi(pro_kpi1,pro_kspi2_0,pro2b);
2479 calt1(pKsPip2,pKmPip1,t1D);
2480 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
2481 if(barr_kspi2_kpi1<0.0) barr_kspi2_kpi1 = barrier(1,sD,sKsPip2,sKmPip1,rD2);
2482 for(
int a=0; a<4; a++)
2484 temp_PDF += t1D[a]*t1KmPip1[a]*G[a][a];
2486 tmp2 = barr_kspi2_kpi1*barr_kpi1*temp_PDF;
2493 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPip1,sKm,sPip1,rRes2,0,pro_kpi1_0);
2494 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,0,pro_kspi2_0);
2495 Com_Multi(pro_kpi1_0,pro_kpi2_0,pro1b);
2498 propagatorRBW(mass1sq,mass1[i],width1[i],sKmPip2,sKm,sPip2,rRes2,0,pro_kpi2_0);
2499 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,0,pro_kspi1_0);
2500 Com_Multi(pro_kspi2_0,pro_kpi1_0,pro2b);
2504 if(modetype[i]==1000)
2506 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,1,pro1);
2509 if (ispro_kspi1==0){
2510 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
2513 Com_Multi(pro1,pro_kspi1,pro1b);
2516 B[0] = barrier(1,sKsPip1,sKs,sPip1,rRes2);
2517 B[1] = barrier(1,sKsKmPip1,sKsPip1,sKm,rRes2);
2518 B[2] = barrier(1,sD,sKsKmPip1,sPip2,rD2);
2519 for(
int a=0; a<4; a++)
2521 for(
int j=0; j<4; j++)
2523 for(
int k=0; k<4; k++)
2525 for(
int l=0; l<4; l++)
2527 temp_PDF += E[a][j][k][l]*pKsKmPip1[a]*(pKsPip1[j]-Kp[j])*
Pi0[k]*(Km[l]-Pip[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
2532 tmp1 =
B[0]*
B[1]*
B[2]*temp_PDF;
2536 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,1,pro2);
2540 if (ispro_kspi2==0){
2541 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
2544 Com_Multi(pro2,pro_kspi2,pro2b);
2547 B[0] = barrier(1,sKsPip2,sKs,sPip2,rRes2);
2548 B[1] = barrier(1,sKsKmPip2,sKsPip2,sKm,rRes2);
2549 B[2] = barrier(1,sD,sKsKmPip2,sPip1,rD2);
2551 for(
int a=0; a<4; a++)
2553 for(
int j=0; j<4; j++)
2555 for(
int k=0; k<4; k++)
2557 for(
int l=0; l<4; l++)
2559 temp_PDF += E[a][j][k][l]*pKsKmPip2[a]*(pKsPip2[j]-Kp[j])*Pip[k]*(Km[l]-
Pi0[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
2564 tmp2 =
B[0]*
B[1]*
B[2]*temp_PDF;
2569 if(modetype[i]==2000){
2570 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKm,rRes2,1,pro1);
2575 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
2578 Com_Multi(pro1,pro_kpi1,pro1b);
2580 B[0] = barrier(1,sKmPip1,sKm,sPip1,rRes2);
2581 B[1] = barrier(1,sKsKmPip1,sKmPip1,sKs,rRes2);
2582 B[2] = barrier(1,sD,sKsKmPip1,sPip2,rD2);
2583 for(
int a=0; a<4; a++)
2585 for(
int j=0; j<4; j++)
2587 for(
int k=0; k<4; k++)
2589 for(
int l=0; l<4; l++)
2591 temp_PDF += E[a][j][k][l]*pKsKmPip1[a]*(pKmPip1[j]-Km[j])*
Pi0[k]*(Kp[l]-Pip[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
2596 tmp1 =
B[0]*
B[1]*
B[2]*temp_PDF;
2600 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,1,pro2);
2604 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
2607 Com_Multi(pro2,pro_kpi2,pro2b);
2610 B[0] = barrier(1,sKmPip2,sKm,sPip2,rRes2);
2611 B[1] = barrier(1,sKsKmPip2,sKmPip2,sKs,rRes2);
2612 B[2] = barrier(1,sD,sKsKmPip2,sPip1,rD2);
2614 for(
int a=0; a<4; a++)
2616 for(
int j=0; j<4; j++)
2618 for(
int k=0; k<4; k++)
2620 for(
int l=0; l<4; l++)
2622 temp_PDF += E[a][j][k][l]*pKsKmPip2[a]*(pKmPip2[j]-Km[j])*Pip[k]*(Kp[l]-
Pi0[l])*G[a][a]*G[j][j]*G[k][k]*G[l][l];
2628 tmp2 =
B[0]*
B[1]*
B[2]*temp_PDF*(-1);
2631 if(modetype[i]==1001)
2633 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKmPip1,sKs,rRes2,1,pro1);
2637 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
2640 Com_Multi(pro1,pro_kpi1, pro1b);
2642 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
2643 barr_kskpi1_kpi = barrier(1,sKsKmPip1,sKmPip1,sKs,rRes2);
2644 for(
int a=0; a<4; a++)
2646 temp_PDF += Km[a]*t1KmPip1[a]*G[a][a];
2648 tmp1 = barr_kpi1*barr_kskpi1_kpi*temp_PDF;
2651 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKmPip2,sKs,rRes2,1,pro1);
2655 propagatorRBW(mass2sq,mass2[i],width2[i],sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
2658 Com_Multi(pro1,pro_kpi2,pro2b);
2660 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
2661 barr_kskpi2_kpi = barrier(1,sKsKmPip2,sKmPip2,sKs,rRes2);
2662 for(
int a=0; a<4; a++)
2664 temp_PDF += Km[a]*t1KmPip2[a]*G[a][a];
2666 tmp2 = barr_kpi2*barr_kskpi2_kpi*temp_PDF;
2670 if(modetype[i]==2001)
2672 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip1,sKsPip1,sKm,rRes2,1,pro1);
2677 propagatorRBW(mass2sq,mass2[i],width2[i],sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
2680 Com_Multi(pro1,pro_kspi1,pro1b);
2682 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
2683 if(barr_kskpi1_kspi<0.0)barr_kskpi1_kspi= barrier(1,sKsKmPip1,sKsPip1,sKm,rRes2);
2684 for(
int a=0; a<4; a++)
2686 temp_PDF += Kp[a]*t1KsPip1[a]*G[a][a];
2688 tmp1 = barr_kspi1*barr_kskpi1_kspi*temp_PDF;
2691 propagatorRBW(mass1sq,mass1[i],width1[i],sKsKmPip2,sKsPip2,sKm,rRes2,1,pro1);
2695 propagatorRBW(mass1sq,mass2[i],width2[i],sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
2698 Com_Multi(pro1,pro_kspi2,pro2b);
2700 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
2701 if(barr_kskpi2_kspi<0.0)barr_kskpi2_kspi= barrier(1,sKsKmPip2,sKsPip2,sKm,rRes2);
2702 for(
int a=0; a<4; a++)
2704 temp_PDF += Kp[a]*t1KsPip2[a]*G[a][a];
2706 tmp2 = barr_kspi2*barr_kskpi2_kspi*temp_PDF;
2708 if(modetype[i]==1100||modetype[i]==1200||modetype[i]==1500||modetype[i]==1001||modetype[i]==2001||modetype[i]==1000||modetype[i]==2000||modetype[i]==290||modetype[i]==280||modetype[i]==244||modetype[i]==888||modetype[i]==133||modetype[i]==200||modetype[i]==99||modetype[i]==36||modetype[i]==46||modetype[i]==16||modetype[i]==2||modetype[i]==21||modetype[i]==22||modetype[i]==8||modetype[i]==4||modetype[i]==14||modetype[i]==5||modetype[i]==17||modetype[i]==3||modetype[i]==7||modetype[i]==10||modetype[i]==9||modetype[i]==13||modetype[i]==20||modetype[i]==11||modetype[i]==12||modetype[i]==15||modetype[i]==19||modetype[i]==26||modetype[i]==24||modetype[i]==28||modetype[i]==29||modetype[i]==27||modetype[i]==6||modetype[i]==1||modetype[i]==30||modetype[i]==31||modetype[i]==32){
2709 amp_tmp[0] = tmp1*pro1b[0] + tmp2*pro2b[0];
2710 amp_tmp[1] = tmp1*pro1b[1] + tmp2*pro2b[1];
2712 if(modetype[i]==1111){
2719 Com_Multi(amp_tmp,cof,amp_PDF);
2720 PDF[0] += amp_PDF[0];
2721 PDF[1] += amp_PDF[1];
2723 double value = PDF[0]*PDF[0] + PDF[1]*PDF[1];
2724 if(value <=0) value = 0.00000000001;
double sin(const BesAngle a)
double cos(const BesAngle a)
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
EvtComplex exp(const EvtComplex &c)
*******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 saves r n generator level $ !Flag for chat level in !Latex Output unit
****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 decay(EvtParticle *p)
virtual ~EvtDToKSKmpippip()
void getName(std::string &name)
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)
static int getStdHep(EvtId id)
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)