BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtDToKSKSK.cc
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2// Environment:
3// This software is part of models developed at BES collaboration
4// based on the EvtGen framework. If you use all or part
5// of it, please give an appropriate acknowledgement.
6//
7// Copyright Information: See EvtGen/BesCopyright
8// Copyright (A) 2006 Ping Rong-Gang @IHEP
9//
10// Module: EvtDToKSKSK.cc
11//
12// Description: D+ -> KS0 KS0 K+
13//
14// Modification history:
15//
16// Liaoyuan Dong Wed Nov 9 00:25:20 2022 Module created
17//------------------------------------------------------------------------
21#include "EvtGenBase/EvtPDL.hh"
26#include <stdlib.h>
27#include <iostream>
28#include <cmath>
29using namespace std;
30
32
33void EvtDToKSKSK::getName(std::string& model_name){
34 model_name="DToKSKSK";
35}
36
40
42 checkNArg(0);
43 checkNDaug(3);
45
46 mass[0] = 0.980;
47 mass[1] = 0.980;
48 width[0] = 0.0972;
49 width[1] = 0.0972;
50
51 rho[0] = 1.0;
52 rho[1] = 1.1141e+01;
53 phi[0] = 0.00;
54 phi[1] = -5.6220e+00;
55
56// spin[0] = 0;
57// spin[1] = 1;
58// spin[2] = 1;
59 modetype[0] = 12;
60 modetype[1] = 122;
61
62 //std::cout << "Initializing EvtDToKSKSK" << std::endl;
63 //for (int i=0; i<2; i++) {
64 // cout << i << " rho,phi = " << rho[i] << ", "<< phi[i] << endl;
65 //}
66
67 math_K = 0.493677;
68 GS1 = 0.636619783;
69 GS2 = 0.23459086;
70 GS3 = 0.1591549458;
71 GS4 = 0.078196955;
72}
73
75 setProbMax(878.9);
76}
77
79
80/* double maxprob = 0.0;
81 for(int ir=0;ir<=60000000;ir++){
82 p->initializePhaseSpace(getNDaug(),getDaugs());
83 EvtVector4R D1 = p->getDaug(0)->getP4();
84 EvtVector4R D2 = p->getDaug(1)->getP4();
85 EvtVector4R D3 = p->getDaug(2)->getP4();
86
87 double P1[4], P2[4], P3[4];
88 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
89 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
90 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
91
92 double value;
93 int g0[3]={1,1,1};
94 int spin[3]={0,1,0};
95 int nstates=2;
96 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
97 if (value<0) continue;
98 if(value>maxprob) {
99 maxprob=value;
100 cout << "ir= " << ir << endl;
101 cout << "double P1[4] = {" << P1[0] <<","<< P1[1] <<","<< P1[2] <<","<< P1[3] <<"};"<< endl;
102 cout << "double P2[4] = {" << P2[0] <<","<< P2[1] <<","<< P2[2] <<","<< P2[3] <<"};"<< endl;
103 cout << "double P3[4] = {" << P3[0] <<","<< P3[1] <<","<< P3[2] <<","<< P3[3] <<"};"<< endl;
104 cout << "MAX====> " << maxprob << endl;
105 }
106 }
107 printf("MAXprob = %.10f\n",maxprob);
108
109*/
111 EvtVector4R D1 = p->getDaug(0)->getP4();
112 EvtVector4R D2 = p->getDaug(1)->getP4();
113 EvtVector4R D3 = p->getDaug(2)->getP4();
114
115 double P1[4], P2[4], P3[4];
116 P1[0] = D1.get(0); P1[1] = D1.get(1); P1[2] = D1.get(2); P1[3] = D1.get(3);
117 P2[0] = D2.get(0); P2[1] = D2.get(1); P2[2] = D2.get(2); P2[3] = D2.get(3);
118 P3[0] = D3.get(0); P3[1] = D3.get(1); P3[2] = D3.get(2); P3[3] = D3.get(3);
119
120 double value;
121 int g0[2]={1,1};
122 int spin[2]={0,0};
123 int nstates=2;
124 calEva(P1, P2, P3, mass, width, rho, phi, g0, spin, modetype, nstates, value);
125 setProb(value);
126
127 return ;
128}
129
130void EvtDToKSKSK::Com_Multi(double a1[2], double a2[2], double res[2])
131{
132 res[0] = a1[0]*a2[0]-a1[1]*a2[1];
133 res[1] = a1[1]*a2[0]+a1[0]*a2[1];
134}
135void EvtDToKSKSK::Com_Divide(double a1[2], double a2[2], double res[2])
136{
137 double tmp = a2[0]*a2[0]+a2[1]*a2[1];
138 res[0] = (a1[0]*a2[0]+a1[1]*a2[1])/tmp;
139 res[1] = (a1[1]*a2[0]-a1[0]*a2[1])/tmp;
140}
141//------------base---------------------------------
142double EvtDToKSKSK::SCADot(double a1[4], double a2[4])
143{
144 double _cal = a1[0]*a2[0]-a1[1]*a2[1]-a1[2]*a2[2]-a1[3]*a2[3];
145 return _cal;
146}
147double EvtDToKSKSK::barrier(int l, double sa, double sb, double sc, double r, double mass)
148{
149 double q = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
150 // if(q < 0) q = 1e-16;
151 double z;
152 z = q*r*r;
153 double sa0;
154 sa0 = mass*mass;
155 double q0 = (sa0+sb-sc)*(sa0+sb-sc)/(4*sa0)-sb;
156 // if(q0 < 0) q0 = 1e-16;
157 double z0 = q0*r*r;
158 double F = 0.0;
159 if(l == 0) F = 1;
160 if(l == 1) F = sqrt((1+z0)/(1+z));
161 if(l == 2) F = sqrt((9+3*z0+z0*z0)/(9+3*z+z*z));
162 return F;
163}
164
165void EvtDToKSKSK::calt1(double daug1[4], double daug2[4], double t1[4])
166{
167 double p, pq, tmp;
168 double pa[4], qa[4];
169 for(int i=0; i<4; i++) {
170 pa[i] = daug1[i] + daug2[i];
171 qa[i] = daug1[i] - daug2[i];
172 }
173 p = SCADot(pa,pa);
174 pq = SCADot(pa,qa);
175 tmp = pq/p;
176 for(int i=0; i<4; i++) {
177 t1[i] = qa[i] - tmp*pa[i];
178 }
179}
180
181void EvtDToKSKSK::calt2(double daug1[4], double daug2[4], double t2[4][4])
182{
183 double p, r;
184 double pa[4], t1[4];
185 calt1(daug1,daug2,t1);
186 r = SCADot(t1,t1)/3.0;
187 for(int i=0; i<4; i++) {
188 pa[i] = daug1[i] + daug2[i];
189 }
190 p = SCADot(pa,pa);
191 for(int i=0; i<4; i++) {
192 for(int j=0; j<4; j++) {
193 t2[i][j] = t1[i]*t1[j] - r*(G[i][j]-pa[i]*pa[j]/p);
194 }
195 }
196}
197
198 void EvtDToKSKSK::propagatorCBW(double mass, double width, double sx, double prop[2])
199{
200 double a[2], b[2];
201 a[0] = 1;
202 a[1] = 0;
203 b[0] = mass*mass-sx;
204 b[1] = -mass*width;
205 Com_Divide(a,b,prop);
206}
207
208
209double EvtDToKSKSK::wid(double mass2, double mass, double sa, double sb, double sc, double r2, int l)
210{
211 double widm = 0.;
212 double m = sqrt(sa);
213 double tmp = sb-sc;
214 double tmp1 = sa+tmp;
215 double q = fabs(0.25*tmp1*tmp1/sa-sb);
216 double tmp2 = mass2+tmp;
217 double q0 = fabs(0.25*tmp2*tmp2/mass2-sb);
218 double z = q*r2;
219 double z0 = q0*r2;
220 double t = q/q0;
221
222 if(l == 0) {widm = sqrt(t)*mass/m;}
223 else if(l == 1) {widm = t*sqrt(t)*mass/m*(1+z0)/(1+z);}
224 else if(l == 2) {widm = t*t*sqrt(t)*mass/m*(9+3*z0+z0*z0)/(9+3*z+z*z);}
225 return widm;
226}
227double EvtDToKSKSK::widl1(double mass2, double mass, double sa, double sb, double sc, double r2)
228{
229 double widm = 0.;
230 double m = sqrt(sa);
231 double tmp = sb-sc;
232 double tmp1 = sa+tmp;
233 double q = fabs(0.25*tmp1*tmp1/sa-sb);
234 double tmp2 = mass2+tmp;
235 double q0 = fabs(0.25*tmp2*tmp2/mass2-sb);
236 double z = q*r2;
237 double z0 = q0*r2;
238 double F = (1+z0)/(1+z);
239 double t = q/q0;
240 widm = t*sqrt(t)*mass/m*F;
241 return widm;
242
243}
244 void EvtDToKSKSK::propagatorRBW(double mass, double width, double sa, double sb, double sc, double r2, int l, double prop[2])
245{
246 double a[2], b[2];
247 double mass2 = mass*mass;
248
249 a[0] = 1;
250 a[1] = 0;
251 b[0] = mass2-sa;
252 b[1] = -mass*width*wid(mass2,mass,sa,sb,sc,r2,l);
253 Com_Divide(a,b,prop);
254}
255
256void EvtDToKSKSK::propagatorFlatte(double mass, double width, double sa, double sb, double sc, double prop[2]){
257 double rhoab, rhoKK;
258 rhoab=1.0/sa*sqrt((sa-(0.547862+0.139570)*(0.547862+0.139570))*(sa-(0.547862-0.139570)*(0.547862-0.139570)));
259 rhoKK=1.0/sa*sqrt((sa-(0.497611+0.493677)*(0.497611+0.493677))*(sa-(0.497611-0.493677)*(0.497611-0.493677)));
260 double a[2], b[2];
261 a[0] = 1;
262 a[1] = 0;
263 b[0] = mass*mass - sa;
264 b[1] = - (0.324*0.324*rhoab+ 1.03*0.324*0.324*rhoKK);
265 Com_Divide(a,b,prop);
266}
267
268 void EvtDToKSKSK::propagatorGS(double mass, double width, double sa, double sb, double sc, double r2, double prop[2])
269{
270 double a[2], b[2];
271 double mass2 = mass*mass;
272 double tmp = sb-sc;
273 double tmp1 = sa+tmp;
274 double q2 = fabs(0.25*tmp1*tmp1/sa-sb);
275 double tmp2 = mass2+tmp;
276 double q02 = fabs(0.25*tmp2*tmp2/mass2-sb);
277 double q = sqrt(q2);
278 double q0 = sqrt(q02);
279 double m = sqrt(sa);
280 double q03 = q0*q02;
281 double tmp3 = log(mass+2*q0)+0.0087501713;
282 double h = GS1*q/m*(log(m+2*q)+0.0087501713);
283 double h0 = GS1*q0/mass*tmp3;
284 double dh = h0*(0.125/q02-0.5/mass2)+GS3/mass2;
285 double d = GS2/q02*tmp3+GS3*mass/q0-GS4*mass/q03;
286 double f = mass2/q03*(q2*(h-h0)+(mass2-sa)*q02*dh);
287 a[0] = 1.0+d*width/mass;
288 a[1] = 0.0;
289 b[0] = mass2-sa+width*f;
290 b[1] = -mass*width*widl1(mass2,mass,sa,sb,sc,r2);
291 Com_Divide(a,b,prop);
292}
293
294 void EvtDToKSKSK::PiPiSWASS(double sa, double sb, double sc, double prop[2]) {
295 double tmp = sb-sc;
296 double tmp2 = sa+tmp;
297 double qs = 0.25*tmp2*tmp2/sa-sb;
298 double q = sqrt(qs);
299 double a0 = -0.11/mass_Pion;
300 prop[0] = 1/(1+a0*a0*q*q);
301 prop[1] = a0*q/(1+a0*a0*q*q);
302}
303
304 void EvtDToKSKSK::KPiSLASS(double sa, double sb, double sc, double prop[2]) {
305 const double m1430 = 1.441;
306 const double sa0 = 2.076481;
307 const double w1430 = 0.193;
308 const double Lass1 = 0.25/sa0;
309 double tmp = sb-sc;
310 double tmp1 = sa0+tmp;
311 double q0 = fabs(Lass1*tmp1*tmp1-sb);
312 double tmp2 = sa+tmp;
313 double qs = 0.25*tmp2*tmp2/sa-sb;
314 double q = sqrt(qs);
315 double width = w1430*q*m1430/sqrt(sa*q0);
316 double temp_R = atan(m1430*width/(sa0-sa));
317 if(temp_R<0) temp_R += math_K;
318 double deltaR = -109.7*math_K/180.0 + temp_R;
319 double temp_F = atan(0.226*q/(2.0-3.8194*qs));
320 if(temp_F<0) temp_F += math_K;
321 double deltaF = 0.1*math_K/180.0 + temp_F;
322 double deltaS = deltaR + 2.0*deltaF;
323 double t1 = 0.96*sin(deltaF);
324 double t2 = sin(deltaR);
325 double CF[2], CS[2];
326 CF[0] = cos(deltaF);
327 CF[1] = sin(deltaF);
328 CS[0] = cos(deltaS);
329 CS[1] = sin(deltaS);
330 prop[0] = t1*CF[0] + t2*CS[0];
331 prop[1] = t1*CF[1] + t2*CS[1];
332}
333
334 void EvtDToKSKSK::Flatte_rhoab(double sa, double sb, double sc, double rho[2]){
335 double q = (sa+sb-sc)*(sa+sb-sc)/(4*sa)-sb;
336 if(q>0) {
337 rho[0]=2* sqrt(q/sa);
338 rho[1]=0;
339 }
340 else if(q<0){
341 rho[0]=0;
342 rho[1]=2*sqrt(-q/sa);
343 }
344}
345
346 void EvtDToKSKSK::propagatorKstr1430(double mass, double sx, double *sb, double *sc, double prop[2])
347{
348 double unit[2]={1.0};
349 double ci[2]={0,1};
350 double rho1[2];
351 Flatte_rhoab(sx,sb[0],sc[0],rho1);
352 double rho2[2];
353 Flatte_rhoab(sx,sb[1],sc[1],rho2);
354 double gKPi_Kstr1430=0.2990, gEtaPK_Kstr1430=0.0529;
355 double tmp1[2]={gKPi_Kstr1430,0};
356 double tmp11[2];
357 double tmp2[2]={gEtaPK_Kstr1430,0};
358 double tmp22[2];
359 Com_Multi(tmp1,rho1,tmp11);
360 Com_Multi(tmp2,rho2,tmp22);
361 double tmp3[2]={tmp11[0]+tmp22[0],tmp11[1]+tmp22[1]};
362 double tmp31[2];
363 Com_Multi(tmp3, ci,tmp31);
364 double tmp4[2]={mass*mass-sx-tmp31[0], -1.0*tmp31[1]};
365 Com_Divide( unit,tmp4, prop);
366}
367 void EvtDToKSKSK::rhoab(double sa, double sb, double sc, double res[2]) {
368 double tmp = sa+sb-sc;
369 double q = 0.25*tmp*tmp/sa-sb;
370 if(q>=0) {
371 res[0]=2.0*sqrt(q/sa);
372 res[1]=0.0;
373 } else {
374 res[0]=0.0;
375 res[1]=2.0*sqrt(-q/sa);
376 }
377}
378 void EvtDToKSKSK::rho4Pi(double sa, double res[2]) {
379 double temp = 1.0-0.3116765584/sa;
380 if(temp>=0) {
381 res[0]=sqrt(temp)/(1.0+exp(9.8-3.5*sa));
382 res[1]=0.0;
383 } else {
384 res[0]=0.0;
385 res[1]=sqrt(-temp)/(1.0+exp(9.8-3.5*sa));
386 }
387}
388
389 void EvtDToKSKSK::propagatorsigma500(double sa, double sb, double sc, double prop[2]) {
390 double f = 0.5843+1.6663*sa;
391 const double M = 0.9264;
392 const double mass2 = 0.85821696;
393 const double mpi2d2 = 0.00973989245;
394 double g1 = f*(sa-mpi2d2)/(mass2-mpi2d2)*exp((mass2-sa)/1.082);
395 double rho1s[2], rho1M[2], rho2s[2], rho2M[2], rho1[2], rho2[2];
396 rhoab(sa,sb,sc,rho1s);
397 rhoab(mass2,sb,sc,rho1M);
398 rho4Pi(sa,rho2s);
399 rho4Pi(mass2,rho2M);
400 Com_Divide(rho1s,rho1M,rho1);
401 Com_Divide(rho2s,rho2M,rho2);
402 double a[2], b[2];
403 a[0] = 1.0;
404 a[1] = 0.0;
405 b[0] = mass2-sa+M*(g1*rho1[1]+0.0024*rho2[1]);
406 b[1] = -M*(g1*rho1[0]+0.0024*rho2[0]);
407 Com_Divide(a,b,prop);
408}
409
410 void EvtDToKSKSK::getprop(double sa, double sb, double sc, double mass, double width, double prop[2]){
411 double prop1[2], prop2[2];
412 propagatorGS(mass,width,sa,sb,sc,9.0,prop1);
413 propagatorRBW(0.783,0.008,sa,sb,sc,3.0,1,prop2);
414 double coef_omega[2];
415 coef_omega[0] = rho_omega*cos(phi_omega),
416 coef_omega[1] = rho_omega*sin(phi_omega);
417 double one[2]; one[0] = 1; one[1] = 0;
418 double temp[2];
419 Com_Multi(coef_omega,prop2,temp);
420 temp[0] = one[0] + 0.783*0.783*temp[0];
421 temp[1] = one[1] + 0.783*0.783*temp[1];
422 Com_Multi(prop1,temp,prop);
423}
424
425double EvtDToKSKSK::DDalitz(double P1[4], double P2[4], double P3[4], int Ang, double mass){
426 double pR[4], pD[4];
427 double temp_PDF, v_re;
428 temp_PDF = 0.0;
429 v_re = 0.0;
430 double B[2], s1, s2, s3, sR, sD;
431 for(int i=0; i<4; i++){
432 pR[i] = P1[i] + P2[i];
433 pD[i] = pR[i] + P3[i];
434 }
435 s1 = SCADot(P1,P1);
436 s2 = SCADot(P2,P2);
437 s3 = SCADot(P3,P3);
438 sR = SCADot(pR,pR);
439 sD = SCADot(pD,pD);
440 int G[4][4];
441 for(int i=0; i!=4; i++){
442 for(int j=0; j!=4; j++){
443 if(i==j){
444 if(i==0) G[i][j] = 1;
445 else G[i][j] = -1;
446 }
447 else G[i][j] = 0;
448 }
449 }
450 if(Ang == 0){
451 B[0] = 1;
452 B[1] = 1;
453 temp_PDF = 1;
454 }
455 if(Ang == 1){
456 B[0] = barrier(1,sR,s1,s2,3.0,mass);
457 B[1] = barrier(1,sD,sR,s3,5.0,mD0);
458 double t1[4], T1[4];
459 calt1(P1,P2,t1);
460 calt1(pR,P3,T1);
461 temp_PDF = 0;
462 for(int i=0; i<4; i++){
463 temp_PDF += t1[i]*T1[i]*G[i][i];
464 }
465 }
466 if(Ang == 2){
467 B[0] = barrier(2,sR,s1,s2,3.0,mass);
468 B[1] = barrier(2,sD,sR,s3,5.0,mD0);
469 double t2[4][4], T2[4][4];
470 calt2(P1,P2,t2);
471 calt2(pR,P3,T2);
472 temp_PDF = 0;
473 for(int i=0; i<4; i++){
474 for(int j=0; j<4; j++){
475 temp_PDF += t2[i][j]*T2[j][i]*G[i][i]*G[j][j];
476 }
477 }
478 }
479 v_re = temp_PDF*B[0]*B[1];
480 return v_re;
481}
482
483
484
485void EvtDToKSKSK::calEva(double* Ks01, double* Ks02, double* Kp, double *mass1, double *width1, double *amp, double *phase,int* g0,int* spin, int* modetype, int nstates, double & Result)
486{
487 double numEvents;
488 double P23[4], P13[4], P12[4];
489// double Ks01[4], Ks02[4], Kp[4], P23[4], P13[4], P12[4];
490 double cof[2], amp_PDF[2], PDF[2];
491 double s12, s23, s13;
492 for(int i=0; i<4; i++){
493 P12[i] = Ks01[i] + Ks02[i];
494 P13[i] = Ks01[i] + Kp[i];
495 P23[i] = Ks02[i]+ Kp[i];
496 }
497 s12 = SCADot(P12,P12);
498 s13 = SCADot(P13,P13);
499 s23 = SCADot(P23,P23);
500 double s1,s2,s3;
501 s1 = SCADot(Ks01,Ks01);
502 s2 = SCADot(Ks02,Ks02);
503 s3 = SCADot(Kp,Kp);
504 double pro[2], temp_PDF, amp_tmp[2];
505 double pro1[2], temp_PDF1,pro2[2], temp_PDF2;
506 double pro3[2], temp_PDF3,pro4[2], temp_PDF4;
507 double pro5[2], temp_PDF5,pro6[2], temp_PDF6;
508 double pro7[2], temp_PDF7,pro8[2], temp_PDF8;
509 double pro9[2], temp_PDF9,pro10[2], temp_PDF10;
510 double Amp_KPiS[2];
511 amp_PDF[0] = 0;
512 amp_PDF[1] = 0;
513 PDF[0] = 0;
514 PDF[1] = 0;
515 amp_tmp[0] = 0;
516 amp_tmp[1] = 0;
517 for(int i=0; i<3; i++) {
518 amp_tmp[0] = 0;
519 amp_tmp[1] = 0;
520 cof[0] = amp[i]*cos(phase[i]);
521 cof[1] = amp[i]*sin(phase[i]);
522 temp_PDF = 0;
523 if(modetype[i] == 12){
524 temp_PDF1 = DDalitz(Ks01, Kp, Ks02, spin[i], mass1[i]);
525 if(g0[i]==1) propagatorFlatte(mass1[i],width1[i],s13,s1,s3,pro1);
526
527 if(g0[i]==2) {
528 double skm2[2]={s1, mass_EtaP *mass_EtaP};
529 double spi2[2]={s2, mass_Kaon *mass_Kaon};
530 propagatorKstr1430(mass1[i],s12,skm2,spi2,pro1);
531 }
532 if(g0[i]==4) KPiSLASS(s12,s1,s2,pro1);
533 if(g0[i]==0){
534 pro1[0] = 1;
535 pro1[1] = 0;
536 }
537
538 temp_PDF2 = DDalitz(Ks02, Kp, Ks01, spin[i], mass1[i]);
539 if(g0[i]==1) propagatorFlatte(mass1[i],width1[i],s23,s2,s3,pro2);
540
541 if(g0[i]==2) {
542 double skm2[2]={s1, mass_EtaP *mass_EtaP};
543 double spi2[2]={s3, mass_Kaon *mass_Kaon};
544 propagatorKstr1430(mass1[i],s13,skm2,spi2,pro2);
545 }
546 if(g0[i]==4) KPiSLASS(s13,s1,s3,pro2);
547 if(g0[i]==0){
548 pro2[0] = 1;
549 pro2[1] = 0;
550 }
551 amp_tmp[0] = temp_PDF1*pro1[0] + temp_PDF2*pro2[0];
552 amp_tmp[1] = temp_PDF1*pro1[1] + temp_PDF2*pro2[1];
553 }
554
555
556 if(modetype[i] == 123){
557 temp_PDF3 = DDalitz(Ks01, Kp, Ks02, spin[i], mass1[i]);
558 if(g0[i]==1) propagatorGS(mass1[i],width1[i],s13,s1,s3,9.0,pro3);
559 if(g0[i]==2) {
560 double skm2[2]={s1, mass_EtaP *mass_EtaP};
561 double spi2[2]={s2, mass_Kaon *mass_Kaon};
562 propagatorKstr1430(mass1[i],s12,skm2,spi2,pro3);
563 }
564 if(g0[i]==4) KPiSLASS(s12,s1,s2,pro3);
565 if(g0[i]==0){
566 pro1[0] = 1;
567 pro1[1] = 0;
568 }
569
570 temp_PDF4 = DDalitz(Ks02, Kp, Ks01, spin[i], mass1[i]);
571 if(g0[i]==1) propagatorGS(mass1[i],width1[i],s23,s2,s3,9.0,pro4);
572
573 if(g0[i]==2) {
574 double skm2[2]={s1, mass_EtaP *mass_EtaP};
575 double spi2[2]={s3, mass_Kaon *mass_Kaon};
576 propagatorKstr1430(mass1[i],s13,skm2,spi2,pro2);
577 }
578 if(g0[i]==4) KPiSLASS(s13,s1,s3,pro2);
579 if(g0[i]==0){
580 pro2[0] = 1;
581 pro2[1] = 0;
582 }
583 amp_tmp[0] = temp_PDF3*pro3[0] + temp_PDF4*pro4[0];
584 amp_tmp[1] = temp_PDF3*pro3[1] + temp_PDF4*pro4[1];
585 }
586
587 if(modetype[i] == 122){
588 amp_tmp[0] =2;
589 amp_tmp[1] =0;
590 }
591// cout<<"pdf: "<<i<<", "<<amp_tmp[0]<<", "<<amp_tmp[1]<<endl;
592 Com_Multi(amp_tmp,cof,amp_PDF);
593 PDF[0] += amp_PDF[0];
594 PDF[1] += amp_PDF[1];
595
596// cout<<"PDF: "<<i<<", "<<amp_PDF[0]<<", "<<amp_PDF[1]<<endl;
597 }
598 double value = PDF[0]*PDF[0] + PDF[1]*PDF[1];
599// cout<<"value: "<<value<<endl;
600 if(value <=0) value = 1e-20;
601
602 Result = value;
603}
double sin(const BesAngle a)
Definition BesAngle.h:210
double cos(const BesAngle a)
Definition BesAngle.h:213
double mass
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
TF1 * g1
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
Definition FoamA.h:90
****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
Definition KKsem.h:33
TCrossPart * CS
Definition Mcgpj.cxx:51
TTree * t
Definition binning.cxx:23
void initProbMax()
void getName(std::string &name)
virtual ~EvtDToKSKSK()
EvtDecayBase * clone()
void decay(EvtParticle *p)
void checkSpinParent(EvtSpinType::spintype sp)
void setProbMax(double prbmx)
void checkNDaug(int d1, int d2=-1)
EvtId * getDaugs()
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 get(int i) const
double double double double * s12
Definition qcdloop1.h:77
double double double double double * s23
Definition qcdloop1.h:77
double precision pisqo6 one
Definition qlconstants.h:4
const double b
Definition slope.cxx:9