40 model_name=
"DToKppipi";
58 phi[1] = 3.365002324407079470347526;
59 phi[2] = 0.6621583377125883629332748;
60 phi[3] = 0.4339644541377705166951273;
61 phi[4] = 2.496788137814539787484591;
62 phi[5] = 5.337638327720493514050304;
65 rho[1] = 2.176692936463668459623477;
66 rho[2] = 1.815490493394110060876301;
67 rho[3] = 0.3832709830473302048403639;
68 rho[4] = 1.12572937386981664076302;
69 rho[5] = -1.190394848723933307610423;
83 width[0] = 0.0473000000000000017652546;
84 width[1] = 0.2320000000000000117683641;
85 width[2] = 0.1089999999999999996669331;
86 width[3] = 0.0200000000000000004163336;
87 width[4] = 0.1474000000000000032418512;
88 width[5] = 0.1867000000000000048405724;
90 mass[0] = 0.8955499999999999571898002;
91 mass[1] = 1.4139999999999999236166559;
92 mass[2] = 1.4323999999999998955502178;
93 mass[3] = 0.9000000000000000222044605;
94 mass[4] = 0.7752599999999999491606673;
95 mass[5] = 1.2755000000000000781597009;
109 mass_Pion2 = 0.0194797849;
110 mass_2Pion = 0.27914;
111 math_2pi = 6.2831852;
121 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
122 for (
int i=0; i<4; i++) {
123 for (
int j=0; j<4; j++) {
173 double P1[4], P2[4], P3[4];
174 P1[0] = D1.
get(0); P1[1] = D1.
get(1); P1[2] = D1.
get(2); P1[3] = D1.
get(3);
175 P2[0] = D2.
get(0); P2[1] = D2.
get(1); P2[2] = D2.
get(2); P2[3] = D2.
get(3);
176 P3[0] = D3.
get(0); P3[1] = D3.
get(1); P3[2] = D3.
get(2); P3[3] = D3.
get(3);
180 int g0[6]={1,1,1,6,1,2};
181 int spin[6]={1,1,2,0,1,2};
182 double r0[6]={3.0,3.0,3.0,3.0,3.0,3.0};
183 double r1[6]={5.0,5.0,5.0,5.0,5.0,5.0};
185 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value,r0,r1);
191void EvtDToKppipi::Com_Multi(
double a1[2],
double a2[2],
double res[2])
193 res[0] = a1[0]*a2[0]-a1[1]*a2[1];
194 res[1] = a1[1]*a2[0]+a1[0]*a2[1];
196void EvtDToKppipi::Com_Divide(
double a1[2],
double a2[2],
double res[2])
198 double tmp = a2[0]*a2[0]+a2[1]*a2[1];
199 res[0] = (a1[0]*a2[0]+a1[1]*a2[1])/tmp;
200 res[1] = (a1[1]*a2[0]-a1[0]*a2[1])/tmp;
202double EvtDToKppipi::CalRho4pi(double_t
s)
205 return sqrt((
s-16.*mass_Pion*mass_Pion)/
s);
208 double_t s0 = 1.2274+0.00370909/(
s*
s) - (0.111203)/(
s) - 6.39017*
s +16.8358*
s*
s - 21.8845*
s*
s*
s + 11.3153*
s*
s*
s*
s;
209 double_t gam = s0*sqrt(1.0-(16.0*mass_Pion*mass_Pion));
216double EvtDToKppipi::SCADot(
double a1[4],
double a2[4])
218 double _cal = a1[0]*a2[0]-a1[1]*a2[1]-a1[2]*a2[2]-a1[3]*a2[3];
221double EvtDToKppipi::barrier(
int l,
double sa,
double sb,
double sc,
double r,
double mass)
223 double q = fabs((sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb);
228 double q0 = fabs((sa0+sb-sc)*(sa0+sb-sc)/(4*sa0)-sb);
232 if(l == 1) F = sqrt((1+z0)/(1+z));
233 if(l == 2) F = sqrt((9+3*z0+z0*z0)/(9+3*z+z*z));
237void EvtDToKppipi::calt1(
double daug1[4],
double daug2[4],
double t1[4])
241 for(
int i=0; i<4; i++) {
242 pa[i] = daug1[i] + daug2[i];
243 qa[i] = daug1[i] - daug2[i];
248 for(
int i=0; i<4; i++) {
249 t1[i] = qa[i] - tmp*pa[i];
252void EvtDToKppipi::calt2(
double daug1[4],
double daug2[4],
double t2[4][4])
256 calt1(daug1,daug2,t1);
257 r = SCADot(t1,t1)/3.0;
258 for(
int i=0; i<4; i++) {
259 pa[i] = daug1[i] + daug2[i];
262 for(
int i=0; i<4; i++) {
263 for(
int j=0; j<4; j++) {
264 t2[i][j] = t1[i]*t1[j] - r*(G[i][j]-pa[i]*pa[j]/p);
269void EvtDToKppipi::propagator(
double mass2,
double mass,
double width,
double sx,
double prop[2])
276 Com_Divide(a,
b,prop);
278double EvtDToKppipi::wid(
double mass2,
double mass,
double sa,
double sb,
double sc,
double r2,
int l)
283 double tmp1 = sa+tmp;
284 double q = fabs(0.25*tmp1*tmp1/sa-sb);
285 double tmp2 = mass2+tmp;
286 double q0 = fabs(0.25*tmp2*tmp2/mass2-sb);
290 if(l == 0) {widm = sqrt(
t)*
mass/m;}
291 else if(l == 1) {widm =
t*sqrt(
t)*
mass/m*(1+z0)/(1+z);}
292 else if(l == 2) {widm =
t*
t*sqrt(
t)*
mass/m*(9+3*z0+z0*z0)/(9+3*z+z*z);}
295double EvtDToKppipi::widl1(
double mass2,
double mass,
double sa,
double sb,
double sc,
double r2)
300 double tmp1 = sa+tmp;
301 double q = fabs(0.25*tmp1*tmp1/sa-sb);
302 double tmp2 = mass2+tmp;
303 double q0 = fabs(0.25*tmp2*tmp2/mass2-sb);
306 double F = (1+z0)/(1+z);
308 widm =
t*sqrt(
t)*
mass/m*F;
311void EvtDToKppipi::propagatorRBW(
double mass,
double width,
double sa,
double sb,
double sc,
double r2,
int l,
double prop[2])
318 b[1] = -
mass*width*wid(mass2,mass,sa,sb,sc,r2,l);
319 Com_Divide(a,
b,prop);
322void EvtDToKppipi::propagatorFlatte(
double mass,
double width,
double sa,
double prop[2]){
324 double rhoPi[2], rhoKa[2];
326 q2_Pi = 0.25*sa-mPi*mPi;
327 q2_Ka = 0.25*sa-mKa*mKa;
330 rhoPi[0] = 2.0*sqrt(q2_Pi/sa);
335 rhoPi[1] = 2.0*sqrt(-q2_Pi/sa);
339 rhoKa[0] = 2.0*sqrt(q2_Ka/sa);
344 rhoKa[1] = 2.0*sqrt(-q2_Ka/sa);
350 b[0] =
mass*
mass - sa + 0.165*rhoPi[1] + 0.69465*rhoKa[1];
351 b[1] = - (0.165*rhoPi[0] + 0.69465*rhoKa[0]);
352 Com_Divide(a,
b,prop);
355void EvtDToKppipi::rhoab(
double sa,
double sb,
double sc,
double res[2]) {
356 double tmp = sa+sb-sc;
357 double q = 0.25*tmp*tmp/sa-sb;
359 res[0]=2.0*sqrt(
q/sa);
363 res[1]=2.0*sqrt(-
q/sa);
366void EvtDToKppipi::rho4Pi(
double sa,
double res[2]) {
367 double temp = 1.0-0.3116765584/sa;
369 res[0]=sqrt(temp)/(1.0+
exp(9.8-3.5*sa));
373 res[1]=sqrt(-temp)/(1.0+
exp(9.8-3.5*sa));
377void EvtDToKppipi::propagatorsigma500(
double sa,
double sb,
double sc,
double prop[2]) {
378 double f = 0.5843+1.6663*sa;
379 const double M = 0.9264;
380 const double mass2 = 0.85821696;
381 const double mpi2d2 = 0.00973989245;
382 double g1 =
f*(sa-mpi2d2)/(mass2-mpi2d2)*
exp((mass2-sa)/1.082);
383 double rho1s[2], rho1M[2], rho2s[2], rho2M[2], rho1[2], rho2[2];
384 rhoab(sa,sb,sc,rho1s);
385 rhoab(mass2,sb,sc,rho1M);
388 Com_Divide(rho1s,rho1M,rho1);
389 Com_Divide(rho2s,rho2M,rho2);
393 b[0] = mass2-sa+M*(
g1*rho1[1]+0.0024*rho2[1]);
394 b[1] = -M*(
g1*rho1[0]+0.0024*rho2[0]);
395 Com_Divide(a,
b,prop);
397void EvtDToKppipi::Flatte_rhoab(
double sa,
double sb,
double rho[2])
399 double q = 1.0-(4*sb/sa);
411void EvtDToKppipi::propagator980(
double mass,
double sx,
double *sb,
double prop[2])
413 double gpipi1 = 2.0/3.0*0.165;
414 double gpipi2 = 1.0/3.0*0.165;
415 double gKK1 = 0.5*0.69465;
416 double gKK2 = 0.5*0.69465;
418 double unit[2]={1.0};
421 Flatte_rhoab(sx,sb[0],rho1);
423 Flatte_rhoab(sx,sb[1],rho2);
425 Flatte_rhoab(sx,sb[2],rho3);
427 Flatte_rhoab(sx,sb[3],rho4);
429 double tmp1[2]={gpipi1,0};
431 double tmp2[2]={gpipi2,0};
433 double tmp3[2]={gKK1,0};
435 double tmp4[2]={gKK2,0};
438 Com_Multi(tmp1,rho1,tmp11);
439 Com_Multi(tmp2,rho2,tmp22);
440 Com_Multi(tmp3,rho3,tmp33);
441 Com_Multi(tmp4,rho4,tmp44);
443 double tmp5[2]={tmp11[0]+tmp22[0]+tmp33[0]+tmp44[0],tmp11[1]+tmp22[1]+tmp33[1]+tmp44[1]};
445 Com_Multi(tmp5, ci,tmp51);
446 double tmp6[2]={
mass*
mass-sx-tmp51[0], -1.0*tmp51[1]};
448 Com_Divide(
unit,tmp6, prop);
452void EvtDToKppipi::KPiSLASS(
double sa,
double sb,
double sc,
double prop[2])
454 const double m1430 = 1.441;
455 const double sa0 = 2.076481;
456 const double w1430 = 0.193;
457 const double Lass1 = 0.25/sa0;
459 double tmp1 = sa0+tmp;
460 double q0 = fabs(Lass1*tmp1*tmp1-sb);
461 double tmp2 = sa+tmp;
462 double qs = 0.25*tmp2*tmp2/sa-sb;
464 double width = w1430*
q*m1430/sqrt(sa*q0);
465 double temp_R = atan(m1430*width/(sa0-sa));
466 if(temp_R<0) temp_R += math_pi;
467 double deltaR = -109.7*math_pi/180.0 + temp_R;
468 double temp_F = atan(0.226*
q/(2.0-3.8194*qs));
469 if(temp_F<0) temp_F += math_pi;
470 double deltaF = 0.1*math_pi/180.0 + temp_F;
471 double deltaS = deltaR + 2.0*deltaF;
472 double t1 = 0.96*
sin(deltaF);
473 double t2 =
sin(deltaR);
479 prop[0] = t1*CF[0] + t2*
CS[0];
480 prop[1] = t1*CF[1] + t2*
CS[1];
483void EvtDToKppipi::propagatorGS(
double mass,
double width,
double sa,
double sb,
double sc,
double r2,
double prop[2])
488 double tmp1 = sa+tmp;
489 double q2 = fabs(0.25*tmp1*tmp1/sa-sb);
491 double tmp2 = mass2+tmp;
492 double q02 = fabs(0.25*tmp2*tmp2/mass2-sb);
495 double q0 = sqrt(q02);
498 double tmp3 = log(mass+2*q0)+1.2760418309;
500 double h = GS1*
q/m*(log(m+2*
q)+1.2760418309);
501 double h0 = GS1*q0/
mass*tmp3;
502 double dh = h0*(0.125/q02-0.5/mass2)+GS3/mass2;
503 double d = GS2/q02*tmp3+GS3*
mass/q0-GS4*
mass/q03;
504 double f = mass2/q03*(q2*(h-h0)+(mass2-sa)*q02*dh);
506 a[0] = 1.0+d*width/
mass;
508 b[0] = mass2-sa+width*
f;
509 b[1] = -
mass*width*widl1(mass2,mass,sa,sb,sc,r2);
510 Com_Divide(a,
b,prop);
513double EvtDToKppipi::DDalitz(
double P1[4],
double P2[4],
double P3[4],
int Ang,
double mass){
515 double temp_PDF, v_re;
518 double B[2], s1, s2, s3, sR, sD;
519 for(
int i=0; i<4; i++){
520 pR[i] = P1[i] + P2[i];
521 pD[i] = pR[i] + P3[i];
529 for(
int i=0; i!=4; i++){
530 for(
int j=0; j!=4; j++){
532 if(i==0) G[i][j] = 1;
544 B[0] = barrier(1,sR,s1,s2,3.0,mass);
545 B[1] = barrier(1,sD,sR,s3,5.0,mDp);
550 for(
int i=0; i<4; i++){
551 temp_PDF += t1[i]*T1[i]*G[i][i];
555 B[0] = barrier(2,sR,s1,s2,3.0,mass);
556 B[1] = barrier(2,sD,sR,s3,5.0,mDp);
557 double t2[4][4], T2[4][4];
561 for(
int i=0; i<4; i++){
562 for(
int j=0; j<4; j++){
563 temp_PDF += t2[i][j]*T2[j][i]*G[i][i]*G[j][j];
567 v_re = temp_PDF*
B[0]*
B[1];
571void EvtDToKppipi::rhoMTX(
int i,
int j,
double s,
double Rho[2]){
575 double mpi = 0.13957;
577 double m2 = 0.13957*0.13957;
579 rhoijx = sqrt(1.0f - (4*
m2)/
s);
582 rhoijy = sqrt((4*
m2)/
s - 1.0f);
587 double m2 = 0.49368*0.49368;
589 rhoijx = sqrt(1.0f - (4*
m2)/
s);
592 rhoijy = sqrt((4*
m2)/
s - 1.0f);
597 rhoijx = CalRho4pi(
s);
601 double m2 = 0.547862*0.547862;
603 rhoijx = sqrt(1.0f - (4*
m2)/
s);
606 rhoijy = sqrt((4*
m2)/
s - 1.0f);
611 double m_1 = 0.547862;
612 double m_2 = 0.95778;
613 double mp2 = (m_1+m_2)*(m_1+m_2);
614 double mm2 = (m_1-m_2)*(m_1-m_2);
616 rhoijx = sqrt(1.0f - mp2/
s);
619 rhoijy = sqrt(mp2/
s - 1.0f);
635void EvtDToKppipi::KMTX(
int i,
int j,
double s,
double KM[2]){
639 double mpi = 0.13957;
640 double m[5] = { 0.65100, 1.20360, 1.55817, 1.21000, 1.82206};
642 double g1[5] = { 0.22889,-0.55377, 0.00000,-0.39899,-0.34639};
643 double g2[5] = { 0.94128, 0.55095, 0.00000, 0.39065, 0.31503};
644 double g3[5] = { 0.36856, 0.23888, 0.55639, 0.18340, 0.18681};
645 double g4[5] = { 0.33650, 0.40907, 0.85679, 0.19906,-0.00984};
646 double g5[5] = { 0.18171,-0.17558,-0.79658,-0.00355, 0.22358};
648 double f1[5] = { 0.23399, 0.15044,-0.20545, 0.32825, 0.35412};
650 double upimag[5] = { 0,0,0,0,0};
652 for(
int k=0; k<5; k++){
655 double ss0 = -3.92637;
660 Kijx = (
g1[i]*
g1[j]/(m[0]*m[0]-
s) + g2[i]*g2[j]/(m[1]*m[1]-
s) + g3[i]*g3[j]/(m[2]*m[2]-
s) + g4[i]*g4[j]/(m[3]*m[3]-
s) + g5[i]*g5[j]/(m[4]*m[4]-
s)+
f1[j]*(1-ss0)/(
s-ss0))*(1-sA0)/(
s-sA0)*(
s-sA*
mpi*
mpi*0.5);
661 Kijy = (
g1[i]*
g1[j]*upimag[0] + g2[i]*g2[j]*upimag[1] + g3[i]*g3[j]*upimag[2] + g4[i]*g4[j]*upimag[3] + g5[i]*g5[j]*upimag[4])*(1-sA0)/(
s-sA0)*(
s-sA*
mpi*
mpi*0.5);
665 Kijx = (
g1[i]*
g1[j]/(m[0]*m[0]-
s) + g2[i]*g2[j]/(m[1]*m[1]-
s) + g3[i]*g3[j]/(m[2]*m[2]-
s) + g4[i]*g4[j]/(m[3]*m[3]-
s) + g5[i]*g5[j]/(m[4]*m[4]-
s))*(1-sA0)/(
s-sA0)*(
s-sA*
mpi*
mpi*0.5);
666 Kijy = (
g1[i]*
g1[j]*upimag[0] + g2[i]*g2[j]*upimag[1] + g3[i]*g3[j]*upimag[2] + g4[i]*g4[j]*upimag[3] + g5[i]*g5[j]*upimag[4])*(1-sA0)/(
s-sA0)*(
s-sA*
mpi*
mpi*0.5);
674void EvtDToKppipi::IMTX(
int i,
int j,
double IMTX[2]){
691void EvtDToKppipi::FMTX(
double Kijx,
double Kijy,
double rhojjx,
double rhojjy,
int i,
int j,
double FM[2]){
696 double tmpx = Kijx*rhojjx - Kijy*rhojjy;
697 double tmpy = Kijy*rhojjx + Kijx*rhojjy;
709void EvtDToKppipi::PVTR(
int ID,
double s,
double PV[2]){
713 double m[5] = { 0.65100, 1.20360, 1.55817, 1.21000, 1.82206};
715 double g[5][5] = {{ 0.22889,-0.55377, 0.00000,-0.39899,-0.34639},
716 { 0.94128, 0.55095, 0.00000, 0.39065, 0.31503},
717 { 0.36856, 0.23888, 0.55639, 0.18340, 0.18681},
718 { 0.33650, 0.40907, 0.85679, 0.19906,-0.00984},
719 { 0.18171,-0.17558,-0.79658,-0.00355, 0.22358}};
721 double betax[5], betay[5], fprodx[5], fprody[5];
723 betax[0] = 8.5*
cos( 68.5*3.1415926/180.0); betay[0] = 8.5*
sin( 68.5*3.1415926/180.0);
724 betax[1] = 12.2*
cos( 24.0*3.1415926/180.0); betay[1] = 12.2*
sin( 24.0*3.1415926/180.0);
725 betax[2] = 29.2*
cos( -0.1*3.1415926/180.0); betay[2] = 29.2*
sin( -0.1*3.1415926/180.0);
726 betax[3] = 10.8*
cos(-51.9*3.1415926/180.0); betay[3] = 10.8*
sin(-51.9*3.1415926/180.0);
727 betax[4] = 0.0; betay[4] = 0.0;
729 fprodx[0] = 8.0*
cos(-126.0*3.1415926/180.0); fprody[0] = 8.0*
sin(-126.0*3.1415926/180.0);
730 fprodx[1] = 26.3*
cos(-152.3*3.1415926/180.0); fprody[1] = 26.3*
sin(-152.3*3.1415926/180.0);
731 fprodx[2] = 33.0*
cos( -93.2*3.1415926/180.0); fprody[2] = 33.0*
sin( -93.2*3.1415926/180.0);
732 fprodx[3] = 26.2*
cos(-121.4*3.1415926/180.0); fprody[3] = 26.2*
sin(-121.4*3.1415926/180.0);
733 fprodx[4] = 0.0; fprody[4] = 0.0;
735 double V0x = 0.0, V0y = 0.0, V1x = 0.0, V1y = 0.0;
736 double s0_prod = -0.07;
738 for(
int k=0;k<5;k++) {
739 V0x += betax[k]*g[k][
ID]/(m[k]*m[k]-
s);
740 V0y += betay[k]*g[k][
ID]/(m[k]*m[k]-
s);
742 V1x += (1.-s0_prod)/(
s-s0_prod)*fprodx[
ID];
743 V1y += (1.-s0_prod)/(
s-s0_prod)*fprody[
ID];
754void EvtDToKppipi::FINVMTX(
double s,
double *FINVx,
double *FINVy){
756 int P[5] = { 0,1,2,3,4};
773 for(
int k=0; k<5; k++){
775 double rhokkx = rho[0];
776 double rhokky = rho[1];
779 for(
int l=k; l<5; l++){
791 for(
int k=0; k<5; k++){
792 for(
int l=0; l<5; l++){
793 FMTX(Lx[k][l],Ly[k][l],Ux[l][l],Uy[l][l],k,l,AA);
801 for(
int k=0; k<5; k++){
802 double tmprM = (Fx[k][k]*Fx[k][k]+Fy[k][k]*Fy[k][k]);
804 for(
int l=k; l<5; l++){
805 double tmprF = (Fx[l][k]*Fx[l][k]+Fy[l][k]*Fy[l][k]);
816 for(
int l=0; l<5; l++){
818 double tmpFx = Fx[k][l];
819 double tmpFy = Fy[k][l];
821 Fx[k][l] = Fx[tmpID][l];
822 Fy[k][l] = Fy[tmpID][l];
824 Fx[tmpID][l] = tmpFx;
825 Fy[tmpID][l] = tmpFy;
828 for(
int l=k+1; l<5; l++){
829 double rFkk = Fx[k][k]*Fx[k][k] + Fy[k][k]*Fy[k][k];
830 double Fxlk = Fx[l][k];
831 double Fylk = Fy[l][k];
832 double Fxkk = Fx[k][k];
833 double Fykk = Fy[k][k];
834 Fx[l][k] = (Fxlk*Fxkk + Fylk*Fykk)/rFkk;
835 Fy[l][k] = (Fylk*Fxkk - Fxlk*Fykk)/rFkk;
836 for(
int m=k+1; m<5; m++){
837 Fx[l][m] = Fx[l][m] - (Fx[l][k]*Fx[k][m] - Fy[l][k]*Fy[k][m]);
838 Fy[l][m] = Fy[l][m] - (Fx[l][k]*Fy[k][m] + Fy[l][k]*Fx[k][m]);
843 for(
int k=0; k<5; k++){
844 for(
int l=0; l<5 ;l++){
866 for(
int k=0; k<5; k++){
871 double rUkk = Ux[k][k]*Ux[k][k] + Uy[k][k]*Uy[k][k];
872 UIx[k][k] = Ux[k][k]/rUkk;
873 UIy[k][k] = -1.0f * Uy[k][k]/rUkk ;
875 for(
int l=(k+1); l<5; l++){
881 for(
int l=(k-1); l>=0; l--){
886 for(
int m=l+1; m<=k; m++){
888 double sx_tmp = sx + Ux[l][m]*UIx[m][k] - Uy[l][m]*UIy[m][k];
889 c_sx = (sx_tmp - sx) - (Ux[l][m]*UIx[m][k] - Uy[l][m]*UIy[m][k]);
893 double sy_tmp = sy + Ux[l][m]*UIy[m][k] + Uy[l][m]*UIx[m][k];
894 c_sy = (sy_tmp - sy) - (Ux[l][m]*UIy[m][k] + Uy[l][m]*UIx[m][k]);
897 UIx[l][k] = -1.0f * (UIx[l][l]*sx - UIy[l][l]*sy);
898 UIy[l][k] = -1.0f * (UIy[l][l]*sx + UIx[l][l]*sy);
901 for(
int l=k+1; l<5; l++){
906 for(
int m=k; m<l; m++){
908 double sx_tmp = sx + Lx[l][m]*LIx[m][k] - Ly[l][m]*LIy[m][k];
909 c_sx = (sx_tmp - sx) - (Lx[l][m]*LIx[m][k] - Ly[l][m]*LIy[m][k]);
913 double sy_tmp = sy + Lx[l][m]*LIy[m][k] + Ly[l][m]*LIx[m][k];
914 c_sy = (sy_tmp - sy) - (Lx[l][m]*LIy[m][k] + Ly[l][m]*LIx[m][k]);
917 LIx[l][k] = -1.0f * sx;
918 LIy[l][k] = -1.0f * sy;
921 for(
int m=0; m<5; m++){
926 for(
int k=0; k<5; k++){
927 for(
int l=0; l<5; l++){
929 if(
P[l] == m) Plm = 1;
931 resX = resX - c_resX;
932 double resX_tmp = resX + (UIx[0][k]*LIx[k][l] - UIy[0][k]*LIy[k][l])*Plm;
933 c_resX = (resX_tmp - resX) - ((UIx[0][k]*LIx[k][l] - UIy[0][k]*LIy[k][l])*Plm);
936 resY = resY - c_resY;
937 double resY_tmp = resY + (UIx[0][k]*LIy[k][l] + UIy[0][k]*LIx[k][l])*Plm;
938 c_resY = (resY_tmp - resY) - ((UIx[0][k]*LIy[k][l] + UIy[0][k]*LIx[k][l])*Plm);
947void EvtDToKppipi::Fvector(
double sa,
double s0,
double Fv[2]){
952 double FINVx[5] = {0,0,0,0,0};
953 double FINVy[5] = {0,0,0,0,0};
955 FINVMTX(sa,FINVx,FINVy);
962 for(
int j=0; j<5; j++){
966 resx = resx - c_resx;
967 double resx_tmp = resx + (FINVx[j]*Plx - FINVy[j]*Ply);
968 c_resx = (resx_tmp - resx) - (FINVx[j]*Plx - FINVy[j]*Ply);
971 resy = resy - c_resy;
972 double resy_tmp = resy + (FINVx[j]*Ply + FINVy[j]*Plx);
973 c_resy = (resy_tmp - resy) - (FINVx[j]*Ply + FINVy[j]*Plx);
982void EvtDToKppipi::calEva(
double* Kp,
double* Pip,
double* Pim,
double *mass1,
double *width1,
double *amp,
double *phase,
int* g0,
int* spin,
int* modetype,
int nstates,
double & Result ,
double*r0 ,
double*r1)
985 double P12[4], P23[4], P13[4];
986 double cof[2], amp_PDF[2], PDF[2];
990 double Realpipis, Imagpipis;
993 for(
int i=0; i<4; i++){
994 P12[i] = Kp[i] + Pip[i];
995 P13[i] = Kp[i] + Pim[i];
996 P23[i] = Pip[i] + Pim[i];
999 s2 = SCADot(Pip,Pip);
1000 s3 = SCADot(Pim,Pim);
1002 s12 = SCADot(P12,P12);
1003 s13 = SCADot(P13,P13);
1004 s23 = SCADot(P23,P23);
1006 double pro[2], temp_PDF, pro1[2], temp_PDF1, pro2[2], temp_PDF2, amp_tmp[2];
1014 for(
int i=0; i<nstates; i++) {
1017 mass1sq = mass1[i]*mass1[i];
1018 cof[0] = amp[i]*
cos(phase[i]);
1019 cof[1] = amp[i]*
sin(phase[i]);
1023 if(modetype[i] == 12){
1024 temp_PDF = DDalitz(Kp, Pip, Pim, spin[i], mass1[i]);
1030 amp_tmp[0] = temp_PDF*pro[0];
1031 amp_tmp[1] = temp_PDF*pro[1];
1034 if(modetype[i] == 13){
1035 temp_PDF = DDalitz(Kp, Pim, Pip, spin[i], mass1[i]);
1036 if(g0[i]==1) propagatorRBW(mass1[i],width1[i],s13,s1,s3,rRes2,spin[i],pro);
1037 if(g0[i]==4) KPiSLASS(s13,s1,s3,pro);
1043 amp_tmp[0] = temp_PDF*pro[0];
1044 amp_tmp[1] = temp_PDF*pro[1];
1048 if(modetype[i] == 23){
1049 temp_PDF = DDalitz(Pip, Pim, Kp, spin[i], mass1[i]);
1051 Fvector(
s23,-0.07,Fv);
1060 amp_tmp[0] = temp_PDF*Realpipis;
1061 amp_tmp[1] = temp_PDF*Imagpipis;
1063 if(g0[i]==4) propagatorFlatte(mass1[i],width1[i],
s23,pro);
1064 if(g0[i]==1) propagatorGS(mass1[i],width1[i],
s23,s2,s3,rRes2,pro);
1065 if(g0[i]==2) propagatorRBW(mass1[i],width1[i],
s23,s2,s3,rRes2,spin[i],pro);
1070 if(g0[i]==500) propagatorsigma500(
s23, s2, s3, pro);
1071 if(g0[i]!=6) amp_tmp[0] = temp_PDF*pro[0];
1072 if(g0[i]!=6) amp_tmp[1] = temp_PDF*pro[1];
1075 if(modetype[i] == 132){
1076 KPiSLASS(s13,s1,s3,Amp_KPiS);
1077 amp_tmp[0] = Amp_KPiS[0];
1078 amp_tmp[1] = Amp_KPiS[1];
1081 Com_Multi(amp_tmp,cof,amp_PDF);
1082 PDF[0] += amp_PDF[0];
1083 PDF[1] += amp_PDF[1];
1087 double value = PDF[0]*PDF[0] + PDF[1]*PDF[1];
1088 if(value <=0) value = 1e-20;
double sin(const BesAngle a)
double cos(const BesAngle a)
double P(RecMdcKalTrack *trk)
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
***************************************************************************************Pseudo Class RRes *****************************************************************************************Parameters and physical constants **Maarten sept ************************************************************************DOUBLE PRECISION xsmu **************************************************************************PARTICLE DATA ** Rho(770) and Omega(782) are taken from CMD-2 F_pi fit *(hep-ex/9904027)
static const double radToDegrees
void decay(EvtParticle *p)
void getName(std::string &name)
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)
const EvtVector4R & getP4() const
EvtParticle * getDaug(int i)
double initializePhaseSpace(int numdaughter, EvtId *daughters, double poleSize=-1., int whichTwo1=0, int whichTwo2=1)
double double double double * s12
double double double double double * s23