35 model_name=
"D0ToKSpipi";
50 tan2thetaC = (0.22650*0.22650)/(1.-(0.22650*0.22650)) ;
53 mass_R[0]= 0.77526; width_R[0]= 0.14740; spin_R[0]= 1; ar[0]= 1; phir[0]= 0;
54 mass_R[1]= 0.78266; width_R[1]= 0.00868; spin_R[1]= 1; ar[1]= 0.037606; phir[1]= 109.677;
55 mass_R[2]= 1.27550; width_R[2]= 0.18670; spin_R[2]= 2; ar[2]= 1.54909; phir[2]= -42.7425;
56 mass_R[3]= 1.46500; width_R[3]= 0.40000; spin_R[3]= 1; ar[3]= 3.70735; phir[3]= 103.644;
57 mass_R[4]= 0.89167; width_R[4]= 0.0514; spin_R[4]= 1; ar[4]= 1.86093; phir[4]= 136.529;
58 mass_R[5]= 1.42730; width_R[5]= 0.10000; spin_R[5]= 2; ar[5]= 1.74288; phir[5]= -48.0968;
59 mass_R[6]= 1.71800; width_R[6]= 0.3220; spin_R[6]= 1; ar[6]= 3.31; phir[6]= -118.2;
60 mass_R[7]= 1.41400; width_R[7]= 0.2320; spin_R[7]= 1; ar[7]= 0.171672; phir[7]= -68.41;
61 mass_R[8]= 0.89167; width_R[8]= 0.0514; spin_R[8]= 1; ar[8]= 0.164; phir[8]= -42.2;
62 mass_R[9]= 1.42730; width_R[9]= 0.1000; spin_R[9]= 2; ar[9]= 0.1; phir[9]= -89.6;
63 mass_R[10]= 1.41400; width_R[10]= 0.2320; spin_R[10]= 1; ar[10]= 0.21; phir[10]= 150.2;
64 mass_R[11]= 1.42500; width_R[11]= 0.2700; spin_R[11]= 1; ar[11]= 2.78276; phir[11]= 97.9608;
65 mass_R[12]= 1.42500; width_R[12]= 0.2700; spin_R[12]= 1; ar[12]= 0.11; phir[12]= 162.3;
67 beta[0] =
EvtComplex( 0.255303*
cos( 47.8861 *pi180inv), 0.255303*
sin( 47.8861 *pi180inv));
68 beta[1] =
EvtComplex(13.4446 *
cos( -5.11127*pi180inv), 13.4446 *
sin( -5.11127*pi180inv));
69 beta[2] =
EvtComplex(38.8496 *
cos(-30.06 *pi180inv), 38.8496 *
sin(-30.06 *pi180inv));
70 beta[3] =
EvtComplex(13.1086 *
cos(-81.4148 *pi180inv), 13.1086 *
sin(-81.4148 *pi180inv));
73 fprod[0] =
EvtComplex(5.08049*
cos(-182.312*pi180inv), 5.08049*
sin(-182.312*pi180inv));
74 fprod[1] =
EvtComplex(17.2388*
cos(-219.209*pi180inv), 17.2388*
sin(-219.209*pi180inv));
75 fprod[2] =
EvtComplex(19.0145*
cos(-76.9884*pi180inv), 19.0145*
sin(-76.9884*pi180inv));
76 fprod[3] =
EvtComplex(11.9875*
cos(-190.502*pi180inv), 11.9875*
sin(-190.502*pi180inv));
79 ma[0]= 0.651; g[0][0]= 0.22889; g[0][1]= -0.55377; g[0][2]= 0; g[0][3]= -0.39899; g[0][4]= -0.34639;
80 ma[1]= 1.20360; g[1][0]= 0.94128; g[1][1]= 0.55095; g[1][2]= 0; g[1][3]= 0.39065; g[1][4]= 0.31503;
81 ma[2]= 1.55817; g[2][0]= 0.36856; g[2][1]= 0.23888; g[2][2]= 0.55639; g[2][3]= 0.18340; g[2][4]= 0.18681;
82 ma[3]= 1.21000; g[3][0]= 0.33650; g[3][1]= 0.40907; g[3][2]= 0.85679; g[3][3]= 0.19906; g[3][4]= -0.00984;
83 ma[4]= 1.82206; g[4][0]= 0.18171; g[4][1]= -0.17558; g[4][2]= -0.79658; g[4][3]= -0.00355; g[4][4]= 0.22358;
91 deltad[1] = 194.7*pi180inv;
92 deltad[2] = 196.0*pi180inv;
93 deltad[3] = 167.0*pi180inv;
102 double ProbMax = 12500.0;
103 if (tagmode==1) ProbMax = 12500.0;
104 else if (tagmode==2) ProbMax = 12000.0;
105 else if (tagmode==3) ProbMax = 12100.0;
106 else ProbMax = 12000.0;
128 for(
int i=0; i<_nd; i++){
132 double prob = AmplitudeSquare();
137double EvtD0ToKSpipi::AmplitudeSquare() {
143 double total_prob, Interference=0.;
146 EvtComplex DK2piRes0 = Resonance2(pD, pip, pim, ar[0], phir[0], width_R[0], mass_R[0], spin_R[0]);
147 EvtComplex DK2piRes1 = Resonance2(pD, pip, pim, ar[1], phir[1], width_R[1], mass_R[1], spin_R[1]);
148 EvtComplex DK2piRes2 = Resonance2(pD, pip, pim, ar[2], phir[2], width_R[2], mass_R[2], spin_R[2]);
149 EvtComplex DK2piRes3 = Resonance2(pD, pip, pim, ar[3], phir[3], width_R[3], mass_R[3], spin_R[3]);
150 EvtComplex DK2piRes4 = Resonance2(pD, k0l, pim, ar[4], phir[4], width_R[4], mass_R[4], spin_R[4]);
151 EvtComplex DK2piRes5 = Resonance2(pD, k0l, pim, ar[5], phir[5], width_R[5], mass_R[5], spin_R[5]);
152 EvtComplex DK2piRes6 = Resonance2(pD, k0l, pim, ar[6], phir[6], width_R[6], mass_R[6], spin_R[6]);
153 EvtComplex DK2piRes7 = Resonance2(pD, k0l, pim, ar[7], phir[7], width_R[7], mass_R[7], spin_R[7]);
154 EvtComplex DK2piRes8 = Resonance2(pD, k0l, pip, ar[8], phir[8], width_R[8], mass_R[8], spin_R[8]);
155 EvtComplex DK2piRes9 = Resonance2(pD, k0l, pip, ar[9], phir[9], width_R[9], mass_R[9], spin_R[9]);
156 EvtComplex DK2piRes10 = Resonance2(pD, k0l, pip, ar[10], phir[10], width_R[10], mass_R[10], spin_R[10]);
160 if(pipi_s_wave ==
EvtComplex(9999., 9999.))
return 1e-20;
163 EvtComplex kpi_s_wave = amplitude_LASS(k0l, pip, pim,
"k0spim", ar[11], phir[11]*pi180inv);
164 EvtComplex dcs_kpi_s_wave = amplitude_LASS(k0l, pip, pim,
"k0spip", ar[12], phir[12]*pi180inv);
167 EvtComplex TOT_PFT_AMP = DK2piRes0+ DK2piRes1+ DK2piRes2+ DK2piRes3+ DK2piRes4+ DK2piRes5+ DK2piRes6+ DK2piRes7+ DK2piRes8+ DK2piRes9+ DK2piRes10+ pipi_s_wave + kpi_s_wave+ dcs_kpi_s_wave ;
169 if (tagmode==1||tagmode==2||tagmode==3) {
171 EvtComplex DK2piRes4_dcs = Resonance2(pD, k0l, pim, ar[8], phir[8], width_R[4], mass_R[4], spin_R[4]);
172 EvtComplex DK2piRes5_dcs = Resonance2(pD, k0l, pim, ar[9], phir[9], width_R[5], mass_R[5], spin_R[5]);
173 EvtComplex DK2piRes6_dcs = Resonance2(pD, k0l, pip, ar[6], phir[6], width_R[6], mass_R[6], spin_R[6]);
174 EvtComplex DK2piRes7_dcs = Resonance2(pD, k0l, pim, ar[10], phir[10], width_R[7], mass_R[7], spin_R[7]);
175 EvtComplex DK2piRes8_dcs = Resonance2(pD, k0l, pip, ar[4], phir[4], width_R[8], mass_R[8], spin_R[8]);
176 EvtComplex DK2piRes9_dcs = Resonance2(pD, k0l, pip, ar[5], phir[5], width_R[9], mass_R[9], spin_R[9]);
177 EvtComplex DK2piRes10_dcs = Resonance2(pD, k0l, pip, ar[7], phir[7], width_R[10], mass_R[10], spin_R[10]);
179 EvtComplex kpi_s_wave_dcs = amplitude_LASS(k0l, pip, pim,
"k0spip", ar[11], phir[11]*pi180inv) ;
180 EvtComplex dcs_kpi_s_wave_dcs = amplitude_LASS(k0l, pip, pim,
"k0spim", ar[12], phir[12]*pi180inv) ;
183 EvtComplex TOT_DCS_AMP = DK2piRes0+ DK2piRes1+ DK2piRes2+ DK2piRes3+ DK2piRes4_dcs+ DK2piRes5_dcs+ DK2piRes6_dcs+ DK2piRes7_dcs+ DK2piRes8_dcs+ DK2piRes9_dcs+ DK2piRes10_dcs+ pipi_s_wave+ kpi_s_wave_dcs + dcs_kpi_s_wave_dcs ;
189 total_prob =
abs2(TOT_PFT_AMP) + rd[tagmode]*rd[tagmode]*
abs2(TOT_DCS_AMP) - rd[tagmode]*Rf[tagmode]*Interference ;
191 total_prob =
abs2(TOT_PFT_AMP);
194 return (total_prob <= 0) ? 1e-20 : total_prob;
203 double mAB= (p4_d1 + p4_d2).
mass();
204 double mBC= (p4_d2 + p4_d3).
mass();
205 double mAC= (p4_d1 + p4_d3).
mass();
206 double mA = p4_d1.
mass();
207 double mB = p4_d2.
mass();
208 double mD = p4_p.
mass();
209 double mC = p4_d3.
mass();
212 double gammaR = gamma;
213 double pAB = sqrt( (((mAB*mAB-mA*mA-mB*mB)*(mAB*mAB-mA*mA-mB*mB)/4.0) - mA*mA*mB*mB)/(mAB*mAB));
214 double pR = sqrt( (((mR*mR-mA*mA-mB*mB)*(mR*mR-mA*mA-mB*mB)/4.0) - mA*mA*mB*mB)/(mR*mR));
216 double pD= (((mD*mD-mR*mR-mC*mC)*(mD*mD-mR*mR-mC*mC)/4.0) - mR*mR*mC*mC)/(mD*mD);
217 if ( pD>0 ) { pD = sqrt(pD); }
219 double pDAB=sqrt( (((mD*mD-mAB*mAB-mC*mC)*(mD*mD-mAB*mAB-mC*mC)/4.0) - mAB*mAB*mC*mC)/(mD*mD));
230 fR = sqrt(1.0+1.5*1.5*pR*pR)/sqrt(1.0+1.5*1.5*pAB*pAB);
231 fD = sqrt(1.0+5.0*5.0*pD*pD)/sqrt(1.0+5.0*5.0*pDAB*pDAB);
235 fR = sqrt( (9+3*pow((1.5*pR),2)+pow((1.5*pR),4))/(9+3*pow((1.5*pAB),2) +pow((1.5*pAB) ,4)) );
236 fD = sqrt( (9+3*pow((5.0*pD),2)+pow((5.0*pD),4))/(9+3*pow((5.0*pDAB),2)+pow((5.0*pDAB),4)) );
240 report(
INFO,
"EvtGen") <<
"Incorrect spin in EvtD0ToKSpipi::EvtResonance2.cc\n";
243 double gammaAB= gammaR*pow(pAB/pR,power)*(mR/mAB)*fR*fR;
250 (fR*fD*(mAC*mAC-mBC*mBC+((mD*mD-mC*mC)*(mB*mB-mA*mA)/(mAB*mAB)))/(mR*mR-mAB*mAB-
EvtComplex(0.0,mR*gammaAB)));
254 (fR*fD/(mR*mR-mAB*mAB-
EvtComplex(0.0,mR*gammaAB)))*
255 (pow((mBC*mBC-mAC*mAC+(mD*mD-mC*mC)*(mA*mA-mB*mB)/(mAB*mAB)),2)-
256 (1.0/3.0)*(mAB*mAB-2*mD*mD-2*mC*mC+pow((mD*mD- mC*mC)/mAB, 2))*
257 (mAB*mAB-2*mA*mA-2*mB*mB+pow((mA*mA-mB*mB)/mAB,2)));
260 report(
INFO,
"EvtGen") <<
"Incorrect spin in EvtD0ToKSpipi::Resonance2.cc\n";
267 const double mD0 = 1.86483;
268 const double mKl = 0.49761;
269 const double mPi = 0.13957;
272 double mAB = (p_pip + p_pim).
mass() ;
275 EvtComplex n11,n12,n13,n14,n15,n21,n22,n23,n24,n25,n31,n32,n33,n34,n35,n41,n42,n43,n44,n45,n51,n52,n53,n54,n55;
276 double rho1sq,rho2sq, rho4sq,rho5sq;
284 const double mpi = 0.13957;
285 const double mK = 0.493677;
286 const double meta = 0.54775;
287 const double metap = 0.95778;
291 for(
int k=0;k<5;k++) {
292 for(
int l=0;l<5;l++) {
301 double s_scatt = -3.92637;
319 rho1sq=(1.0-(pow((
mpi+
mpi),2)/
s));
320 if(rho1sq >=0.) rho1=
EvtComplex(sqrt(rho1sq),0.);
325 rho2sq=(1.0-(pow((mK+mK),2)/
s));
326 if(rho2sq >=0.) rho2=
EvtComplex(sqrt(rho2sq),0.);
333 double real = 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;
334 double cont32=sqrt(1.0-(16.0*
mpi*
mpi));
342 if(rho4sq>=0.) rho4=
EvtComplex(sqrt(rho4sq),0.);
347 rho5sq=(1.0-(pow((
meta+metap),2)/
s));
348 if(rho5sq >=0.) rho5=
EvtComplex(sqrt(rho5sq),0.);
353 for(
int k=0;k<5;k++) {
354 for(
int l=0;l<5;l++) {
355 for (
int pole_index=0;pole_index<5;pole_index++) {
356 double A=g[pole_index][k]*g[pole_index][l];
357 double B=ma[pole_index]*ma[pole_index]-
s;
364 for(
int k=0;k<5;k++) {
365 for(
int l=0;l<5;l++) {
366 double C=
f[k][l]*(1.0-s_scatt);
367 double D=(
s-s_scatt);
373 for(
int k=0;k<5;k++) {
374 for(
int l=0;l<5;l++) {
375 double E=(
s-(sa*
mpi*
mpi*0.5))*(1.0-sa_0);
413 det = (n15*n24*n33*n42*n51 - n14*n25*n33*n42*n51 - n15*n23*n34*n42*n51 +
414 n13*n25*n34*n42*n51 + n14*n23*n35*n42*n51 - n13*n24*n35*n42*n51 -
415 n15*n24*n32*n43*n51 + n14*n25*n32*n43*n51 + n15*n22*n34*n43*n51 -
416 n12*n25*n34*n43*n51 - n14*n22*n35*n43*n51 + n12*n24*n35*n43*n51 +
417 n15*n23*n32*n44*n51 - n13*n25*n32*n44*n51 - n15*n22*n33*n44*n51 +
418 n12*n25*n33*n44*n51 + n13*n22*n35*n44*n51 - n12*n23*n35*n44*n51 -
419 n14*n23*n32*n45*n51 + n13*n24*n32*n45*n51 + n14*n22*n33*n45*n51 -
420 n12*n24*n33*n45*n51 - n13*n22*n34*n45*n51 + n12*n23*n34*n45*n51 -
421 n15*n24*n33*n41*n52 + n14*n25*n33*n41*n52 + n15*n23*n34*n41*n52 -
422 n13*n25*n34*n41*n52 - n14*n23*n35*n41*n52 + n13*n24*n35*n41*n52 +
423 n15*n24*n31*n43*n52 - n14*n25*n31*n43*n52 - n15*n21*n34*n43*n52 +
424 n11*n25*n34*n43*n52 + n14*n21*n35*n43*n52 - n11*n24*n35*n43*n52 -
425 n15*n23*n31*n44*n52 + n13*n25*n31*n44*n52 + n15*n21*n33*n44*n52 -
426 n11*n25*n33*n44*n52 - n13*n21*n35*n44*n52 + n11*n23*n35*n44*n52 +
427 n14*n23*n31*n45*n52 - n13*n24*n31*n45*n52 - n14*n21*n33*n45*n52 +
428 n11*n24*n33*n45*n52 + n13*n21*n34*n45*n52 - n11*n23*n34*n45*n52 +
429 n15*n24*n32*n41*n53 - n14*n25*n32*n41*n53 - n15*n22*n34*n41*n53 +
430 n12*n25*n34*n41*n53 + n14*n22*n35*n41*n53 - n12*n24*n35*n41*n53 -
431 n15*n24*n31*n42*n53 + n14*n25*n31*n42*n53 + n15*n21*n34*n42*n53 -
432 n11*n25*n34*n42*n53 - n14*n21*n35*n42*n53 + n11*n24*n35*n42*n53 +
433 n15*n22*n31*n44*n53 - n12*n25*n31*n44*n53 - n15*n21*n32*n44*n53 +
434 n11*n25*n32*n44*n53 + n12*n21*n35*n44*n53 - n11*n22*n35*n44*n53 -
435 n14*n22*n31*n45*n53 + n12*n24*n31*n45*n53 + n14*n21*n32*n45*n53 -
436 n11*n24*n32*n45*n53 - n12*n21*n34*n45*n53 + n11*n22*n34*n45*n53 -
437 n15*n23*n32*n41*n54 + n13*n25*n32*n41*n54 + n15*n22*n33*n41*n54 -
438 n12*n25*n33*n41*n54 - n13*n22*n35*n41*n54 + n12*n23*n35*n41*n54 +
439 n15*n23*n31*n42*n54 - n13*n25*n31*n42*n54 - n15*n21*n33*n42*n54 +
440 n11*n25*n33*n42*n54 + n13*n21*n35*n42*n54 - n11*n23*n35*n42*n54 -
441 n15*n22*n31*n43*n54 + n12*n25*n31*n43*n54 + n15*n21*n32*n43*n54 -
442 n11*n25*n32*n43*n54 - n12*n21*n35*n43*n54 + n11*n22*n35*n43*n54 +
443 n13*n22*n31*n45*n54 - n12*n23*n31*n45*n54 - n13*n21*n32*n45*n54 +
444 n11*n23*n32*n45*n54 + n12*n21*n33*n45*n54 - n11*n22*n33*n45*n54 +
445 n14*n23*n32*n41*n55 - n13*n24*n32*n41*n55 - n14*n22*n33*n41*n55 +
446 n12*n24*n33*n41*n55 + n13*n22*n34*n41*n55 - n12*n23*n34*n41*n55 -
447 n14*n23*n31*n42*n55 + n13*n24*n31*n42*n55 + n14*n21*n33*n42*n55 -
448 n11*n24*n33*n42*n55 - n13*n21*n34*n42*n55 + n11*n23*n34*n42*n55 +
449 n14*n22*n31*n43*n55 - n12*n24*n31*n43*n55 - n14*n21*n32*n43*n55 +
450 n11*n24*n32*n43*n55 + n12*n21*n34*n43*n55 - n11*n22*n34*n43*n55 -
451 n13*n22*n31*n44*n55 + n12*n23*n31*n44*n55 + n13*n21*n32*n44*n55 -
452 n11*n23*n32*n44*n55 - n12*n21*n33*n44*n55 + n11*n22*n33*n44*n55);
457 i[0][0] = ( n25*n34*n43*n52 -
458 n24*n35*n43*n52 - n25*n33*n44*n52 + n23*n35*n44*n52 +
459 n24*n33*n45*n52 - n23*n34*n45*n52 - n25*n34*n42*n53 +
460 n24*n35*n42*n53 + n25*n32*n44*n53 - n22*n35*n44*n53 -
461 n24*n32*n45*n53 + n22*n34*n45*n53 + n25*n33*n42*n54 -
462 n23*n35*n42*n54 - n25*n32*n43*n54 + n22*n35*n43*n54 +
463 n23*n32*n45*n54 - n22*n33*n45*n54 - n24*n33*n42*n55 +
464 n23*n34*n42*n55 + n24*n32*n43*n55 - n22*n34*n43*n55 -
465 n23*n32*n44*n55 + n22*n33*n44*n55)/det;
467 i[0][1] = ( -n15*n34*n43*n52 +
468 n14*n35*n43*n52 + n15*n33*n44*n52 - n13*n35*n44*n52 -
469 n14*n33*n45*n52 + n13*n34*n45*n52 + n15*n34*n42*n53 -
470 n14*n35*n42*n53 - n15*n32*n44*n53 + n12*n35*n44*n53 +
471 n14*n32*n45*n53 - n12*n34*n45*n53 - n15*n33*n42*n54 +
472 n13*n35*n42*n54 + n15*n32*n43*n54 - n12*n35*n43*n54 -
473 n13*n32*n45*n54 + n12*n33*n45*n54 + n14*n33*n42*n55 -
474 n13*n34*n42*n55 - n14*n32*n43*n55 + n12*n34*n43*n55 +
475 n13*n32*n44*n55 - n12*n33*n44*n55)/det;
477 i[0][2] = ( n15*n24*n43*n52 -
478 n14*n25*n43*n52 - n15*n23*n44*n52 + n13*n25*n44*n52 +
479 n14*n23*n45*n52 - n13*n24*n45*n52 - n15*n24*n42*n53 +
480 n14*n25*n42*n53 + n15*n22*n44*n53 - n12*n25*n44*n53 -
481 n14*n22*n45*n53 + n12*n24*n45*n53 + n15*n23*n42*n54 -
482 n13*n25*n42*n54 - n15*n22*n43*n54 + n12*n25*n43*n54 +
483 n13*n22*n45*n54 - n12*n23*n45*n54 - n14*n23*n42*n55 +
484 n13*n24*n42*n55 + n14*n22*n43*n55 - n12*n24*n43*n55 -
485 n13*n22*n44*n55 + n12*n23*n44*n55)/det;
487 i[0][3] = ( -n15*n24*n33*n52 +
488 n14*n25*n33*n52 + n15*n23*n34*n52 - n13*n25*n34*n52 -
489 n14*n23*n35*n52 + n13*n24*n35*n52 + n15*n24*n32*n53 -
490 n14*n25*n32*n53 - n15*n22*n34*n53 + n12*n25*n34*n53 +
491 n14*n22*n35*n53 - n12*n24*n35*n53 - n15*n23*n32*n54 +
492 n13*n25*n32*n54 + n15*n22*n33*n54 - n12*n25*n33*n54 -
493 n13*n22*n35*n54 + n12*n23*n35*n54 + n14*n23*n32*n55 -
494 n13*n24*n32*n55 - n14*n22*n33*n55 + n12*n24*n33*n55 +
495 n13*n22*n34*n55 - n12*n23*n34*n55)/det;
497 i[0][4] = ( n15*n24*n33*n42 -
498 n14*n25*n33*n42 - n15*n23*n34*n42 + n13*n25*n34*n42 +
499 n14*n23*n35*n42 - n13*n24*n35*n42 - n15*n24*n32*n43 +
500 n14*n25*n32*n43 + n15*n22*n34*n43 - n12*n25*n34*n43 -
501 n14*n22*n35*n43 + n12*n24*n35*n43 + n15*n23*n32*n44 -
502 n13*n25*n32*n44 - n15*n22*n33*n44 + n12*n25*n33*n44 +
503 n13*n22*n35*n44 - n12*n23*n35*n44 - n14*n23*n32*n45 +
504 n13*n24*n32*n45 + n14*n22*n33*n45 - n12*n24*n33*n45 -
505 n13*n22*n34*n45 + n12*n23*n34*n45)/det;
507 double s0_prod = -0.07;
513 for(
int k=0;k<5;k++) {
514 double u1j_re =
real(i[0][k]);
515 double u1j_im =
imag(i[0][k]);
516 if(u1j_re==0. || u1j_im==0.) reject=
true;
519 for(
int pole_index=0;pole_index<5;pole_index++) {
521 value0 += (i[0][k]*
A)/(ma[pole_index]*ma[pole_index]-
s);
525 value1 += i[0][k]*fprod[k];
530 value1 *= (1.-s0_prod)/(
s-s0_prod) ;
532 if(reject==
true)
return EvtComplex(9999., 9999.);
533 else return (value0+value1);
539 double gammaR = 0.27 ;
541 if (reso ==
"k0spim") mab2 = pow((p_k0l + p_pim).
mass(),2);
542 else if(reso ==
"k0spip") mab2 = pow((p_k0l + p_pip).
mass(),2);
545 const double mD0 = 1.86483;
546 const double mKl = 0.49761;
547 const double mPi = 0.13957;
553 double _phiR = -1.9146;
554 double _phiF = 0.0017;
558 double mAB = sqrt(mab2);
564 double pAB=sqrt( (((mAB*mAB-mA*mA-mB*mB)*(mAB*mAB-mA*mA-mB*mB)/4.0) - mA*mA*mB*mB)/(mAB*mAB));
567 double pR=sqrt( (((mR*mR-mA*mA-mB*mB)*(mR*mR-mA*mA-mB*mB)/4.0) - mA*mA*mB*mB)/(mR*mR));
571 double g = gammaR*pow(
q/q0,power)*(mR/mAB)*fR*fR;
575 double cot_deltaF = 1.0/(_a*
q) + 0.5*_r*
q;
576 double qcot_deltaF = 1.0/_a + 0.5*_r*
q*
q;
580 EvtComplex resonant_term_T = _R *
EvtComplex(
cos(_phiR + 2 * _phiF),
sin(_phiR + 2 * _phiF)) * propagator_relativistic_BreitWigner * mR * gammaR * mR / q0 * expi2deltaF;
586 EvtComplex LASS_contribution = non_resonant_term_F + resonant_term_T;
double sin(const BesAngle a)
double cos(const BesAngle a)
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
Evt3Rank3C conj(const Evt3Rank3C &t2)
double imag(const EvtComplex &c)
double abs2(const EvtComplex &c)
ostream & report(Severity severity, const char *facility)
****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 all others are from PDG *Only resonances with known widths into electron pairs are sept ************************************************************************C Declarations C
static const double radToDegrees
void decay(EvtParticle *p)
void getName(std::string &name)
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)