36 model_name=
"DsToKSKmPipPip";
100 Ga0_980 = 5.0000e-02;
101 Geta1475 = 9.0000e-02;
106 ma0_980 = 9.9000e-01;
107 meta1475 = 1.4750e+00;
117 mass_Pion2 = 0.0194797849;
118 mass_2Pion = 0.27914;
119 math_2pi = 6.2831852;
129 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
131 { { {{0,0,0,0}, {0,0,0,0}, {0,0,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,-1}, {0,0,0,0}, {0,1,0,0} },
134 {{0,0,0,0}, {0,0,1,0}, {0,-1,0,0}, {0,0,0,0} } },
135 { {{0,0,0,0}, {0,0,0,0}, {0,0,0,-1}, {0,0,1,0} },
136 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} },
137 {{0,0,0,1}, {0,0,0,0}, {0,0,0,0}, {-1,0,0,0}},
138 {{0,0,-1,0}, {0,0,0,0}, {1,0,0,0}, {0,0,0,0} } },
139 { {{0,0,0,0}, {0,0,0,1}, {0,0,0,0}, {0,-1,0,0}},
140 {{0,0,0,-1}, {0,0,0,0}, {0,0,0,0}, {1,0,0,0} },
141 {{0,0,0,0}, {0,0,0,0}, {0,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,-1,0}, {0,1,0,0}, {0,0,0,0} },
144 {{0,0,1,0}, {0,0,0,0}, {-1,0,0,0}, {0,0,0,0} },
145 {{0,-1,0,0}, {1,0,0,0}, {0,0,0,0}, {0,0,0,0} },
146 {{0,0,0,0}, {0,0,0,0}, {0,0,0,0}, {0,0,0,0} } } };
147 for (
int i=0; i<4; i++) {
148 for (
int j=0; j<4; j++) {
150 for (
int k=0; k<4; k++) {
151 for (
int l=0; l<4; l++) {
152 E[i][j][k][l] = EE[i][j][k][l];
202 double Pip[4],Pip2[4],Km[4],Ks[4];
203 Ks[0] = ks.
get(0); Km[0] = km.
get(0); Pip[0] = pip.
get(0); Pip2[0] = pip2.
get(0);
204 Ks[1] = ks.
get(1); Km[1] = km.
get(1); Pip[1] = pip.
get(1); Pip2[1] = pip2.
get(1);
205 Ks[2] = ks.
get(2); Km[2] = km.
get(2); Pip[2] = pip.
get(2); Pip2[2] = pip2.
get(2);
206 Ks[3] = ks.
get(3); Km[3] = km.
get(3); Pip[3] = pip.
get(3); Pip2[3] = pip2.
get(3);
219 int g0[11]={1,1,1,1,1,1,1,1,1,1,1};
222 calEvaMy(Ks,Km,Pip,Pip2,mass,width,rho,phi,g0,modetype,nstates,value);
228void EvtDsToKSKmPipPip::Com_Multi(
double a1[2],
double a2[2],
double res[2]){
229 res[0] = a1[0]*a2[0]-a1[1]*a2[1];
230 res[1] = a1[1]*a2[0]+a1[0]*a2[1];
232void EvtDsToKSKmPipPip::Com_Divide(
double a1[2],
double a2[2],
double res[2]){
233 res[0] = (a1[0]*a2[0]+a1[1]*a2[1])/(a2[0]*a2[0]+a2[1]*a2[1]);
234 res[1] = (a1[1]*a2[0]-a1[0]*a2[1])/(a2[0]*a2[0]+a2[1]*a2[1]);
236double EvtDsToKSKmPipPip::SCADot(
double a1[4],
double a2[4])
239 _cal = a1[0]*a2[0]-a1[1]*a2[1]-a1[2]*a2[2]-a1[3]*a2[3];
242double EvtDsToKSKmPipPip::barrier(
int l,
double sa,
double sb,
double sc,
double r2)
245 double tmp = sa+sb-sc;
246 double q = 0.25*tmp*tmp/sa-sb;
247 if (
q < 0)
q = 1e-16;
250 F = sqrt(2.0*z/(1.0+z));
254 F = sqrt(13.0*z2/(9.0+3.0*z+z2));
260void EvtDsToKSKmPipPip::calt1(
double daug1[4],
double daug0[4],
double t1[4]){
263 for(
int i=0; i<4; i++){
264 pa[i] = daug1[i] + daug0[i];
265 qa[i] = daug1[i] - daug0[i];
269 for(
int i=0; i<4; i++){
270 t1[i] = qa[i] - pq/p*pa[i];
273void EvtDsToKSKmPipPip::calt2(
double daug1[4],
double daug0[4],
double t2[4][4]){
276 calt1(daug1,daug0,t1);
277 r = SCADot(t1,t1)/3.0;
278 for(
int i=0; i<4; i++) {
279 pa[i] = daug1[i] + daug0[i];
282 for(
int i=0; i<4; i++) {
283 for(
int j=0; j<4; j++) {
284 t2[i][j] = t1[i]*t1[j] - r*(G[i][j]-pa[i]*pa[j]/p);
289double EvtDsToKSKmPipPip::wid(
double mass,
double sa,
double sb,
double sc,
double r2,
int l){
294 double tmp1 = sa+tmp;
295 double q = 0.25*tmp1*tmp1/sa-sb;
297 double tmp2 = sa0+tmp;
298 double q0 = 0.25*tmp2*tmp2/sa0-sb;
303 if(l == 0) {widm = sqrt(
t)*
mass/m;}
304 else if(l == 1) {widm =
t*sqrt(
t)*
mass/m*(1+z0)/(1+z);}
305 else if(l == 2) {widm =
t*
t*sqrt(
t)*
mass/m*(9+3*z0+z0*z0)/(9+3*z+z*z);}
308void EvtDsToKSKmPipPip::Flatte_rhoab(
double sa,
double sb,
double sc,
double rho[2])
310 double q = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
312 rho[0]=2* sqrt(
q/sa);
317 rho[1]=2*sqrt(-
q/sa);
320void EvtDsToKSKmPipPip::propagatora0980(
double mass,
double sx,
double *sb,
double *sc,
double prop[2])
322 double unit[2]={1.0};
325 Flatte_rhoab(sx,sb[0],sc[0],rho1);
327 Flatte_rhoab(sx,sb[1],sc[1],rho2);
329 double gKK_a980=0.892*0.341, gPiEta_a980=0.341;
330 double tmp1[2]={gKK_a980,0};
332 double tmp2[2]={gPiEta_a980,0};
334 Com_Multi(tmp1,rho1,tmp11);
335 Com_Multi(tmp2,rho2,tmp22);
336 double tmp3[2]={tmp11[0]+tmp22[0],tmp11[1]+tmp22[1]};
338 Com_Multi(tmp3, ci,tmp31);
339 double tmp4[2]={
mass*
mass-sx-tmp31[0], -1.0*tmp31[1]};
340 Com_Divide(
unit,tmp4, prop);
342void EvtDsToKSKmPipPip::propagatorRBW(
double mass,
double width,
double sa,
double sb,
double sc,
double r2,
int l,
double prop[2]){
347 b[1] = -
mass*width*wid(mass,sa,sb,sc,r2,l);
348 Com_Divide(a,
b,prop);
350void EvtDsToKSKmPipPip::KPiSLASS(
double sa,
double sb,
double sc,
double prop[2]) {
351 const double m1430 = 1.441;
352 const double sa0 = 2.076481;
353 const double w1430 = 0.193;
354 const double Lass1 = 0.25/sa0;
356 double tmp1 = sa0+tmp;
357 double q0 = Lass1*tmp1*tmp1-sb;
359 double tmp2 = sa+tmp;
360 double qs = 0.25*tmp2*tmp2/sa-sb;
362 double width = w1430*
q*m1430/sqrt(sa*q0);
363 double temp_R = atan(m1430*width/(sa0-sa));
364 if(temp_R<0) temp_R += math_pi;
365 double deltaR = -1.915 + temp_R;
366 double temp_F = atan(0.226*
q/(2.0-3.8194*qs));
367 if(temp_F<0) temp_F += math_pi;
368 double deltaF = 0.002 + temp_F;
369 double deltaS = deltaR + 2.0*deltaF;
370 double t1 = 0.96*
sin(deltaF);
371 double t2 =
sin(deltaR);
377 prop[0] = t1*CF[0] + t2*
CS[0];
378 prop[1] = t1*CF[1] + t2*
CS[1];
381void EvtDsToKSKmPipPip::calEvaMy(
double* Ks,
double* Km,
double* Pip,
double* Pip2,
double *mass1,
double *width1,
double *amp,
double *phase,
int* g0,
int* modetype,
int nstates,
double & Result)
383 double pD[4],pKsPip1[4],pKmPip2[4],pKsPip2[4],pKmPip1[4],pKsKmPip1[4],pKsKmPip2[4],pKsKm[4],pKmPipPip[4];
384 for(
int i=0;i!=4;i++)
386 pD[i] = Ks[i]+Pip[i]+Km[i]+Pip2[i];
387 pKsPip1[i] =Ks[i]+Pip[i];
388 pKsPip2[i] =Ks[i]+Pip2[i];
389 pKmPip1[i] =Km[i]+Pip[i];
390 pKmPip2[i] =Km[i]+Pip2[i];
391 pKsKm[i] = Km[i]+Ks[i];
392 pKsKmPip1[i] = pKsPip1[i] + Km[i];
393 pKsKmPip2[i] = pKsPip2[i] + Km[i];
394 pKmPipPip[i] = Km[i]+Pip[i]+Pip2[i];
396 double sPip2,sPip1,sKs,sKm,sKsPip1,sKmPip2,sD,sKsPip2,sKmPip1,sKsKmPip1,sKsKmPip2,sKsKm,sKmPipPip;
400 sPip1= SCADot(Pip,Pip);
401 sPip2= SCADot(Pip2,Pip2);
402 sKsPip1 = SCADot(pKsPip1,pKsPip1);
403 sKsPip2 = SCADot(pKsPip2,pKsPip2);
404 sKmPip1 = SCADot(pKmPip1,pKmPip1);
405 sKmPip2 = SCADot(pKmPip2,pKmPip2);
406 sKsKmPip1 = SCADot(pKsKmPip1,pKsKmPip1);
407 sKsKmPip2 = SCADot(pKsKmPip2,pKsKmPip2);
408 sKmPipPip = SCADot(pKmPipPip,pKmPipPip);
409 sKsKm =SCADot(pKsKm,pKsKm);
411 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];
413 calt1(Ks,Pip, t1KsPip1);
414 calt1(Ks,Pip2,t1KsPip2);
415 calt1(Km,Pip, t1KmPip1);
416 calt1(Km,Pip2,t1KmPip2);
417 calt1(pKsPip1,Km,t1KsKmPip1_kspip);
418 calt1(pKsPip2,Km,t1KsKmPip2_kspip);
419 calt1(pKmPip1,Ks,t1KsKmPip1_kmpip);
420 calt1(pKmPip2,Ks,t1KsKmPip2_kmpip);
421 calt1(pKsKm,Pip,t1KsKmPip1_ksk);
422 calt1(pKsKm,Pip2,t1KsKmPip2_ksk);
424 calt2(pKsPip1,Km,t2KsKmPip1_kspip);
425 calt2(pKsPip2,Km,t2KsKmPip2_kspip);
426 calt2(pKmPip1,Ks,t2KsKmPip1_kmpip);
427 calt2(pKmPip2,Ks,t2KsKmPip2_kmpip);
429 double cof[2],amp_tmp[2],amp_PDF[2], PDF[2];
434 double temp_PDF,tmp1,tmp2,tmp1_a,tmp2_a,temp_PDF_a,tt1,tt2,tt3,tt4;
435 double pro1b[2],pro2b[2],pro1b_a[2],pro2b_a[2],pro_ksk[2],pro3[2],pro4[2],pro1[2],pro2[2];
436 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];
437 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;
438 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;
440 double t1D[4],t2D[4][4],
B[3];
441 double sKs2[2]={sKs,mass_Pion*mass_Pion};
442 double sKm2[2]={sKm,mass_Eta*mass_Eta};
444 for(
int i=0; i<nstates; i++){
447 tmp1 = 0;tmp2 = 0;temp_PDF = 0;tmp1_a = 0;tmp2_a = 0;temp_PDF_a = 0;
449 cof[0] = amp[i]*
cos(phase[i]);
450 cof[1] = amp[i]*
sin(phase[i]);
458 propagatorRBW(mKstp,GKstp,sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
462 propagatorRBW(mKst0,GKst0,sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
465 Com_Multi(pro_kspi1,pro_kpi2,pro1b);
467 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
468 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
469 for(
int i=0; i<4; i++)
471 temp_PDF += G[i][i]*t1KsPip1[i]*t1KmPip2[i];
473 tmp1 = barr_kspi1*barr_kpi2*temp_PDF;
479 propagatorRBW(mKstp,GKstp,sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
483 propagatorRBW(mKst0,GKst0,sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
486 Com_Multi(pro_kspi2,pro_kpi1,pro2b);
488 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
489 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
490 for(
int i=0; i<4; i++)
492 temp_PDF += G[i][i]*t1KsPip2[i]*t1KmPip1[i];
494 tmp2 =barr_kspi2*barr_kpi1*temp_PDF;
503 propagatorRBW(mKstp,GKstp,sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
507 propagatorRBW(mKst0,GKst0,sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
510 Com_Multi(pro_kspi1,pro_kpi2,pro1b);
512 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
513 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
514 if(barr_kspi1_kpi2<0.0) barr_kspi1_kpi2 = barrier(1,sD,sKsPip1,sKmPip2,rD2);
515 calt1(pKsPip1,pKmPip2,t1D);
516 for(
int i=0; i<4; i++)
518 for(
int j=0; j<4; j++)
520 tt1=G[i][i]*G[j][j]*pD[i]*t1D[j];
521 for(
int k=0; k<4; k++)
523 tt2=t1KsPip1[k]*G[k][k];
524 for(
int l=0; l<4; l++)
526 temp_PDF += E[i][j][k][l]*t1KmPip2[l]*G[l][l]*tt1*tt2;
531 tmp1 = barr_kspi1*barr_kpi2*barr_kspi1_kpi2*temp_PDF;
535 propagatorRBW(mKstp,GKstp,sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
539 propagatorRBW(mKst0,GKst0,sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
542 Com_Multi(pro_kspi2,pro_kpi1,pro2b);
544 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
545 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
546 if(barr_kspi2_kpi1<0.0)barr_kspi2_kpi1 = barrier(1,sD,sKsPip2,sKmPip1,rD2);
547 calt1(pKsPip2,pKmPip1,t1D);
548 for(
int i=0; i<4; i++)
550 for(
int j=0; j<4; j++)
552 tt1 = G[i][i]*G[j][j]*pD[i]*t1D[j];
553 for(
int k=0; k<4; k++)
555 tt2 = t1KsPip2[k]*G[k][k];
556 for(
int l=0; l<4; l++)
558 temp_PDF += E[i][j][k][l]*t1KmPip1[l]*G[l][l]*tt1*tt2;
563 tmp2 = barr_kspi2*barr_kpi1*barr_kspi2_kpi1*temp_PDF;
570 propagatorRBW(mKstp,GKstp,sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
574 propagatorRBW(mKst0,GKst0,sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
577 Com_Multi(pro_kspi1,pro_kpi2,pro1b);
579 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
580 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
581 calt2(pKsPip1,pKmPip2,t2D);
582 for(
int i=0; i<4; i++)
584 for(
int j=0; j<4; j++)
586 temp_PDF += t2D[i][j]*t1KsPip1[i]*t1KmPip2[j]*G[i][i]*G[j][j];
589 B[2] = barrier(2,sD,sKsPip1,sKmPip2,rD2);
590 tmp1 = barr_kspi1*barr_kpi2*
B[2]*temp_PDF;
594 propagatorRBW(mKstp,GKstp,sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
598 propagatorRBW(mKst0,GKst0,sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
601 Com_Multi(pro_kspi2,pro_kpi1,pro2b);
603 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
604 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
605 calt2(pKsPip2,pKmPip1,t2D);
606 for(
int i=0; i<4; i++)
608 for(
int j=0; j<4; j++)
610 temp_PDF += t2D[i][j]*t1KsPip2[i]*t1KmPip1[j]*G[i][i]*G[j][j];
613 B[2] = barrier(2,sD,sKsPip2,sKmPip1,rD2);
614 tmp2 = barr_kspi2*barr_kpi1*
B[2]*temp_PDF;
620 propagatorRBW(meta1475,Geta1475,sKsKmPip1,sKsKm,sPip1,rRes2,0,pro1);
622 propagatora0980(ma0_980,sKsKm,sKs2,sKm2,pro_ksk);
626 Com_Multi(pro1,pro_ksk,pro1b);
630 propagatorRBW(meta1475,Geta1475,sKsKmPip2,sKsKm,sPip2,rRes2,0,pro1);
632 propagatora0980(ma0_980,sKsKm,sKs2,sKm2,pro_ksk);
636 Com_Multi(pro1,pro_ksk,pro2b);
643 propagatorRBW(meta1475,Geta1475,sKsKmPip1,sKmPip1,sKs,rRes2,1,pro1);
645 propagatorRBW(mKst0,GKst0,sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
648 Com_Multi(pro1,pro_kpi1, pro1b);
650 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
651 if(barr_kskpi1_kpi<0.0) barr_kskpi1_kpi = barrier(1,sKsKmPip1,sKmPip1,sKs,rRes2);
652 for(
int a=0; a<4; a++)
654 temp_PDF += Ks[a]*t1KmPip1[a]*G[a][a];
656 tmp1 = barr_kpi1*barr_kskpi1_kpi*temp_PDF;
659 propagatorRBW(meta1475,Geta1475,sKsKmPip2,sKmPip2,sKs,rRes2,1,pro1);
661 propagatorRBW(mKst0,GKst0,sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
664 Com_Multi(pro1,pro_kpi2,pro2b);
666 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
667 if(barr_kskpi2_kpi<0.0) barr_kskpi2_kpi = barrier(1,sKsKmPip2,sKmPip2,sKs,rRes2);
668 for(
int a=0; a<4; a++)
670 temp_PDF += Ks[a]*t1KmPip2[a]*G[a][a];
672 tmp2 = barr_kpi2*barr_kskpi2_kpi*temp_PDF;
678 propagatorRBW(meta1475,Geta1475,sKsKmPip1,sKsPip1,sKm,rRes2,1,pro1);
680 propagatorRBW(mKstp,GKstp,sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
683 Com_Multi(pro1,pro_kspi1,pro1b);
685 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
686 if(barr_kskpi1_kspi<0.0)barr_kskpi1_kspi= barrier(1,sKsKmPip1,sKsPip1,sKm,rRes2);
687 for(
int a=0; a<4; a++)
689 temp_PDF += Km[a]*t1KsPip1[a]*G[a][a];
691 tmp1 = barr_kspi1*barr_kskpi1_kspi*temp_PDF;
694 propagatorRBW(meta1475,Geta1475,sKsKmPip2,sKsPip2,sKm,rRes2,1,pro1);
696 propagatorRBW(mKstp,GKstp,sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
699 Com_Multi(pro1,pro_kspi2,pro2b);
701 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
702 if(barr_kskpi2_kspi<0.0)barr_kskpi2_kspi= barrier(1,sKsKmPip2,sKsPip2,sKm,rRes2);
703 for(
int a=0; a<4; a++)
705 temp_PDF += Km[a]*t1KsPip2[a]*G[a][a];
707 tmp2 = barr_kspi2*barr_kskpi2_kspi*temp_PDF;
713 propagatorRBW(mf1285,Gf1285,sKsKmPip1,sKsKm,sPip1,rRes2,1,pro1);
715 propagatora0980(ma0_980,sKsKm,sKs2,sKm2,pro_ksk);
718 Com_Multi(pro1,pro_ksk,pro1b);
719 calt1(pKsKmPip1,Pip2,t1D);
721 if(barr_kskpi1_ksk<0.0) barr_kskpi1_ksk = barrier(1,sKsKmPip1,sKsKm,sPip1,rRes2);
722 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
723 for(
int i=0; i<4; i++)
725 temp_PDF += G[i][i]*t1D[i]*t1KsKmPip1_ksk[i];
727 tmp1 = barr_kskpi1_ksk*barr_ds_kskpi1*temp_PDF;
730 propagatorRBW(mf1285,Gf1285,sKsKmPip2,sKsKm,sPip2,rRes2,1,pro1);
732 propagatora0980(ma0_980,sKsKm,sKs2,sKm2,pro_ksk);
735 Com_Multi(pro1,pro_ksk,pro2b);
736 calt1(pKsKmPip2,Pip,t1D);
738 if(barr_kskpi2_ksk<0.0)barr_kskpi2_ksk = barrier(1,sKsKmPip2,sKsKm,sPip2,rRes2);
739 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
740 for(
int i=0; i<4; i++)
742 temp_PDF += G[i][i]*t1D[i]*t1KsKmPip2_ksk[i];
744 tmp2 = barr_kskpi2_ksk*barr_ds_kskpi2*temp_PDF;
752 propagatorRBW(mKstp,GKstp,sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
756 Com_Multi(pro1,pro_kspi1,pro1b);
757 calt1(pKsKmPip1,Pip2,t1D);
759 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
760 if(barr_ds_kskpi1<0.0) barr_ds_kskpi1 = barrier(1,sD,sKsKmPip1,sPip2,rD2);
761 barr_kskpi1_kspi= barrier(2,sKsKmPip1,sKsPip1,sKm,rRes2);
762 for(
int i=0; i<4; i++)
764 for(
int j=0; j<4; j++)
766 temp_PDF += t1D[i]*(pKsKmPip1[i]*pKsKmPip1[j]/sKsKmPip1-G[i][j])*t1KsPip1[j]*G[i][i]*G[j][j];
769 tmp1 = barr_kspi1*barr_ds_kskpi1*temp_PDF;
776 propagatorRBW(mKstp,GKstp,sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
779 Com_Multi(pro1,pro_kspi2,pro2b);
782 calt1(pKsKmPip2,Pip,t1D);
783 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
784 if(barr_ds_kskpi2<0.0) barr_ds_kskpi2 = barrier(1,sD,sKsKmPip2,sPip1,rD2);
785 barr_kskpi2_kspi = barrier(2,sKsKmPip2,sKsPip2,sKm,rRes2);
786 for(
int i=0; i<4; i++)
788 for(
int j=0; j<4; j++)
790 temp_PDF += t1D[i]*(pKsKmPip2[i]*pKsKmPip2[j]/sKsKmPip2-G[i][j])*t1KsPip2[j]*G[i][i]*G[j][j];
793 tmp2 = barr_kspi2*barr_ds_kskpi2*temp_PDF;
800 propagatorRBW(mKstp,GKstp,sKsPip1,sKs,sPip1,rRes2,1,pro_kspi1);
803 KPiSLASS(sKmPip2,sKm,sPip2,pro_kpi2sw);
804 Com_Multi(pro_kspi1,pro_kpi2sw,pro1b);
805 calt1(pKsPip1,pKmPip2,t1D);
807 if(barr_kspi1<0.0) barr_kspi1 = barrier(1,sKsPip1,sKs,sPip1,rRes2);
808 if(barr_kspi1_kpi2<0.0) barr_kspi1_kpi2 = barrier(1,sD,sKsPip1,sKmPip2,rD2);
809 for(
int a=0; a<4; a++)
811 temp_PDF += t1D[a]*t1KsPip1[a]*G[a][a];
813 tmp1 = barr_kspi1*barr_kspi1_kpi2*temp_PDF;
817 propagatorRBW(mKstp,GKstp,sKsPip2,sKs,sPip2,rRes2,1,pro_kspi2);
820 KPiSLASS(sKmPip1,sKm,sPip1,pro_kpi1sw);
821 Com_Multi(pro_kspi2,pro_kpi1sw,pro2b);
823 calt1(pKsPip2,pKmPip1,t1D);
824 if(barr_kspi2<0.0) barr_kspi2 = barrier(1,sKsPip2,sKs,sPip2,rRes2);
825 if(barr_kspi2_kpi1<0.0) barr_kspi2_kpi1 = barrier(1,sD,sKsPip2,sKmPip1,rD2);
826 for(
int a=0; a<4; a++)
828 temp_PDF += t1D[a]*t1KsPip2[a]*G[a][a];
830 tmp2 = barr_kspi2*barr_kspi2_kpi1*temp_PDF;
837 propagatorRBW(mKst0,GKst0,sKmPip2,sKm,sPip2,rRes2,1,pro_kpi2);
840 KPiSLASS(sKsPip1,sKs,sPip1,pro_kspi1sw);
841 Com_Multi(pro_kpi2,pro_kspi1sw,pro1b);
843 calt1(pKsPip1,pKmPip2,t1D);
844 if(barr_kpi2<0.0) barr_kpi2 = barrier(1,sKmPip2,sKm,sPip2,rRes2);
845 if(barr_kspi1_kpi2<0.0) barr_kspi1_kpi2 = barrier(1,sD,sKsPip1,sKmPip2,rD2);
846 for(
int a=0; a<4; a++)
848 temp_PDF += t1D[a]*t1KmPip2[a]*G[a][a];
850 tmp1 = barr_kpi2*barr_kspi1_kpi2*temp_PDF;
854 propagatorRBW(mKst0,GKst0,sKmPip1,sKm,sPip1,rRes2,1,pro_kpi1);
857 KPiSLASS(sKsPip2,sKs,sPip2,pro_kspi2sw);
858 Com_Multi(pro_kpi1,pro_kspi2sw,pro2b);
860 calt1(pKsPip2,pKmPip1,t1D);
861 if(barr_kpi1<0.0) barr_kpi1 = barrier(1,sKmPip1,sKm,sPip1,rRes2);
862 if(barr_kspi2_kpi1<0.0) barr_kspi2_kpi1 = barrier(1,sD,sKsPip2,sKmPip1,rD2);
863 for(
int a=0; a<4; a++)
865 temp_PDF += t1D[a]*t1KmPip1[a]*G[a][a];
867 tmp2 = barr_kspi2_kpi1*barr_kpi1*temp_PDF;
872 propagatorRBW(meta1475,Geta1475,sKsKmPip1,sKsPip1,sKm,rRes2,0,pro1);
873 KPiSLASS(sKsPip1,sKs,sPip1,pro_kspi1sw);
874 Com_Multi(pro1,pro_kspi1sw,pro1b);
877 propagatorRBW(meta1475,Geta1475,sKsKmPip2,sKsPip2,sKm,rRes2,0,pro1);
878 KPiSLASS(sKsPip2,sKs,sPip2,pro_kspi2sw);
879 Com_Multi(pro1,pro_kspi2sw,pro2b);
886 if(modetype[i]==1||modetype[i]==2||modetype[i]==3||modetype[i]==8||modetype[i]==17||modetype[i]==5||modetype[i]==21||modetype[i]==22||modetype[i]==4||modetype[i]==14||modetype[i]==20){
887 amp_tmp[0] = tmp1*pro1b[0] + tmp2*pro2b[0];
888 amp_tmp[1] = tmp1*pro1b[1] + tmp2*pro2b[1];
899 Com_Multi(amp_tmp,cof,amp_PDF);
900 PDF[0] += amp_PDF[0];
901 PDF[1] += amp_PDF[1];
907 double value = PDF[0]*PDF[0] + PDF[1]*PDF[1];
908 if(value <=0) {value = 1e-20;}
double sin(const BesAngle a)
double cos(const BesAngle a)
*******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 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 getName(std::string &name)
void decay(EvtParticle *p)
virtual ~EvtDsToKSKmPipPip()
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)