41 model_name=
"D0ToKSpi0pi0";
59 phi[1] = -1.1735907962948264327;
60 phi[2] = -0.98738790124871123055;
61 phi[3] = 2.4055643732573601667;
62 phi[4] = 1.9872186812020204982;
63 phi[5] = 0.25034666009967576628;
64 phi[6] = -2.4035171276352995662;
67 rho[1] = 1.407574144549414541;
68 rho[2] = 1.3964570662861071071;
69 rho[3] = 2.5234814225240658203;
70 rho[4] = 2.0222401273514734044;
71 rho[5] = 0.69741141764274061643;
72 rho[6] = 0.84723998937758082661;
87 width[0] = 0.047300000000000001765;
88 width[1] = 0.23200000000000001177;
89 width[2] = 0.10899999999999999967;
90 width[3] = 0.0084899999999999992834;
91 width[4] = 0.32200000000000000844;
92 width[5] = 0.020000000000000000416;
93 width[6] = 0.18670000000000000484;
95 mass[0] = 0.89554999999999995719;
96 mass[1] = 1.4139999999999999236;
97 mass[2] = 1.4323999999999998956;
98 mass[3] = 1.3999999999999999112;
99 mass[4] = 1.7179999999999999716;
100 mass[5] = 0.9000000000000000222;
101 mass[6] = 1.2755000000000000782;
115 mass_Pion2 = 0.0194797849;
116 mass_2Pion = 0.27914;
117 math_2pi = 6.2831852;
127 int GG[4][4] = { {1,0,0,0}, {0,-1,0,0}, {0,0,-1,0}, {0,0,0,-1} };
128 for (
int i=0; i<4; i++) {
129 for (
int j=0; j<4; j++) {
176 double P1[4], P2[4], P3[4];
177 P1[0] = D1.
get(0); P1[1] = D1.
get(1); P1[2] = D1.
get(2); P1[3] = D1.
get(3);
178 P2[0] = D2.
get(0); P2[1] = D2.
get(1); P2[2] = D2.
get(2); P2[3] = D2.
get(3);
179 P3[0] = D3.
get(0); P3[1] = D3.
get(1); P3[2] = D3.
get(2); P3[3] = D3.
get(3);
183 int g0[7]={1,1,1,4,1,6,2};
184 int spin[7]={1,1,2,0,1,0,2};
185 double r0[7]={3.0,3.0,3.0,3.0,3.0,3.0,3.0};
186 double r1[7]={5.0,5.0,5.0,5.0,5.0,5.0,5.0};
188 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value,r0,r1);
194void EvtD0ToKSpi0pi0::Com_Multi(
double a1[2],
double a2[2],
double res[2])
196 res[0] = a1[0]*a2[0]-a1[1]*a2[1];
197 res[1] = a1[1]*a2[0]+a1[0]*a2[1];
199void EvtD0ToKSpi0pi0::Com_Divide(
double a1[2],
double a2[2],
double res[2])
201 double tmp = a2[0]*a2[0]+a2[1]*a2[1];
202 res[0] = (a1[0]*a2[0]+a1[1]*a2[1])/tmp;
203 res[1] = (a1[1]*a2[0]-a1[0]*a2[1])/tmp;
205double EvtD0ToKSpi0pi0::CalRho4pi(double_t
s)
208 return sqrt((
s-16.*mass_Pion*mass_Pion)/
s);
211 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;
212 double_t gam = s0*sqrt(1.0-(16.0*mass_Pion*mass_Pion));
219double EvtD0ToKSpi0pi0::SCADot(
double a1[4],
double a2[4])
221 double _cal = a1[0]*a2[0]-a1[1]*a2[1]-a1[2]*a2[2]-a1[3]*a2[3];
224double EvtD0ToKSpi0pi0::barrier(
int l,
double sa,
double sb,
double sc,
double r,
double mass)
226 double q = fabs((sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb);
231 double q0 = fabs((sa0+sb-sc)*(sa0+sb-sc)/(4*sa0)-sb);
235 if(l == 1) F = sqrt((1+z0)/(1+z));
236 if(l == 2) F = sqrt((9+3*z0+z0*z0)/(9+3*z+z*z));
240void EvtD0ToKSpi0pi0::calt1(
double daug1[4],
double daug2[4],
double t1[4])
244 for(
int i=0; i<4; i++) {
245 pa[i] = daug1[i] + daug2[i];
246 qa[i] = daug1[i] - daug2[i];
251 for(
int i=0; i<4; i++) {
252 t1[i] = qa[i] - tmp*pa[i];
255void EvtD0ToKSpi0pi0::calt2(
double daug1[4],
double daug2[4],
double t2[4][4])
259 calt1(daug1,daug2,t1);
260 r = SCADot(t1,t1)/3.0;
261 for(
int i=0; i<4; i++) {
262 pa[i] = daug1[i] + daug2[i];
265 for(
int i=0; i<4; i++) {
266 for(
int j=0; j<4; j++) {
267 t2[i][j] = t1[i]*t1[j] - r*(G[i][j]-pa[i]*pa[j]/p);
272void EvtD0ToKSpi0pi0::propagator(
double mass2,
double mass,
double width,
double sx,
double prop[2])
279 Com_Divide(a,
b,prop);
281double EvtD0ToKSpi0pi0::wid(
double mass2,
double mass,
double sa,
double sb,
double sc,
double r2,
int l)
286 double tmp1 = sa+tmp;
287 double q = fabs(0.25*tmp1*tmp1/sa-sb);
288 double tmp2 = mass2+tmp;
289 double q0 = fabs(0.25*tmp2*tmp2/mass2-sb);
293 if(l == 0) {widm = sqrt(
t)*
mass/m;}
294 else if(l == 1) {widm =
t*sqrt(
t)*
mass/m*(1+z0)/(1+z);}
295 else if(l == 2) {widm =
t*
t*sqrt(
t)*
mass/m*(9+3*z0+z0*z0)/(9+3*z+z*z);}
298double EvtD0ToKSpi0pi0::widl1(
double mass2,
double mass,
double sa,
double sb,
double sc,
double r2)
303 double tmp1 = sa+tmp;
304 double q = fabs(0.25*tmp1*tmp1/sa-sb);
305 double tmp2 = mass2+tmp;
306 double q0 = fabs(0.25*tmp2*tmp2/mass2-sb);
309 double F = (1+z0)/(1+z);
311 widm =
t*sqrt(
t)*
mass/m*F;
314void EvtD0ToKSpi0pi0::propagatorRBW(
double mass,
double width,
double sa,
double sb,
double sc,
double r2,
int l,
double prop[2])
321 b[1] = -
mass*width*wid(mass2,mass,sa,sb,sc,r2,l);
322 Com_Divide(a,
b,prop);
325void EvtD0ToKSpi0pi0::propagatorFlatte(
double mass,
double width,
double sa,
double prop[2]){
327 double rhoPi[2], rhoKa[2];
329 q2_Pi = 0.25*sa-mPi*mPi;
330 q2_Ka = 0.25*sa-mKa*mKa;
333 rhoPi[0] = 2.0*sqrt(q2_Pi/sa);
338 rhoPi[1] = 2.0*sqrt(-q2_Pi/sa);
342 rhoKa[0] = 2.0*sqrt(q2_Ka/sa);
347 rhoKa[1] = 2.0*sqrt(-q2_Ka/sa);
353 b[0] =
mass*
mass - sa + 0.165*rhoPi[1] + 0.69465*rhoKa[1];
354 b[1] = - (0.165*rhoPi[0] + 0.69465*rhoKa[0]);
355 Com_Divide(a,
b,prop);
358void EvtD0ToKSpi0pi0::rhoab(
double sa,
double sb,
double sc,
double res[2]) {
359 double tmp = sa+sb-sc;
360 double q = 0.25*tmp*tmp/sa-sb;
362 res[0]=2.0*sqrt(
q/sa);
366 res[1]=2.0*sqrt(-
q/sa);
369void EvtD0ToKSpi0pi0::rho4Pi(
double sa,
double res[2]) {
370 double temp = 1.0-0.3116765584/sa;
372 res[0]=sqrt(temp)/(1.0+
exp(9.8-3.5*sa));
376 res[1]=sqrt(-temp)/(1.0+
exp(9.8-3.5*sa));
380void EvtD0ToKSpi0pi0::propagatorsigma500(
double sa,
double sb,
double sc,
double prop[2]) {
381 double f = 0.5843+1.6663*sa;
382 const double M = 0.9264;
383 const double mass2 = 0.85821696;
384 const double mpi2d2 = 0.00973989245;
385 double g1 =
f*(sa-mpi2d2)/(mass2-mpi2d2)*
exp((mass2-sa)/1.082);
386 double rho1s[2], rho1M[2], rho2s[2], rho2M[2], rho1[2], rho2[2];
387 rhoab(sa,sb,sc,rho1s);
388 rhoab(mass2,sb,sc,rho1M);
391 Com_Divide(rho1s,rho1M,rho1);
392 Com_Divide(rho2s,rho2M,rho2);
396 b[0] = mass2-sa+M*(
g1*rho1[1]+0.0024*rho2[1]);
397 b[1] = -M*(
g1*rho1[0]+0.0024*rho2[0]);
398 Com_Divide(a,
b,prop);
400void EvtD0ToKSpi0pi0::Flatte_rhoab(
double sa,
double sb,
double rho[2])
402 double q = 1.0-(4*sb/sa);
414void EvtD0ToKSpi0pi0::propagator980(
double mass,
double sx,
double *sb,
double prop[2])
416 double gpipi1 = 2.0/3.0*0.165;
417 double gpipi2 = 1.0/3.0*0.165;
418 double gKK1 = 0.5*0.69465;
419 double gKK2 = 0.5*0.69465;
421 double unit[2]={1.0};
424 Flatte_rhoab(sx,sb[0],rho1);
426 Flatte_rhoab(sx,sb[1],rho2);
428 Flatte_rhoab(sx,sb[2],rho3);
430 Flatte_rhoab(sx,sb[3],rho4);
432 double tmp1[2]={gpipi1,0};
434 double tmp2[2]={gpipi2,0};
436 double tmp3[2]={gKK1,0};
438 double tmp4[2]={gKK2,0};
441 Com_Multi(tmp1,rho1,tmp11);
442 Com_Multi(tmp2,rho2,tmp22);
443 Com_Multi(tmp3,rho3,tmp33);
444 Com_Multi(tmp4,rho4,tmp44);
446 double tmp5[2]={tmp11[0]+tmp22[0]+tmp33[0]+tmp44[0],tmp11[1]+tmp22[1]+tmp33[1]+tmp44[1]};
448 Com_Multi(tmp5, ci,tmp51);
449 double tmp6[2]={
mass*
mass-sx-tmp51[0], -1.0*tmp51[1]};
451 Com_Divide(
unit,tmp6, prop);
455void EvtD0ToKSpi0pi0::KPiSLASS(
double sa,
double sb,
double sc,
double prop[2])
457 const double m1430 = 1.441;
458 const double sa0 = 2.076481;
459 const double w1430 = 0.193;
460 const double Lass1 = 0.25/sa0;
462 double tmp1 = sa0+tmp;
463 double q0 = fabs(Lass1*tmp1*tmp1-sb);
464 double tmp2 = sa+tmp;
465 double qs = 0.25*tmp2*tmp2/sa-sb;
467 double width = w1430*
q*m1430/sqrt(sa*q0);
468 double temp_R = atan(m1430*width/(sa0-sa));
469 if(temp_R<0) temp_R += math_pi;
470 double deltaR = -109.7*math_pi/180.0 + temp_R;
471 double temp_F = atan(0.226*
q/(2.0-3.8194*qs));
472 if(temp_F<0) temp_F += math_pi;
473 double deltaF = 0.1*math_pi/180.0 + temp_F;
474 double deltaS = deltaR + 2.0*deltaF;
475 double t1 = 0.96*
sin(deltaF);
476 double t2 =
sin(deltaR);
482 prop[0] = t1*CF[0] + t2*
CS[0];
483 prop[1] = t1*CF[1] + t2*
CS[1];
486void EvtD0ToKSpi0pi0::propagatorGS(
double mass2,
double mass,
double width,
double sa,
double sb,
double sc,
double r2,
double prop[2])
490 double tmp1 = sa+tmp;
491 double q2 = fabs(0.25*tmp1*tmp1/sa-sb);
493 double tmp2 = mass2+tmp;
494 double q02 = fabs(0.25*tmp2*tmp2/mass2-sb);
497 double q0 = sqrt(q02);
500 double tmp3 = log(mass+2*q0)+1.2926305904;
502 double h = GS1*
q/m*(log(m+2*
q)+1.2926305904);
503 double h0 = GS1*q0/
mass*tmp3;
504 double dh = h0*(0.125/q02-0.5/mass2)+GS3/mass2;
505 double d = GS2/q02*tmp3+GS3*
mass/q0-GS4*
mass/q03;
506 double f = mass2/q03*(q2*(h-h0)+(mass2-sa)*q02*dh);
508 a[0] = 1.0+d*width/
mass;
510 b[0] = mass2-sa+width*
f;
511 b[1] = -
mass*width*widl1(mass2,mass,sa,sb,sc,r2);
512 Com_Divide(a,
b,prop);
515double EvtD0ToKSpi0pi0::DDalitz(
double P1[4],
double P2[4],
double P3[4],
int Ang,
double mass){
517 double temp_PDF, v_re;
520 double B[2], s1, s2, s3, sR, sD;
521 for(
int i=0; i<4; i++){
522 pR[i] = P1[i] + P2[i];
523 pD[i] = pR[i] + P3[i];
531 for(
int i=0; i!=4; i++){
532 for(
int j=0; j!=4; j++){
534 if(i==0) G[i][j] = 1;
546 B[0] = barrier(1,sR,s1,s2,3.0,mass);
547 B[1] = barrier(1,sD,sR,s3,5.0,mD0);
552 for(
int i=0; i<4; i++){
553 temp_PDF += t1[i]*T1[i]*G[i][i];
557 B[0] = barrier(2,sR,s1,s2,3.0,mass);
558 B[1] = barrier(2,sD,sR,s3,5.0,mD0);
559 double t2[4][4], T2[4][4];
563 for(
int i=0; i<4; i++){
564 for(
int j=0; j<4; j++){
565 temp_PDF += t2[i][j]*T2[j][i]*G[i][i]*G[j][j];
569 v_re = temp_PDF*
B[0]*
B[1];
573void EvtD0ToKSpi0pi0::rhoMTX(
int i,
int j,
double s,
double Rho[2]){
577 double mpi = 0.13957;
579 double m2 = 0.13957*0.13957;
581 rhoijx = sqrt(1.0f - (4*
m2)/
s);
584 rhoijy = sqrt((4*
m2)/
s - 1.0f);
589 double m2 = 0.49368*0.49368;
591 rhoijx = sqrt(1.0f - (4*
m2)/
s);
594 rhoijy = sqrt((4*
m2)/
s - 1.0f);
599 rhoijx = CalRho4pi(
s);
603 double m2 = 0.547862*0.547862;
605 rhoijx = sqrt(1.0f - (4*
m2)/
s);
608 rhoijy = sqrt((4*
m2)/
s - 1.0f);
613 double m_1 = 0.547862;
614 double m_2 = 0.95778;
615 double mp2 = (m_1+m_2)*(m_1+m_2);
616 double mm2 = (m_1-m_2)*(m_1-m_2);
618 rhoijx = sqrt(1.0f - mp2/
s);
621 rhoijy = sqrt(mp2/
s - 1.0f);
637void EvtD0ToKSpi0pi0::KMTX(
int i,
int j,
double s,
double KM[2]){
641 double mpi = 0.13957;
642 double m[5] = { 0.65100, 1.20360, 1.55817, 1.21000, 1.82206};
644 double g1[5] = { 0.22889,-0.55377, 0.00000,-0.39899,-0.34639};
645 double g2[5] = { 0.94128, 0.55095, 0.00000, 0.39065, 0.31503};
646 double g3[5] = { 0.36856, 0.23888, 0.55639, 0.18340, 0.18681};
647 double g4[5] = { 0.33650, 0.40907, 0.85679, 0.19906,-0.00984};
648 double g5[5] = { 0.18171,-0.17558,-0.79658,-0.00355, 0.22358};
650 double f1[5] = { 0.23399, 0.15044,-0.20545, 0.32825, 0.35412};
652 double upimag[5] = { 0,0,0,0,0};
654 for(
int k=0; k<5; k++){
657 double ss0 = -3.92637;
662 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);
663 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);
667 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);
668 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);
676void EvtD0ToKSpi0pi0::IMTX(
int i,
int j,
double IMTX[2]){
693void EvtD0ToKSpi0pi0::FMTX(
double Kijx,
double Kijy,
double rhojjx,
double rhojjy,
int i,
int j,
double FM[2]){
698 double tmpx = Kijx*rhojjx - Kijy*rhojjy;
699 double tmpy = Kijy*rhojjx + Kijx*rhojjy;
711void EvtD0ToKSpi0pi0::PVTR(
int ID,
double s,
double PV[2]){
715 double m[5] = { 0.65100, 1.20360, 1.55817, 1.21000, 1.82206};
717 double g[5][5] = {{ 0.22889,-0.55377, 0.00000,-0.39899,-0.34639},
718 { 0.94128, 0.55095, 0.00000, 0.39065, 0.31503},
719 { 0.36856, 0.23888, 0.55639, 0.18340, 0.18681},
720 { 0.33650, 0.40907, 0.85679, 0.19906,-0.00984},
721 { 0.18171,-0.17558,-0.79658,-0.00355, 0.22358}};
723 double betax[5], betay[5], fprodx[5], fprody[5];
725 betax[0] = 8.5*
cos( 68.5*3.1415926/180.0); betay[0] = 8.5*
sin( 68.5*3.1415926/180.0);
726 betax[1] = 12.2*
cos( 24.0*3.1415926/180.0); betay[1] = 12.2*
sin( 24.0*3.1415926/180.0);
727 betax[2] = 29.2*
cos( -0.1*3.1415926/180.0); betay[2] = 29.2*
sin( -0.1*3.1415926/180.0);
728 betax[3] = 10.8*
cos(-51.9*3.1415926/180.0); betay[3] = 10.8*
sin(-51.9*3.1415926/180.0);
729 betax[4] = 0.0; betay[4] = 0.0;
731 fprodx[0] = 8.0*
cos(-126.0*3.1415926/180.0); fprody[0] = 8.0*
sin(-126.0*3.1415926/180.0);
732 fprodx[1] = 26.3*
cos(-152.3*3.1415926/180.0); fprody[1] = 26.3*
sin(-152.3*3.1415926/180.0);
733 fprodx[2] = 33.0*
cos( -93.2*3.1415926/180.0); fprody[2] = 33.0*
sin( -93.2*3.1415926/180.0);
734 fprodx[3] = 26.2*
cos(-121.4*3.1415926/180.0); fprody[3] = 26.2*
sin(-121.4*3.1415926/180.0);
735 fprodx[4] = 0.0; fprody[4] = 0.0;
737 double V0x = 0.0, V0y = 0.0, V1x = 0.0, V1y = 0.0;
738 double s0_prod = -0.07;
740 for(
int k=0;k<5;k++) {
741 V0x += betax[k]*g[k][
ID]/(m[k]*m[k]-
s);
742 V0y += betay[k]*g[k][
ID]/(m[k]*m[k]-
s);
744 V1x += (1.-s0_prod)/(
s-s0_prod)*fprodx[
ID];
745 V1y += (1.-s0_prod)/(
s-s0_prod)*fprody[
ID];
756void EvtD0ToKSpi0pi0::FINVMTX(
double s,
double *FINVx,
double *FINVy){
758 int P[5] = { 0,1,2,3,4};
775 for(
int k=0; k<5; k++){
777 double rhokkx = rho[0];
778 double rhokky = rho[1];
781 for(
int l=k; l<5; l++){
793 for(
int k=0; k<5; k++){
794 for(
int l=0; l<5; l++){
795 FMTX(Lx[k][l],Ly[k][l],Ux[l][l],Uy[l][l],k,l,AA);
803 for(
int k=0; k<5; k++){
804 double tmprM = (Fx[k][k]*Fx[k][k]+Fy[k][k]*Fy[k][k]);
806 for(
int l=k; l<5; l++){
807 double tmprF = (Fx[l][k]*Fx[l][k]+Fy[l][k]*Fy[l][k]);
818 for(
int l=0; l<5; l++){
820 double tmpFx = Fx[k][l];
821 double tmpFy = Fy[k][l];
823 Fx[k][l] = Fx[tmpID][l];
824 Fy[k][l] = Fy[tmpID][l];
826 Fx[tmpID][l] = tmpFx;
827 Fy[tmpID][l] = tmpFy;
830 for(
int l=k+1; l<5; l++){
831 double rFkk = Fx[k][k]*Fx[k][k] + Fy[k][k]*Fy[k][k];
832 double Fxlk = Fx[l][k];
833 double Fylk = Fy[l][k];
834 double Fxkk = Fx[k][k];
835 double Fykk = Fy[k][k];
836 Fx[l][k] = (Fxlk*Fxkk + Fylk*Fykk)/rFkk;
837 Fy[l][k] = (Fylk*Fxkk - Fxlk*Fykk)/rFkk;
838 for(
int m=k+1; m<5; m++){
839 Fx[l][m] = Fx[l][m] - (Fx[l][k]*Fx[k][m] - Fy[l][k]*Fy[k][m]);
840 Fy[l][m] = Fy[l][m] - (Fx[l][k]*Fy[k][m] + Fy[l][k]*Fx[k][m]);
845 for(
int k=0; k<5; k++){
846 for(
int l=0; l<5 ;l++){
868 for(
int k=0; k<5; k++){
873 double rUkk = Ux[k][k]*Ux[k][k] + Uy[k][k]*Uy[k][k];
874 UIx[k][k] = Ux[k][k]/rUkk;
875 UIy[k][k] = -1.0f * Uy[k][k]/rUkk ;
877 for(
int l=(k+1); l<5; l++){
883 for(
int l=(k-1); l>=0; l--){
888 for(
int m=l+1; m<=k; m++){
890 double sx_tmp = sx + Ux[l][m]*UIx[m][k] - Uy[l][m]*UIy[m][k];
891 c_sx = (sx_tmp - sx) - (Ux[l][m]*UIx[m][k] - Uy[l][m]*UIy[m][k]);
895 double sy_tmp = sy + Ux[l][m]*UIy[m][k] + Uy[l][m]*UIx[m][k];
896 c_sy = (sy_tmp - sy) - (Ux[l][m]*UIy[m][k] + Uy[l][m]*UIx[m][k]);
899 UIx[l][k] = -1.0f * (UIx[l][l]*sx - UIy[l][l]*sy);
900 UIy[l][k] = -1.0f * (UIy[l][l]*sx + UIx[l][l]*sy);
903 for(
int l=k+1; l<5; l++){
908 for(
int m=k; m<l; m++){
910 double sx_tmp = sx + Lx[l][m]*LIx[m][k] - Ly[l][m]*LIy[m][k];
911 c_sx = (sx_tmp - sx) - (Lx[l][m]*LIx[m][k] - Ly[l][m]*LIy[m][k]);
915 double sy_tmp = sy + Lx[l][m]*LIy[m][k] + Ly[l][m]*LIx[m][k];
916 c_sy = (sy_tmp - sy) - (Lx[l][m]*LIy[m][k] + Ly[l][m]*LIx[m][k]);
919 LIx[l][k] = -1.0f * sx;
920 LIy[l][k] = -1.0f * sy;
923 for(
int m=0; m<5; m++){
928 for(
int k=0; k<5; k++){
929 for(
int l=0; l<5; l++){
931 if(
P[l] == m) Plm = 1;
933 resX = resX - c_resX;
934 double resX_tmp = resX + (UIx[0][k]*LIx[k][l] - UIy[0][k]*LIy[k][l])*Plm;
935 c_resX = (resX_tmp - resX) - ((UIx[0][k]*LIx[k][l] - UIy[0][k]*LIy[k][l])*Plm);
938 resY = resY - c_resY;
939 double resY_tmp = resY + (UIx[0][k]*LIy[k][l] + UIy[0][k]*LIx[k][l])*Plm;
940 c_resY = (resY_tmp - resY) - ((UIx[0][k]*LIy[k][l] + UIy[0][k]*LIx[k][l])*Plm);
949void EvtD0ToKSpi0pi0::Fvector(
double sa,
double s0,
double Fv[2]){
954 double FINVx[5] = {0,0,0,0,0};
955 double FINVy[5] = {0,0,0,0,0};
957 FINVMTX(sa,FINVx,FINVy);
964 for(
int j=0; j<5; j++){
968 resx = resx - c_resx;
969 double resx_tmp = resx + (FINVx[j]*Plx - FINVy[j]*Ply);
970 c_resx = (resx_tmp - resx) - (FINVx[j]*Plx - FINVy[j]*Ply);
973 resy = resy - c_resy;
974 double resy_tmp = resy + (FINVx[j]*Ply + FINVy[j]*Plx);
975 c_resy = (resy_tmp - resy) - (FINVx[j]*Ply + FINVy[j]*Plx);
984void EvtD0ToKSpi0pi0::calEva(
double* Ks0,
double* Pi01,
double* Pi02,
double *mass1,
double *width1,
double *amp,
double *phase,
int* g0,
int* spin,
int* modetype,
int nstates,
double & Result ,
double*r0 ,
double*r1)
987 double P12[4], P23[4], P13[4];
988 double cof[2], amp_PDF[2], PDF[2];
992 double Realpipis, Imagpipis;
995 for(
int i=0; i<4; i++){
996 P12[i] = Ks0[i] + Pi01[i];
997 P13[i] = Ks0[i] + Pi02[i];
998 P23[i] = Pi01[i] + Pi02[i];
1000 s1 = SCADot(Ks0,Ks0);
1001 s2 = SCADot(Pi01,Pi01);
1002 s3 = SCADot(Pi02,Pi02);
1004 s12 = SCADot(P12,P12);
1005 s13 = SCADot(P13,P13);
1006 s23 = SCADot(P23,P23);
1007 double pro[2], temp_PDF, pro1[2], temp_PDF1, pro2[2], temp_PDF2, amp_tmp[2];
1015 for(
int i=0; i<nstates; i++) {
1018 mass1sq = mass1[i]*mass1[i];
1019 cof[0] = amp[i]*
cos(phase[i]);
1020 cof[1] = amp[i]*
sin(phase[i]);
1023 if(modetype[i] == 12){
1024 temp_PDF1 = DDalitz(Ks0, Pi01, Pi02, spin[i], mass1[i]);
1025 if(g0[i]==1) propagatorRBW(mass1[i],width1[i],
s12,s1,s2,rRes2,spin[i],pro1);
1026 if(g0[i]==4) KPiSLASS(
s12,s1,s2,pro1);
1032 temp_PDF2 = DDalitz(Ks0, Pi02, Pi01, spin[i], mass1[i]);
1033 if(g0[i]==1) propagatorRBW(mass1[i],width1[i],s13,s1,s3,rRes2,spin[i],pro2);
1034 if(g0[i]==4) KPiSLASS(s13,s1,s3,pro2);
1039 amp_tmp[0] = temp_PDF1*pro1[0] + temp_PDF2*pro2[0];
1040 amp_tmp[1] = temp_PDF1*pro1[1] + temp_PDF2*pro2[1];
1043 if(modetype[i] == 23){
1044 temp_PDF = DDalitz(Pi01, Pi02, Ks0, spin[i], mass1[i]);
1046 Fvector(
s23,-0.07,Fv);
1049 amp_tmp[0] = temp_PDF*Realpipis;
1050 amp_tmp[1] = temp_PDF*Imagpipis;
1052 if(g0[i]==4) propagatorFlatte(mass1[i],width1[i],
s23,pro);
1053 if(g0[i]==2) propagatorRBW(mass1[i],width1[i],
s23,s2,s3,rRes2,spin[i],pro);
1058 if(g0[i]==500) propagatorsigma500(
s23, s2, s3, pro);
1059 if(g0[i]!=6) amp_tmp[0] = temp_PDF*pro[0];
1060 if(g0[i]!=6) amp_tmp[1] = temp_PDF*pro[1];
1063 if(modetype[i] == 132){
1064 KPiSLASS(s13,s1,s3,Amp_KPiS);
1065 amp_tmp[0] = Amp_KPiS[0];
1066 amp_tmp[1] = Amp_KPiS[1];
1069 Com_Multi(amp_tmp,cof,amp_PDF);
1070 PDF[0] += amp_PDF[0];
1071 PDF[1] += amp_PDF[1];
1075 double value = PDF[0]*PDF[0] + PDF[1]*PDF[1];
1076 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 getName(std::string &name)
void decay(EvtParticle *p)
virtual ~EvtD0ToKSpi0pi0()
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