40 phi[1] = 3.42566005625144;
41 rho[1] = 0.481320242396153;
42 phi[2] = 3.38836604528211;
43 rho[2] = 0.692817392287617;
44 phi[3] = 2.09747486815378;
45 rho[3] = 0.642052025575875;
46 phi[4] = -1.19528927010597;
47 rho[4] = 0.363639226481389;
55 if(Uspin==1&&Daug0Id==130){
93 mass_Pion2 = 0.0194797849;
109 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
110 for (
int i=0; i<4; i++) {
111 for (
int j=0; j<4; j++) {
120 double P1[4], P2[4], P3[4];
121 P1[0] = k0l[3]; P1[1] = k0l[0]; P1[2] = k0l[1]; P1[3] = k0l[2];
122 P2[0] = km[3] ; P2[1] = km[0] ; P2[2] = km[1] ; P2[3] = km[2] ;
123 P3[0] = kp[3] ; P3[1] = kp[0] ; P3[2] = kp[1] ; P3[3] = kp[2] ;
125 if(Daug0Id==310) SorL =
true;
else SorL =
false;
127 int spin[5]={0,1,0,0,0};
130 int g0[5]={5,1,3,1,1};
131 double r0[5] = {3,3,3,3,3};
132 double r1[5] = {5,5,5,5,5};
135 calPDF(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, r0, r1, 0, nstates, PDFD0);
136 }
else if((!SorL)&&Uspin==1){
137 int g0[5]={5,1,3,1,1};
138 double r0[5] = {6.82071036651904,2.89695915812383,3,3,-6.61721570909587};
139 double r1[5] = {1.80820371593891,-2.15090641236998,5,5,-0.972853397735864};
142 calPDF(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, r0, r1, 0, nstates, PDFD0);
144 int g0[5]={5,1,3,1,1};
145 double r0[5] = {3,3,3,3,3};
146 double r1[5] = {5,5,5,5,5};
149 calPDF(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, r0, r1, 0, nstates, PDFD0);
156void D0ToKSLKK::Com_Multi(
double a1[2],
double a2[2],
double res[2])
158 res[0] = a1[0]*a2[0]-a1[1]*a2[1];
159 res[1] = a1[1]*a2[0]+a1[0]*a2[1];
161void D0ToKSLKK::Com_Divide(
double a1[2],
double a2[2],
double res[2])
163 double tmp = a2[0]*a2[0]+a2[1]*a2[1];
164 res[0] = (a1[0]*a2[0]+a1[1]*a2[1])/tmp;
165 res[1] = (a1[1]*a2[0]-a1[0]*a2[1])/tmp;
168double D0ToKSLKK::SCADot(
double a1[4],
double a2[4])
170 double _cal = a1[0]*a2[0]-a1[1]*a2[1]-a1[2]*a2[2]-a1[3]*a2[3];
173double D0ToKSLKK::barrier(
int l,
double sa,
double sb,
double sc,
double r,
double mass)
175 double q = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
182 double q0 = (sa0+sb-sc)*(sa0+sb-sc)/(4*sa0)-sb;
188 if(l == 1) F = sqrt((1+z0)/(1+z));
189 if(l == 2) F = sqrt((9+3*z0+z0*z0)/(9+3*z+z*z));
193void D0ToKSLKK::calt1(
double daug1[4],
double daug2[4],
double t1[4])
197 for(
int i=0; i<4; i++) {
198 pa[i] = daug1[i] + daug2[i];
199 qa[i] = daug1[i] - daug2[i];
204 for(
int i=0; i<4; i++) {
205 t1[i] = qa[i] - tmp*pa[i];
208void D0ToKSLKK::calt2(
double daug1[4],
double daug2[4],
double t2[4][4])
212 calt1(daug1,daug2,t1);
213 r = SCADot(t1,t1)/3.0;
214 for(
int i=0; i<4; i++) {
215 pa[i] = daug1[i] + daug2[i];
218 for(
int i=0; i<4; i++) {
219 for(
int j=0; j<4; j++) {
220 t2[i][j] = t1[i]*t1[j] - r*(G[i][j]-pa[i]*pa[j]/p);
225void D0ToKSLKK::propagatorCBW(
double mass,
double width,
double sx,
double prop[2])
232 Com_Divide(a,
b,prop);
234double D0ToKSLKK::wid(
double mass2,
double mass,
double sa,
double sb,
double sc,
double r2,
int l)
239 double tmp1 = sa+tmp;
240 double q = 0.25*tmp1*tmp1/sa-sb;
243 double tmp2 = mass2+tmp;
244 double q0 = 0.25*tmp2*tmp2/mass2-sb;
250 if(l == 0) {widm = sqrt(
t)*
mass/m;}
251 else if(l == 1) {widm =
t*sqrt(
t)*
mass/m*(1+z0)/(1+z);}
252 else if(l == 2) {widm =
t*
t*sqrt(
t)*
mass/m*(9+3*z0+z0*z0)/(9+3*z+z*z);}
255double D0ToKSLKK::widl1(
double mass2,
double mass,
double sa,
double sb,
double sc,
double r2)
260 double tmp1 = sa+tmp;
261 double q = 0.25*tmp1*tmp1/sa-sb;
264 double tmp2 = mass2+tmp;
265 double q0 = 0.25*tmp2*tmp2/mass2-sb;
270 double F = (1+z0)/(1+z);
272 widm =
t*sqrt(
t)*
mass/m*F;
275void D0ToKSLKK::propagatorRBW(
double mass,
double width,
double sa,
double sb,
double sc,
double r2,
int l,
double prop[2])
283 b[1] = -
mass*width*wid(mass2,mass,sa,sb,sc,r2,l);
284 Com_Divide(a,
b,prop);
287void D0ToKSLKK::propagatorFlatte(
double mass,
double width,
double sa,
double prop[2]){
290 double rhoPi[2], rhoKa[2];
292 q2_Pi = 0.25*sa-mPi*mPi;
293 q2_Ka = 0.25*sa-mKa*mKa;
296 rhoPi[0] = 2.0*sqrt(q2_Pi/sa);
301 rhoPi[1] = 2.0*sqrt(-q2_Pi/sa);
305 rhoKa[0] = 2.0*sqrt(q2_Ka/sa);
310 rhoKa[1] = 2.0*sqrt(-q2_Ka/sa);
330 b[0] =
mass*
mass - sa + 0.165*rhoPi[1] + 0.69465*rhoKa[1];
331 b[1] = - (0.165*rhoPi[0] + 0.69465*rhoKa[0]);
332 Com_Divide(a,
b,prop);
338void D0ToKSLKK::propagatorGS(
double mass,
double width,
double sa,
double sb,
double sc,
double r2,
double prop[2])
343 double tmp1 = sa+tmp;
344 double q2 = 0.25*tmp1*tmp1/sa-sb;
348 double tmp2 = mass2+tmp;
349 double q02 = 0.25*tmp2*tmp2/mass2-sb;
351 if(q02<0) q02 = -q02;
354 double q0 = sqrt(q02);
357 double tmp3 = log(mass+2*q0)+1.2760418309;
359 double h = GS1*
q/m*(log(m+2*
q)+1.2760418309);
360 double h0 = GS1*q0/
mass*tmp3;
361 double dh = h0*(0.125/q02-0.5/mass2)+GS3/mass2;
362 double d = GS2/q02*tmp3+GS3*
mass/q0-GS4*
mass/q03;
363 double f = mass2/q03*(q2*(h-h0)+(mass2-sa)*q02*dh);
365 a[0] = 1.0+d*width/
mass;
367 b[0] = mass2-sa+width*
f;
368 b[1] = -
mass*width*widl1(mass2,mass,sa,sb,sc,r2);
369 Com_Divide(a,
b,prop);
371void D0ToKSLKK::KPiSLASS(
double sa,
double sb,
double sc,
double prop[2]) {
372 const double m1430 = 1.441;
373 const double sa0 = 2.076481;
374 const double w1430 = 0.193;
375 const double Lass1 = 0.25/sa0;
377 double tmp1 = sa0+tmp;
378 double q0 = Lass1*tmp1*tmp1-sb;
381 double tmp2 = sa+tmp;
382 double qs = 0.25*tmp2*tmp2/sa-sb;
384 double width = w1430*
q*m1430/sqrt(sa*q0);
385 double temp_R = atan(m1430*width/(sa0-sa));
386 if(temp_R<0) temp_R += math_pi;
387 double deltaR = -109.7*math_pi/180.0 + temp_R;
388 double temp_F = atan(0.226*
q/(2.0-3.8194*qs));
389 if(temp_F<0) temp_F += math_pi;
390 double deltaF = 0.1*math_pi/180.0 + temp_F;
391 double deltaS = deltaR + 2.0*deltaF;
392 double t1 = 0.96*
sin(deltaF);
393 double t2 =
sin(deltaR);
399 prop[0] = t1*CF[0] + t2*
CS[0];
400 prop[1] = t1*CF[1] + t2*
CS[1];
403void D0ToKSLKK::Flatte_rhoab(
double sa,
double sb,
double sc,
double rho[2]){
404 double q = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
406 rho[0]=2* sqrt(
q/sa);
411 rho[1]=2*sqrt(-
q/sa);
415void D0ToKSLKK::propagatorKstr1430(
double mass,
double sx,
double *sb,
double *sc,
double prop[2])
417 double unit[2]={1.0};
420 Flatte_rhoab(sx,sb[0],sc[0],rho1);
422 Flatte_rhoab(sx,sb[1],sc[1],rho2);
423 double gKPi_Kstr1430=0.2990, gEtaPK_Kstr1430=0.0529;
424 double tmp1[2]={gKPi_Kstr1430,0};
426 double tmp2[2]={gEtaPK_Kstr1430,0};
428 Com_Multi(tmp1,rho1,tmp11);
429 Com_Multi(tmp2,rho2,tmp22);
430 double tmp3[2]={tmp11[0]+tmp22[0],tmp11[1]+tmp22[1]};
432 Com_Multi(tmp3, ci,tmp31);
433 double tmp4[2]={
mass*
mass-sx-tmp31[0], -1.0*tmp31[1]};
434 Com_Divide(
unit,tmp4, prop);
437void D0ToKSLKK::propagatora0980p(
double mass,
double sx,
double *sb,
double *sc,
double prop[2])
439 double unit[2]={1.0};
442 Flatte_rhoab(sx,sb[0],sc[0],rho1);
444 Flatte_rhoab(sx,sb[1],sc[1],rho2);
445 double gKK_a0980p=0.341*0.892, gEtapi_a0980p=0.341;
446 double tmp1[2]={gKK_a0980p,0};
448 double tmp2[2]={gEtapi_a0980p,0};
450 Com_Multi(tmp1,rho1,tmp11);
451 Com_Multi(tmp2,rho2,tmp22);
452 double tmp3[2]={tmp11[0]+tmp22[0],tmp11[1]+tmp22[1]};
454 Com_Multi(tmp3, ci,tmp31);
455 double tmp4[2]={
mass*
mass-sx-tmp31[0], -1.0*tmp31[1]};
456 Com_Divide(
unit,tmp4, prop);
459void D0ToKSLKK::propagatora0980pfloated(
double mass,
double sx,
double *sb,
double *sc,
double gKK,
double prop[2])
461 double unit[2]={1.0};
464 Flatte_rhoab(sx,sb[0],sc[0],rho1);
466 Flatte_rhoab(sx,sb[1],sc[1],rho2);
467 double gKK_a0980p=0.341*gKK, gEtapi_a0980p=0.341;
468 double tmp1[2]={gKK_a0980p,0};
470 double tmp2[2]={gEtapi_a0980p,0};
472 Com_Multi(tmp1,rho1,tmp11);
473 Com_Multi(tmp2,rho2,tmp22);
474 double tmp3[2]={tmp11[0]+tmp22[0],tmp11[1]+tmp22[1]};
476 Com_Multi(tmp3, ci,tmp31);
477 double tmp4[2]={
mass*
mass-sx-tmp31[0], -1.0*tmp31[1]};
478 Com_Divide(
unit,tmp4, prop);
482void D0ToKSLKK::propagatora0980wm(
double mass,
double width,
double sx,
double sb,
double sc,
double prop[2])
484 double unit[2]={1.0};
487 double tmp1[2]={
mass,0};
488 double tmp2[2]={width,0};
489 double tmp11[2],tmp22[2];
490 Flatte_rhoab(sx,sb,sc,rho1);
491 Com_Multi(tmp1,rho1,tmp11);
492 Com_Multi(tmp11,tmp2,tmp22);
494 Com_Multi(tmp22, ci,tmp3);
495 double tmp4[2]={
mass*
mass-sx-tmp3[0], -1.0*tmp3[1]};
496 Com_Divide(
unit,tmp4, prop);
499void D0ToKSLKK::propagatora09800(
double mass,
double sx,
double *sb,
double *sc,
double prop[2])
501 double unit[2]={1.0};
504 Flatte_rhoab(sx,sb[0],sc[0],rho1);
506 Flatte_rhoab(sx,sb[1],sc[1],rho2);
508 Flatte_rhoab(sx,sb[2],sc[2],rho3);
509 double gKK_a09800=0.341*0.892, gEtapi_a09800=0.341, gK0K0_a09800=0.341*0.892;
510 double tmp1[2]={gKK_a09800,0};
512 double tmp2[2]={gEtapi_a09800,0};
514 double tmp3[2]={gK0K0_a09800,0};
516 Com_Multi(tmp1,rho1,tmp11);
517 Com_Multi(tmp2,rho2,tmp22);
518 Com_Multi(tmp3,rho3,tmp33);
519 double tmp4[2]={tmp11[0]+tmp22[0]+tmp33[0],tmp11[1]+tmp22[1]+tmp33[1]};
521 Com_Multi(tmp4, ci,tmp41);
522 double tmp5[2]={
mass*
mass-sx-tmp41[0], -1.0*tmp41[1]};
523 Com_Divide(
unit,tmp5, prop);
526void D0ToKSLKK::propagatora09800floated(
double mass,
double sx,
double *sb,
double *sc,
double gKK,
double prop[2])
528 double unit[2]={1.0};
531 Flatte_rhoab(sx,sb[0],sc[0],rho1);
533 Flatte_rhoab(sx,sb[1],sc[1],rho2);
535 Flatte_rhoab(sx,sb[2],sc[2],rho3);
536 double gKK_a09800=0.341*gKK, gEtapi_a09800=0.341, gK0K0_a09800=0.341*gKK;
537 double tmp1[2]={gKK_a09800,0};
539 double tmp2[2]={gEtapi_a09800,0};
541 double tmp3[2]={gK0K0_a09800,0};
543 Com_Multi(tmp1,rho1,tmp11);
544 Com_Multi(tmp2,rho2,tmp22);
545 Com_Multi(tmp3,rho3,tmp33);
546 double tmp4[2]={tmp11[0]+tmp22[0]+tmp33[0],tmp11[1]+tmp22[1]+tmp33[1]};
548 Com_Multi(tmp4, ci,tmp41);
549 double tmp5[2]={
mass*
mass-sx-tmp41[0], -1.0*tmp41[1]};
550 Com_Divide(
unit,tmp5, prop);
556void D0ToKSLKK::propagatora098002channel(
double mass,
double sx,
double *sb,
double *sc,
double prop[2])
558 double unit[2]={1.0};
561 Flatte_rhoab(sx,sb[0],sc[0],rho1);
563 Flatte_rhoab(sx,sb[1],sc[1],rho2);
564 double gKK_a09800=0.341*0.892, gEtapi_a09800=0.341;
565 double tmp1[2]={gKK_a09800,0};
567 double tmp2[2]={gEtapi_a09800,0};
569 Com_Multi(tmp1,rho1,tmp11);
570 Com_Multi(tmp2,rho2,tmp22);
571 double tmp4[2]={tmp11[0]+tmp22[0],tmp11[1]+tmp22[1]};
573 Com_Multi(tmp4, ci,tmp41);
574 double tmp5[2]={
mass*
mass-sx-tmp41[0], -1.0*tmp41[1]};
575 Com_Divide(
unit,tmp5, prop);
579void D0ToKSLKK::rhoab(
double sa,
double sb,
double sc,
double res[2]) {
580 double tmp = sa+sb-sc;
581 double q = 0.25*tmp*tmp/sa-sb;
583 res[0]=2.0*sqrt(
q/sa);
587 res[1]=2.0*sqrt(-
q/sa);
590void D0ToKSLKK::rho4Pi(
double sa,
double res[2]) {
591 double temp = 1.0-0.3116765584/sa;
593 res[0]=sqrt(temp)/(1.0+
exp(9.8-3.5*sa));
597 res[1]=sqrt(-temp)/(1.0+
exp(9.8-3.5*sa));
601void D0ToKSLKK::propagatorsigma500(
double sa,
double sb,
double sc,
double prop[2]) {
602 double f = 0.5843+1.6663*sa;
603 const double M = 0.9264;
604 const double mass2 = 0.85821696;
605 const double mpi2d2 = 0.00973989245;
606 double g1 =
f*(sa-mpi2d2)/(mass2-mpi2d2)*
exp((mass2-sa)/1.082);
607 double rho1s[2], rho1M[2], rho2s[2], rho2M[2], rho1[2], rho2[2];
608 rhoab(sa,sb,sc,rho1s);
609 rhoab(mass2,sb,sc,rho1M);
612 Com_Divide(rho1s,rho1M,rho1);
613 Com_Divide(rho2s,rho2M,rho2);
617 b[0] = mass2-sa+M*(
g1*rho1[1]+0.0024*rho2[1]);
618 b[1] = -M*(
g1*rho1[0]+0.0024*rho2[0]);
619 Com_Divide(a,
b,prop);
622void D0ToKSLKK::getprop(
double sa,
double sb,
double sc,
double mass,
double width,
double prop[2]){
623 double prop1[2], prop2[2];
624 propagatorGS(mass,width,sa,sb,sc,9.0,prop1);
625 propagatorRBW(0.783,0.008,sa,sb,sc,3.0,1,prop2);
626 double coef_omega[2];
627 coef_omega[0] = rho_omega*
cos(phi_omega),
628 coef_omega[1] = rho_omega*
sin(phi_omega);
631 Com_Multi(coef_omega,prop2,temp);
632 temp[0] =
one[0] + 0.783*0.783*temp[0];
633 temp[1] =
one[1] + 0.783*0.783*temp[1];
634 Com_Multi(prop1,temp,prop);
636double D0ToKSLKK::DDalitz(
double P1[4],
double P2[4],
double P3[4],
int Ang,
double mass){
638 double temp_PDF, v_re;
641 double B[2], s1, s2, s3, sR, sD;
642 for(
int i=0; i<4; i++){
643 pR[i] = P1[i] + P2[i];
644 pD[i] = pR[i] + P3[i];
652 for(
int i=0; i!=4; i++){
653 for(
int j=0; j!=4; j++){
655 if(i==0) G[i][j] = 1;
667 B[0] = barrier(1,sR,s1,s2,3.0,mass);
668 B[1] = barrier(1,sD,sR,s3,5.0,mDM);
675 for(
int i=0; i<4; i++){
676 temp_PDF += t1[i]*T1[i]*G[i][i];
680 B[0] = barrier(2,sR,s1,s2,3.0,mass);
681 B[1] = barrier(2,sD,sR,s3,5.0,mDM);
684 double t2[4][4], T2[4][4];
688 for(
int i=0; i<4; i++){
689 for(
int j=0; j<4; j++){
690 temp_PDF += t2[i][j]*T2[j][i]*G[i][i]*G[j][j];
694 v_re = temp_PDF*
B[0]*
B[1];
698void D0ToKSLKK::calPDF(
double *Ks0,
double *K1,
double *K2,
double* mass1,
double* width1,
699 double* amp,
double* phase,
700 int* g0,
int* spin,
int* modetype,
701 double* r0,
double* r1,
int first,
int last,
double PDF[2])
703 double P12[4], P23[4], P13[4];
704 double cof[2], amp_PDF[2];
706 for(
int i=0; i<4; i++){
707 P12[i] = K1[i] + Ks0[i];
708 P13[i] = K2[i] + Ks0[i];
709 P23[i] = K1[i] + K2[i];
711 s12 = SCADot(P12,P12);
712 s13 = SCADot(P13,P13);
713 s23 = SCADot(P23,P23);
715 s1 = SCADot(Ks0,Ks0);
718 double pro[2], temp_PDF, amp_tmp[2];
727 for(
int i=first; i<last; i++) {
731 cof[0] = amp[i]*
cos(phase[i]);
732 cof[1] = amp[i]*
sin(phase[i]);
736 if(modetype[i] == 12){
737 temp_PDF = DDalitz(Ks0, K1, K2, spin[i], mass1[i]);
738 if(g0[i]==1) propagatorRBW(mass1[i],width1[i],
s12,mass_KS*mass_KS,mKa2,rRes2,spin[i],pro);
740 double s11[2]={mass_KS*mass_KS,
mPi*
mPi};
741 double s22[2]={mKa*mKa, mEta*mEta};
742 propagatora0980p(mass1[i],
s12,s11,s22,pro);
744 if(g0[i]==3) propagatora0980wm(mass1[i],width1[i],
s12,mass_KS*mass_KS,mKa*mKa,pro);
749 amp_tmp[0] = temp_PDF*pro[0];
750 amp_tmp[1] = temp_PDF*pro[1];
755 if(modetype[i] == 13){
756 temp_PDF = DDalitz(Ks0, K2, K1, spin[i], mass1[i]);
757 if(g0[i]==1) propagatorRBW(mass1[i],width1[i],s13,mass_KS*mass_KS,mKa2,rRes2,spin[i],pro);
759 double s11[2]={mass_KS*mass_KS,
mPi*
mPi};
760 double s22[2]={mKa*mKa, mEta*mEta};
761 propagatora0980p(mass1[i],s13,s11,s22,pro);
763 if(g0[i]==3) propagatora0980wm(mass1[i],width1[i],s13,mass_KS*mass_KS,mKa*mKa,pro);
765 double s11[2]={mass_KS*mass_KS,
mPi*
mPi};
766 double s22[2]={mKa*mKa, mEta*mEta};
767 propagatora0980pfloated(mass1[i],s13,s11,s22,r0[i],pro);
769 if(g0[i]==5) propagatorGS(mass1[i],width1[i],s13,mass_KS*mass_KS,mKa2,rRes2,pro);
775 amp_tmp[0] = temp_PDF*pro[0];
776 amp_tmp[1] = temp_PDF*pro[1];
780 if(modetype[i] == 23){
781 temp_PDF = DDalitz(K1, K2, Ks0, spin[i], mass1[i]);
786 if(g0[i]==1) propagatorRBW(mass1[i],width1[i],
s23,mKa2,mKa2,rRes2,spin[i],pro);
788 double s11[3]={mKa*mKa,
mPi*
mPi, mass_KS*mass_KS};
789 double s22[3]={mKa*mKa, mEta*mEta, mass_KS*mass_KS};
790 propagatora09800(mass1[i],
s23,s11,s22,pro);
793 double s11[3]={mKa*mKa,
mPi*
mPi};
794 double s22[3]={mKa*mKa, mEta*mEta};
795 propagatora098002channel(mass1[i],
s23,s11,s22,pro);
797 if(g0[i]==4){ propagatorFlatte(mass1[i],width1[i],
s23,pro); }
798 if(g0[i]==5) propagatora0980wm(mass1[i],width1[i],
s23,mKa*mKa,mKa*mKa,pro);
800 double s11[3]={mKa*mKa,
mPi*
mPi, mass_KS*mass_KS};
801 double s22[3]={mKa*mKa, mEta*mEta, mass_KS*mass_KS};
802 propagatora09800floated(mass1[i],
s23,s11,s22,r0[i],pro);
804 amp_tmp[0] = temp_PDF*pro[0];
805 amp_tmp[1] = temp_PDF*pro[1];
809 if(modetype[i] == 232){
810 temp_PDF = DDalitz(K1, K2, Ks0, spin[i], mass1[i]);
815 if(g0[i]==1) propagatorRBW(mass1[i],width1[i],
s23,mKa2,mKa2,rRes2,spin[i],pro);
817 double s11[3]={mKa*mKa,
mPi*
mPi, mass_KS*mass_KS};
818 double s22[3]={mKa*mKa, mEta*mEta, mass_KS*mass_KS};
819 propagatora09800(mass1[i],
s23,s11,s22,pro);
822 double s11[3]={mKa*mKa,
mPi*
mPi};
823 double s22[3]={mKa*mKa, mEta*mEta};
824 propagatora098002channel(mass1[i],
s23,s11,s22,pro);
826 if(g0[i]==4){ propagatorFlatte(mass1[i],width1[i],
s23,pro); }
827 if(g0[i]==5) propagatora0980wm(mass1[i],width1[i],
s23,mKa*mKa,mKa*mKa,pro);
829 double s11[3]={mKa*mKa,
mPi*
mPi, mass_KS*mass_KS};
830 double s22[3]={mKa*mKa, mEta*mEta, mass_KS*mass_KS};
831 propagatora09800floated(mass1[i],
s23,s11,s22,r0[i],pro);
834 double uspinbr[2], coff[2];
835 coff[0] = r0[i]*
cos(r1[i]);
836 coff[1] = r0[i]*
sin(r1[i]);
839 uspinbr[0] =
unit[0] - 2*((0.22650*0.22650)/(1.-(0.22650*0.22650)))*coff[0];
840 uspinbr[1] =
unit[1] - 2*((0.22650*0.22650)/(1.-(0.22650*0.22650)))*coff[1];
843 amp_tmpp[0] = temp_PDF*pro[0];
844 amp_tmpp[1] = temp_PDF*pro[1];
846 Com_Multi(uspinbr,amp_tmpp,amp_tmp);
849 if(modetype[i] == 100){
861 Com_Multi(amp_tmp,cof,amp_PDF);
862 PDF[0] += amp_PDF[0];
863 PDF[1] += amp_PDF[1];
868void D0ToKSLKK::calEva_QC(
double* Ks0,
double* K1,
double* K2,
double* mass1,
double* width1,
double* amp,
double* phase,
int* g0,
int* spin,
int* modetype,
double* r0,
double* r1,
double &Result,
int first,
int last,
int charge,
bool SorL)
870 double PDFD0[2],PDFD0bar[2];
872 calPDF(Ks0,K1,K2,mass1,width1,amp,phase,g0,spin,modetype,r0,r1,first,last,PDFD0);
873 Ks0[0]= Ks0[0]; Ks0[1]= (-1.0)*Ks0[1]; Ks0[2]= (-1.0)*Ks0[2]; Ks0[3]= (-1.0)*Ks0[3];
874 K1[0] = K1[0]; K1[1] = (-1.0)*K1[1]; K1[2] = (-1.0)*K1[2]; K1[3] = (-1.0)*K1[3];
875 K2[0] = K2[0]; K2[1] = (-1.0)*K2[1]; K2[2] = (-1.0)*K2[2]; K2[3] = (-1.0)*K2[3];
877 calPDF(Ks0,K1,K2,mass1,width1,amp,phase,g0,spin,modetype,r0,r1,first,last,PDFD0bar);
880 calPDF(Ks0,K1,K2,mass1,width1,amp,phase,g0,spin,modetype,r0,r1,first,last,PDFD0bar);
881 Ks0[0]= Ks0[0]; Ks0[1]= (-1.0)*Ks0[1]; Ks0[2]= (-1.0)*Ks0[2]; Ks0[3]= (-1.0)*Ks0[3];
882 K1[0] = K1[0]; K1[1] = (-1.0)*K1[1]; K1[2] = (-1.0)*K1[2]; K1[3] = (-1.0)*K1[3];
883 K2[0] = K2[0]; K2[1] = (-1.0)*K2[1]; K2[2] = (-1.0)*K2[2]; K2[3] = (-1.0)*K2[3];
884 calPDF(Ks0,K1,K2,mass1,width1,amp,phase,g0,spin,modetype,r0,r1,first,last,PDFD0);
888 double r_tag = 0.0586;
890 double delta_tag = 192.1/180.0*3.1415926;
892 qcf[0] = r_tag*R_tag*
cos(-1.0*delta_tag);
893 qcf[1] = r_tag*R_tag*
sin(-1.0*delta_tag);
894 double ampD0_part1[2], qcfampD0bar[2];
895 Com_Multi(qcf,PDFD0bar,qcfampD0bar);
897 ampD0_part1[0] = PDFD0[0] - qcfampD0bar[0];
898 ampD0_part1[1] = PDFD0[1] - qcfampD0bar[1];
900 ampD0_part1[0] = PDFD0[0] + qcfampD0bar[0];
901 ampD0_part1[1] = PDFD0[1] + qcfampD0bar[1];
903 double value = ampD0_part1[0]*ampD0_part1[0]+ampD0_part1[1]*ampD0_part1[1] + r_tag*r_tag*(1-R_tag*R_tag)*(PDFD0bar[0]*PDFD0bar[0]+PDFD0bar[1]*PDFD0bar[1]);
905 if(value <=0) value = 1e-20;
911void D0ToKSLKK::calEva(
double* Ks0,
double* K1,
double* K2,
double* mass1,
double* width1,
double* amp,
double* phase,
int* g0,
int* spin,
int* modetype,
double* r0,
double* r1,
double &Result,
int first,
int last,
int charge,
bool SorL)
913 double PDFD0[2],PDFD0bar[2];
915 calPDF(Ks0,K1,K2,mass1,width1,amp,phase,g0,spin,modetype,r0,r1,first,last,PDFD0);
916 Ks0[0]= Ks0[0]; Ks0[1]= (-1.0)*Ks0[1]; Ks0[2]= (-1.0)*Ks0[2]; Ks0[3]= (-1.0)*Ks0[3];
917 K1[0] = K1[0]; K1[1] = (-1.0)*K1[1]; K1[2] = (-1.0)*K1[2]; K1[3] = (-1.0)*K1[3];
918 K2[0] = K2[0]; K2[1] = (-1.0)*K2[1]; K2[2] = (-1.0)*K2[2]; K2[3] = (-1.0)*K2[3];
920 calPDF(Ks0,K1,K2,mass1,width1,amp,phase,g0,spin,modetype,r0,r1,first,last,PDFD0bar);
923 calPDF(Ks0,K1,K2,mass1,width1,amp,phase,g0,spin,modetype,r0,r1,first,last,PDFD0bar);
924 Ks0[0]= Ks0[0]; Ks0[1]= (-1.0)*Ks0[1]; Ks0[2]= (-1.0)*Ks0[2]; Ks0[3]= (-1.0)*Ks0[3];
925 K1[0] = K1[0]; K1[1] = (-1.0)*K1[1]; K1[2] = (-1.0)*K1[2]; K1[3] = (-1.0)*K1[3];
926 K2[0] = K2[0]; K2[1] = (-1.0)*K2[1]; K2[2] = (-1.0)*K2[2]; K2[3] = (-1.0)*K2[3];
927 calPDF(Ks0,K1,K2,mass1,width1,amp,phase,g0,spin,modetype,r0,r1,first,last,PDFD0);
931 double ampD0_part1[2];
932 ampD0_part1[0] = PDFD0[0];
933 ampD0_part1[1] = PDFD0[1];
934 double value = ampD0_part1[0]*ampD0_part1[0]+ampD0_part1[1]*ampD0_part1[1];
954 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")
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 init(int Daug0Id, int Uspin)
complex< double > Amp(vector< double > k0l, vector< double > kp, vector< double > km, int Daug0Id, int Uspin)
double double double double * s12
double double double double double * s23
double precision pisqo6 one