22 void Sigma2qg2qgamma::sigmaKin() {
25 sigUS = (1./3.) * (sH2 + uH2) / (-sH * uH);
28 sigma0 = (M_PI/sH2) * alpS * alpEM * sigUS;
36 double Sigma2qg2qgamma::sigmaHat() {
39 int idNow = (id2 == 21) ? id1 : id2;
40 double eNow = couplingsPtr->ef( abs(idNow) );
41 return sigma0 * pow2(eNow);
49 void Sigma2qg2qgamma::setIdColAcol() {
52 id3 = (id1 == 21) ? 22 : id1;
53 id4 = (id2 == 21) ? 22 : id2;
54 setId( id1, id2, id3, id4);
57 setColAcol( 1, 0, 2, 1, 2, 0, 0, 0);
58 if (id1 == 21) swapCol1234();
59 if (id1 < 0 || id2 < 0) swapColAcol();
72 void Sigma2qqbar2ggamma::sigmaKin() {
75 double sigTU = (8./9.) * (tH2 + uH2) / (tH * uH);
78 sigma0 = (M_PI/sH2) * alpS * alpEM * sigTU;
86 double Sigma2qqbar2ggamma::sigmaHat() {
89 double eNow = couplingsPtr->ef( abs(id1) );
90 return sigma0 * pow2(eNow);
98 void Sigma2qqbar2ggamma::setIdColAcol() {
101 setId( id1, id2, 21, 22);
104 setColAcol( 1, 0, 0, 2, 1, 2, 0, 0);
105 if (id1 < 0) swapColAcol();
119 void Sigma2gg2ggamma::initProc() {
122 int nQuarkLoop = settingsPtr->mode(
"PromptPhoton:nQuarkLoop");
125 chargeSum = - 1./3. + 2./3. - 1./3.;
126 if (nQuarkLoop >= 4) chargeSum += 2./3.;
127 if (nQuarkLoop >= 5) chargeSum -= 1./3.;
128 if (nQuarkLoop >= 6) chargeSum += 2./3.;
136 void Sigma2gg2ggamma::sigmaKin() {
139 double logST = log( -sH / tH );
140 double logSU = log( -sH / uH );
141 double logTU = log( tH / uH );
144 double b0stuRe = 1. + (tH - uH) / sH * logTU
145 + 0.5 * (tH2 + uH2) / sH2 * (pow2(logTU) + pow2(M_PI));
147 double b0tsuRe = 1. + (sH - uH) / tH * logSU
148 + 0.5 * (sH2 + uH2) / tH2 * pow2(logSU);
149 double b0tsuIm = -M_PI * ( (sH - uH) / tH + (sH2 + uH2) / tH2 * logSU);
150 double b0utsRe = 1. + (sH - tH) / uH * logST
151 + 0.5 * (sH2 + tH2) / uH2 * pow2(logST);
152 double b0utsIm = -M_PI * ( (sH - tH) / uH + (sH2 + tH2) / uH2 * logST);
153 double b1stuRe = -1.;
155 double b2stuRe = -1.;
159 double sigBox = pow2(b0stuRe) + pow2(b0stuIm) + pow2(b0tsuRe)
160 + pow2(b0tsuIm) + pow2(b0utsRe) + pow2(b0utsIm) + 4. * pow2(b1stuRe)
161 + 4. * pow2(b1stuIm) + pow2(b2stuRe) + pow2(b2stuIm);
164 sigma = (5. / (192. * M_PI * sH2)) * pow2(chargeSum)
165 * pow3(alpS) * alpEM * sigBox;
173 void Sigma2gg2ggamma::setIdColAcol() {
176 setId( id1, id2, 21, 22);
177 setColAcol( 1, 2, 2, 3, 1, 3, 0, 0);
178 if (rndmPtr->flat() > 0.5) swapColAcol();
191 void Sigma2ffbar2gammagamma::sigmaKin() {
194 sigTU = 2. * (tH2 + uH2) / (tH * uH);
197 sigma0 = (M_PI/sH2) * pow2(alpEM) * 0.5 * sigTU;
205 double Sigma2ffbar2gammagamma::sigmaHat() {
208 double eNow = couplingsPtr->ef( abs(id1) );
209 double colFac = (abs(id1) < 9) ? 1. / 3. : 1.;
210 return sigma0 * pow4(eNow) * colFac;
218 void Sigma2ffbar2gammagamma::setIdColAcol() {
221 setId( id1, id2, 22, 22);
224 if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0, 0, 0);
225 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
226 if (id1 < 0) swapColAcol();
240 void Sigma2gg2gammagamma::initProc() {
243 int nQuarkLoop = settingsPtr->mode(
"PromptPhoton:nQuarkLoop");
246 charge2Sum = 1./9. + 4./9. + 1./9.;
247 if (nQuarkLoop >= 4) charge2Sum += 4./9.;
248 if (nQuarkLoop >= 5) charge2Sum += 1./9.;
249 if (nQuarkLoop >= 6) charge2Sum += 4./9.;
257 void Sigma2gg2gammagamma::sigmaKin() {
260 double logST = log( -sH / tH );
261 double logSU = log( -sH / uH );
262 double logTU = log( tH / uH );
265 double b0stuRe = 1. + (tH - uH) / sH * logTU
266 + 0.5 * (tH2 + uH2) / sH2 * (pow2(logTU) + pow2(M_PI));
268 double b0tsuRe = 1. + (sH - uH) / tH * logSU
269 + 0.5 * (sH2 + uH2) / tH2 * pow2(logSU);
270 double b0tsuIm = -M_PI * ( (sH - uH) / tH + (sH2 + uH2) / tH2 * logSU);
271 double b0utsRe = 1. + (sH - tH) / uH * logST
272 + 0.5 * (sH2 + tH2) / uH2 * pow2(logST);
273 double b0utsIm = -M_PI * ( (sH - tH) / uH + (sH2 + tH2) / uH2 * logST);
274 double b1stuRe = -1.;
276 double b2stuRe = -1.;
280 double sigBox = pow2(b0stuRe) + pow2(b0stuIm) + pow2(b0tsuRe)
281 + pow2(b0tsuIm) + pow2(b0utsRe) + pow2(b0utsIm) + 4. * pow2(b1stuRe)
282 + 4. * pow2(b1stuIm) + pow2(b2stuRe) + pow2(b2stuIm);
285 sigma = (0.5 / (16. * M_PI * sH2)) * pow2(charge2Sum)
286 * pow2(alpS) * pow2(alpEM) * sigBox;
294 void Sigma2gg2gammagamma::setIdColAcol() {
297 setId( id1, id2, 22, 22);
298 setColAcol( 1, 2, 2, 1, 0, 0, 0, 0);
312 void Sigma2ff2fftgmZ::initProc() {
315 gmZmode = settingsPtr->mode(
"WeakZ0:gmZmode");
316 mZ = particleDataPtr->m0(23);
318 thetaWRat = 1. / (16. * couplingsPtr->sin2thetaW()
319 * couplingsPtr->cos2thetaW());
327 void Sigma2ff2fftgmZ::sigmaKin() {
330 double sigma0 = (M_PI / sH2) * pow2(alpEM);
333 sigmagmgm = sigma0 * 2. * (sH2 + uH2) / tH2;
334 sigmagmZ = sigma0 * 4. * thetaWRat * sH2 / (tH * (tH - mZS));
335 sigmaZZ = sigma0 * 2. * pow2(thetaWRat) * sH2 / pow2(tH - mZS);
336 if (gmZmode == 1) {sigmagmZ = 0.; sigmaZZ = 0.;}
337 if (gmZmode == 2) {sigmagmgm = 0.; sigmagmZ = 0.;}
345 double Sigma2ff2fftgmZ::sigmaHat() {
348 int id1Abs = abs(id1);
349 double e1 = couplingsPtr->ef(id1Abs);
350 double v1 = couplingsPtr->vf(id1Abs);
351 double a1 = couplingsPtr->af(id1Abs);
352 int id2Abs = abs(id2);
353 double e2 = couplingsPtr->ef(id2Abs);
354 double v2 = couplingsPtr->vf(id2Abs);
355 double a2 = couplingsPtr->af(id2Abs);
358 double epsi = (id1 * id2 > 0) ? 1. : -1.;
361 double sigma = sigmagmgm * pow2(e1 * e2)
362 + sigmagmZ * e1 * e2 * (v1 * v2 * (1. + uH2 / sH2)
363 + a1 * a2 * epsi * (1. - uH2 / sH2))
364 + sigmaZZ * ((v1*v1 + a1*a1) * (v2*v2 + a2*a2) * (1. + uH2 / sH2)
365 + 4. * v1 * a1 * v2 * a2 * epsi * (1. - uH2 / sH2));
368 if (id1Abs == 12 || id1Abs == 14 || id1Abs == 16) sigma *= 2.;
369 if (id2Abs == 12 || id2Abs == 14 || id2Abs == 16) sigma *= 2.;
380 void Sigma2ff2fftgmZ::setIdColAcol() {
383 setId( id1, id2, id1, id2);
386 if (abs(id1) < 9 && abs(id2) < 9 && id1*id2 > 0)
387 setColAcol( 1, 0, 2, 0, 1, 0, 2, 0);
388 else if (abs(id1) < 9 && abs(id2) < 9)
389 setColAcol( 1, 0, 0, 2, 1, 0, 0, 2);
390 else if (abs(id1) < 9) setColAcol( 1, 0, 0, 0, 1, 0, 0, 0);
391 else if (abs(id2) < 9) setColAcol( 0, 0, 1, 0, 0, 0, 1, 0);
392 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
393 if ( (abs(id1) < 9 && id1 < 0) || (abs(id1) > 10 && id2 < 0) )
408 void Sigma2ff2fftW::initProc() {
411 mW = particleDataPtr->m0(24);
413 thetaWRat = 1. / (4. * couplingsPtr->sin2thetaW());
421 void Sigma2ff2fftW::sigmaKin() {
424 sigma0 = (M_PI / sH2) * pow2(alpEM * thetaWRat)
425 * 4. * sH2 / pow2(tH - mWS);
433 double Sigma2ff2fftW::sigmaHat() {
436 int id1Abs = abs(id1);
437 int id2Abs = abs(id2);
438 if ( (id1Abs%2 == id2Abs%2 && id1 * id2 > 0)
439 || (id1Abs%2 != id2Abs%2 && id1 * id2 < 0) )
return 0.;
442 double sigma = sigma0;
443 if (id1 * id2 < 0) sigma *= uH2 / sH2;
446 sigma *= couplingsPtr->V2CKMsum(id1Abs) * couplingsPtr->V2CKMsum(id2Abs);
449 if (id1Abs == 12 || id1Abs == 14 || id1Abs == 16) sigma *= 2.;
450 if (id2Abs == 12 || id2Abs == 14 || id2Abs == 16) sigma *= 2.;
461 void Sigma2ff2fftW::setIdColAcol() {
464 id3 = couplingsPtr->V2CKMpick(id1);
465 id4 = couplingsPtr->V2CKMpick(id2);
466 setId( id1, id2, id3, id4);
469 if (abs(id1) < 9 && abs(id2) < 9 && id1*id2 > 0)
470 setColAcol( 1, 0, 2, 0, 1, 0, 2, 0);
471 else if (abs(id1) < 9 && abs(id2) < 9)
472 setColAcol( 1, 0, 0, 2, 1, 0, 0, 2);
473 else if (abs(id1) < 9) setColAcol( 1, 0, 0, 0, 1, 0, 0, 0);
474 else if (abs(id2) < 9) setColAcol( 0, 0, 1, 0, 0, 0, 1, 0);
475 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
476 if ( (abs(id1) < 9 && id1 < 0) || (abs(id1) > 10 && id2 < 0) )
492 void Sigma2qq2QqtW::initProc() {
495 nameSave =
"q q -> Q q (t-channel W+-)";
496 if (idNew == 4) nameSave =
"q q -> c q (t-channel W+-)";
497 if (idNew == 5) nameSave =
"q q -> b q (t-channel W+-)";
498 if (idNew == 6) nameSave =
"q q -> t q (t-channel W+-)";
499 if (idNew == 7) nameSave =
"q q -> b' q (t-channel W+-)";
500 if (idNew == 8) nameSave =
"q q -> t' q (t-channel W+-)";
503 mW = particleDataPtr->m0(24);
505 thetaWRat = 1. / (4. * couplingsPtr->sin2thetaW());
508 openFracPos = particleDataPtr->resOpenFrac(idNew);
509 openFracNeg = particleDataPtr->resOpenFrac(-idNew);
517 void Sigma2qq2QqtW::sigmaKin() {
520 sigma0 = (M_PI / sH2) * pow2(alpEM * thetaWRat) * 4. / pow2(tH - mWS);
528 double Sigma2qq2QqtW::sigmaHat() {
531 int id1Abs = abs(id1);
532 int id2Abs = abs(id2);
533 bool diff12 = (id1Abs%2 != id2Abs%2);
534 if ( (!diff12 && id1 * id2 > 0)
535 || ( diff12 && id1 * id2 < 0) )
return 0.;
538 double sigma = sigma0;
539 sigma *= (id1 * id2 > 0) ? sH * (sH - s3) : uH * (uH - s3);
542 double openFrac1 = (id1 > 0) ? openFracPos : openFracNeg;
543 double openFrac2 = (id2 > 0) ? openFracPos : openFracNeg;
546 bool diff1N = (id1Abs%2 != idNew%2);
547 bool diff2N = (id2Abs%2 != idNew%2);
548 if (diff1N && diff2N)
549 sigma *= ( couplingsPtr->V2CKMid(id1Abs, idNew) * openFrac1
550 * couplingsPtr->V2CKMsum(id2Abs) + couplingsPtr->V2CKMsum(id1Abs)
551 * couplingsPtr->V2CKMid(id2Abs, idNew) * openFrac2 );
553 sigma *= couplingsPtr->V2CKMid(id1Abs, idNew) * openFrac1
554 * couplingsPtr->V2CKMsum(id2Abs);
556 sigma *= couplingsPtr->V2CKMsum(id1Abs)
557 * couplingsPtr->V2CKMid(id2Abs, idNew) * openFrac2;
561 if (id1Abs == 12 || id1Abs == 14 || id1Abs == 16) sigma *= 2.;
562 if (id2Abs == 12 || id2Abs == 14 || id2Abs == 16) sigma *= 2.;
573 void Sigma2qq2QqtW::setIdColAcol() {
576 int id1Abs = abs(id1);
577 int id2Abs = abs(id2);
579 if ( (id1Abs + idNew)%2 == 1 && (id2Abs + idNew)%2 == 1 ) {
580 double prob1 = couplingsPtr->V2CKMid(id1Abs, idNew)
581 * couplingsPtr->V2CKMsum(id2Abs);
582 prob1 *= (id1 > 0) ? openFracPos : openFracNeg;
583 double prob2 = couplingsPtr->V2CKMid(id2Abs, idNew)
584 * couplingsPtr->V2CKMsum(id1Abs);
585 prob2 *= (id2 > 0) ? openFracPos : openFracNeg;
586 if (prob2 > rndmPtr->flat() * (prob1 + prob2)) side = 2;
588 else if ((id2Abs + idNew)%2 == 1) side = 2;
593 id3 = (id1 > 0) ? idNew : -idNew;
594 id4 = couplingsPtr->V2CKMpick(id2);
595 setId( id1, id2, id3, id4);
599 id3 = couplingsPtr->V2CKMpick(id1);
600 id4 = (id2 > 0) ? idNew : -idNew;
601 setId( id1, id2, id4, id3);
605 if (side == 1 && id1 * id2 > 0) setColAcol( 1, 0, 2, 0, 1, 0, 2, 0);
606 else if (id1 * id2 > 0) setColAcol( 1, 0, 2, 0, 2, 0, 1, 0);
607 else if (side == 1) setColAcol( 1, 0, 0, 2, 1, 0, 0, 2);
608 else setColAcol( 1, 0, 0, 2, 0, 2, 1, 0);
609 if (id1 < 0) swapColAcol();
617 double Sigma2qq2QqtW::weightDecay(
Event& process,
int iResBeg,
621 if (idNew == 6 && process[process[iResBeg].mother1()].idAbs() == 6)
622 return weightTopDecay( process, iResBeg, iResEnd);
636 void Sigma1ffbar2gmZ::initProc() {
639 gmZmode = settingsPtr->mode(
"WeakZ0:gmZmode");
642 mRes = particleDataPtr->m0(23);
643 GammaRes = particleDataPtr->mWidth(23);
645 GamMRat = GammaRes / mRes;
646 thetaWRat = 1. / (16. * couplingsPtr->sin2thetaW()
647 * couplingsPtr->cos2thetaW());
650 particlePtr = particleDataPtr->particleDataEntryPtr(23);
658 void Sigma1ffbar2gmZ::sigmaKin() {
661 double colQ = 3. * (1. + alpS / M_PI);
668 double mf, mr, psvec, psaxi, betaf, ef2, efvf, vf2af2, colf;
671 for (
int i = 0; i < particlePtr->sizeChannels(); ++i) {
672 idAbs = abs( particlePtr->channel(i).product(0) );
675 if ( (idAbs > 0 && idAbs < 6) || ( idAbs > 10 && idAbs < 17)) {
676 mf = particleDataPtr->m0(idAbs);
679 if (mH > 2. * mf + MASSMARGIN) {
681 betaf = sqrtpos(1. - 4. * mr);
682 psvec = betaf * (1. + 2. * mr);
686 ef2 = couplingsPtr->ef2(idAbs) * psvec;
687 efvf = couplingsPtr->efvf(idAbs) * psvec;
688 vf2af2 = couplingsPtr->vf2(idAbs) * psvec
689 + couplingsPtr->af2(idAbs) * psaxi;
690 colf = (idAbs < 6) ? colQ : 1.;
693 onMode = particlePtr->channel(i).onMode();
694 if (onMode == 1 || onMode == 2) {
695 gamSum += colf * ef2;
696 intSum += colf * efvf;
697 resSum += colf * vf2af2;
706 gamProp = 4. * M_PI * pow2(alpEM) / (3. * sH);
707 intProp = gamProp * 2. * thetaWRat * sH * (sH - m2Res)
708 / ( pow2(sH - m2Res) + pow2(sH * GamMRat) );
709 resProp = gamProp * pow2(thetaWRat * sH)
710 / ( pow2(sH - m2Res) + pow2(sH * GamMRat) );
713 if (gmZmode == 1) {intProp = 0.; resProp = 0.;}
714 if (gmZmode == 2) {gamProp = 0.; intProp = 0.;}
722 double Sigma1ffbar2gmZ::sigmaHat() {
725 int idAbs = abs(id1);
726 double sigma = couplingsPtr->ef2(idAbs) * gamProp * gamSum
727 + couplingsPtr->efvf(idAbs) * intProp * intSum
728 + couplingsPtr->vf2af2(idAbs) * resProp * resSum;
731 if (idAbs < 9) sigma /= 3.;
740 void Sigma1ffbar2gmZ::setIdColAcol() {
743 setId( id1, id2, 23);
746 if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0);
747 else setColAcol( 0, 0, 0, 0, 0, 0);
748 if (id1 < 0) swapColAcol();
756 double Sigma1ffbar2gmZ::weightDecay(
Event& process,
int iResBeg,
760 if (iResBeg != 5 || iResEnd != 5)
return 1.;
763 int idInAbs = process[3].idAbs();
764 double ei = couplingsPtr->ef(idInAbs);
765 double vi = couplingsPtr->vf(idInAbs);
766 double ai = couplingsPtr->af(idInAbs);
767 int idOutAbs = process[6].idAbs();
768 double ef = couplingsPtr->ef(idOutAbs);
769 double vf = couplingsPtr->vf(idOutAbs);
770 double af = couplingsPtr->af(idOutAbs);
773 double mf = process[6].m();
774 double mr = mf*mf / sH;
775 double betaf = sqrtpos(1. - 4. * mr);
778 double coefTran = ei*ei * gamProp * ef*ef + ei * vi * intProp * ef * vf
779 + (vi*vi + ai*ai) * resProp * (vf*vf + pow2(betaf) * af*af);
780 double coefLong = 4. * mr * ( ei*ei * gamProp * ef*ef
781 + ei * vi * intProp * ef * vf + (vi*vi + ai*ai) * resProp * vf*vf );
782 double coefAsym = betaf * ( ei * ai * intProp * ef * af
783 + 4. * vi * ai * resProp * vf * af );
786 if (process[3].
id() * process[6].id() < 0) coefAsym = -coefAsym;
789 double cosThe = (process[3].p() - process[4].p())
790 * (process[7].p() - process[6].p()) / (sH * betaf);
791 double wtMax = 2. * (coefTran + abs(coefAsym));
792 double wt = coefTran * (1. + pow2(cosThe))
793 + coefLong * (1. - pow2(cosThe)) + 2. * coefAsym * cosThe;
809 void Sigma1ffbar2W::initProc() {
812 mRes = particleDataPtr->m0(24);
813 GammaRes = particleDataPtr->mWidth(24);
815 GamMRat = GammaRes / mRes;
816 thetaWRat = 1. / (12. * couplingsPtr->sin2thetaW());
819 particlePtr = particleDataPtr->particleDataEntryPtr(24);
827 void Sigma1ffbar2W::sigmaKin() {
830 double sigBW = 12. * M_PI / ( pow2(sH - m2Res) + pow2(sH * GamMRat) );
831 double preFac = alpEM * thetaWRat * mH;
832 sigma0Pos = preFac * sigBW * particlePtr->resWidthOpen(24, mH);
833 sigma0Neg = preFac * sigBW * particlePtr->resWidthOpen(-24, mH);
841 double Sigma1ffbar2W::sigmaHat() {
844 int idUp = (abs(id1)%2 == 0) ? id1 : id2;
845 double sigma = (idUp > 0) ? sigma0Pos : sigma0Neg;
846 if (abs(id1) < 9) sigma *= couplingsPtr->V2CKMid(abs(id1), abs(id2)) / 3.;
857 void Sigma1ffbar2W::setIdColAcol() {
860 int sign = 1 - 2 * (abs(id1)%2);
861 if (id1 < 0) sign = -sign;
862 setId( id1, id2, 24 * sign);
865 if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0);
866 else setColAcol( 0, 0, 0, 0, 0, 0);
867 if (id1 < 0) swapColAcol();
875 double Sigma1ffbar2W::weightDecay(
Event& process,
int iResBeg,
879 if (iResBeg != 5 || iResEnd != 5)
return 1.;
882 double mr1 = pow2(process[6].m()) / sH;
883 double mr2 = pow2(process[7].m()) / sH;
884 double betaf = sqrtpos( pow2(1. - mr1 - mr2) - 4. * mr1 * mr2);
887 double eps = (process[3].id() * process[6].id() > 0) ? 1. : -1.;
890 double cosThe = (process[3].p() - process[4].p())
891 * (process[7].p() - process[6].p()) / (sH * betaf);
893 double wt = pow2(1. + betaf * eps * cosThe) - pow2(mr1 - mr2);
910 void Sigma2ffbar2ffbarsgm::sigmaKin() {
913 double colQ = 1. + (alpS / M_PI);
914 double flavWt = 3. + colQ * 11. / 3.;
915 double flavRndm = rndmPtr->flat() * flavWt;
917 if (flavRndm < 1.) idNew = 11;
918 else if (flavRndm < 2.) idNew = 13;
921 flavRndm = 3. * (flavRndm - 3.) / colQ;
922 if (flavRndm < 4.) idNew = 2;
923 else if (flavRndm < 8.) idNew = 4;
924 else if (flavRndm < 9.) idNew = 1;
925 else if (flavRndm < 10.) idNew = 3;
928 double mNew = particleDataPtr->m0(idNew);
929 double m2New = mNew*mNew;
936 if (sH > 4. * m2New) {
937 double beta = sqrt(1. - 4. * m2New / sH);
938 sigS = beta * (2.* (tH2 + uH2) + 4. * (1. - beta * beta) * tH * uH)
943 sigma0 = (M_PI/sH2) * pow2(alpEM) * sigS * flavWt;
951 double Sigma2ffbar2ffbarsgm::sigmaHat() {
954 double eNow = couplingsPtr->ef( abs(id1) );
955 double sigma = sigma0 * pow2(eNow);
956 if (abs(id1) < 9) sigma /= 3.;
967 void Sigma2ffbar2ffbarsgm::setIdColAcol() {
970 id3 = (id1 > 0) ? idNew : -idNew;
971 setId( id1, id2, id3, -id3);
974 if (abs(id1) < 9 && idNew < 9) setColAcol( 1, 0, 0, 1, 2, 0, 0, 2);
975 else if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0, 0, 0);
976 else if (idNew < 9) setColAcol( 0, 0, 0, 0, 1, 0, 0, 1);
977 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
978 if (id1 < 0) swapColAcol();
991 void Sigma2ffbar2FFbarsgmZ::initProc() {
994 nameSave =
"f fbar -> F Fbar (s-channel gamma*/Z0)";
995 if (idNew == 4) nameSave =
"f fbar -> c cbar (s-channel gamma*/Z0)";
996 if (idNew == 5) nameSave =
"f fbar -> b bbar (s-channel gamma*/Z0)";
997 if (idNew == 6) nameSave =
"f fbar -> t tbar (s-channel gamma*/Z0)";
998 if (idNew == 7) nameSave =
"f fbar -> b' b'bar (s-channel gamma*/Z0)";
999 if (idNew == 8) nameSave =
"f fbar -> t' t'bar (s-channel gamma*/Z0)";
1000 if (idNew == 15) nameSave =
"f fbar -> tau+ tau- (s-channel gamma*/Z0)";
1001 if (idNew == 17) nameSave =
"f fbar -> tau'+ tau'- (s-channel gamma*/Z0)";
1003 nameSave =
"f fbar -> nu'_tau nu'bar_tau (s-channel gamma*/Z0)";
1006 gmZmode = settingsPtr->mode(
"WeakZ0:gmZmode");
1009 mRes = particleDataPtr->m0(23);
1010 GammaRes = particleDataPtr->mWidth(23);
1012 GamMRat = GammaRes / mRes;
1013 thetaWRat = 1. / (16. * couplingsPtr->sin2thetaW()
1014 * couplingsPtr->cos2thetaW());
1017 ef = couplingsPtr->ef(idNew);
1018 vf = couplingsPtr->vf(idNew);
1019 af = couplingsPtr->af(idNew);
1022 openFracPair = particleDataPtr->resOpenFrac(idNew, -idNew);
1030 void Sigma2ffbar2FFbarsgmZ::sigmaKin() {
1034 if (mH < m3 + m4 + MASSMARGIN) {
1040 double s34Avg = 0.5 * (s3 + s4) - 0.25 * pow2(s3 - s4) / sH;
1042 betaf = sqrtpos(1. - 4. * mr);
1045 double colF = (idNew < 9) ? 3. * (1. + alpS / M_PI) : 1.;
1048 cosThe = (tH - uH) / (betaf * sH);
1051 gamProp = colF * M_PI * pow2(alpEM) / sH2;
1052 intProp = gamProp * 2. * thetaWRat * sH * (sH - m2Res)
1053 / ( pow2(sH - m2Res) + pow2(sH * GamMRat) );
1054 resProp = gamProp * pow2(thetaWRat * sH)
1055 / ( pow2(sH - m2Res) + pow2(sH * GamMRat) );
1058 if (gmZmode == 1) {intProp = 0.; resProp = 0.;}
1059 if (gmZmode == 2) {gamProp = 0.; intProp = 0.;}
1067 double Sigma2ffbar2FFbarsgmZ::sigmaHat() {
1070 if (!isPhysical)
return 0.;
1073 int idAbs = abs(id1);
1074 double ei = couplingsPtr->ef(idAbs);
1075 double vi = couplingsPtr->vf(idAbs);
1076 double ai = couplingsPtr->af(idAbs);
1079 double coefTran = ei*ei * gamProp * ef*ef + ei * vi * intProp * ef * vf
1080 + (vi*vi + ai*ai) * resProp * (vf*vf + pow2(betaf) * af*af);
1081 double coefLong = 4. * mr * ( ei*ei * gamProp * ef*ef
1082 + ei * vi * intProp * ef * vf + (vi*vi + ai*ai) * resProp * vf*vf );
1083 double coefAsym = betaf * ( ei * ai * intProp * ef * af
1084 + 4. * vi * ai * resProp * vf * af );
1087 double sigma = coefTran * (1. + pow2(cosThe))
1088 + coefLong * (1. - pow2(cosThe)) + 2. * coefAsym * cosThe;
1091 sigma *= openFracPair;
1094 if (idAbs < 9) sigma /= 3.;
1103 void Sigma2ffbar2FFbarsgmZ::setIdColAcol() {
1106 id3 = (id1 > 0) ? idNew : -idNew;
1107 setId( id1, id2, id3, -id3);
1110 if (abs(id1) < 9 && idNew < 9) setColAcol( 1, 0, 0, 1, 2, 0, 0, 2);
1111 else if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0, 0, 0);
1112 else if (idNew < 9) setColAcol( 0, 0, 0, 0, 1, 0, 0, 1);
1113 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
1114 if (id1 < 0) swapColAcol();
1122 double Sigma2ffbar2FFbarsgmZ::weightDecay(
Event& process,
int iResBeg,
1126 if (idNew == 6 && process[process[iResBeg].mother1()].idAbs() == 6)
1127 return weightTopDecay( process, iResBeg, iResEnd);
1141 void Sigma2ffbar2FfbarsW::initProc() {
1144 nameSave =
"f fbar -> F fbar (s-channel W+-)";
1145 if (idNew == 4) nameSave =
"f fbar -> c qbar (s-channel W+-)";
1146 if (idNew == 5) nameSave =
"f fbar -> b qbar (s-channel W+-)";
1147 if (idNew == 6) nameSave =
"f fbar -> t qbar (s-channel W+-)";
1148 if (idNew == 7) nameSave =
"f fbar -> b' qbar (s-channel W+-)";
1149 if (idNew == 8) nameSave =
"f fbar -> t' qbar (s-channel W+-)";
1150 if (idNew == 7 && idNew2 == 6)
1151 nameSave =
"f fbar -> b' tbar (s-channel W+-)";
1152 if (idNew == 8 && idNew2 == 7)
1153 nameSave =
"f fbar -> t' b'bar (s-channel W+-)";
1154 if (idNew == 15 || idNew == 16)
1155 nameSave =
"f fbar -> tau nu_taubar (s-channel W+-)";
1156 if (idNew == 17 || idNew == 18)
1157 nameSave =
"f fbar -> tau' nu'_taubar (s-channel W+-)";
1160 mRes = particleDataPtr->m0(24);
1161 GammaRes = particleDataPtr->mWidth(24);
1163 GamMRat = GammaRes / mRes;
1164 thetaWRat = 1. / (12. * couplingsPtr->sin2thetaW());
1168 if ( (idNew == 6 || idNew == 8) && idNew2 == 0 ) idPartner = 5;
1171 V2New = (idNew < 9) ? couplingsPtr->V2CKMsum(idNew) : 1.;
1172 if (idNew2 != 0) V2New = couplingsPtr->V2CKMid(idNew, idNew2);
1175 openFracPos = particleDataPtr->resOpenFrac( idNew, -idNew2);
1176 openFracNeg = particleDataPtr->resOpenFrac(-idNew, idNew2);
1184 void Sigma2ffbar2FfbarsW::sigmaKin() {
1188 if (mH < m3 + m4 + MASSMARGIN) {
1194 double mr1 = s3 / sH;
1195 double mr2 = s4 / sH;
1196 double betaf = sqrtpos( pow2(1. - mr1 - mr2) - 4. * mr1 * mr2);
1199 double cosThe = (tH - uH) / (betaf * sH);
1202 double sigBW = 9. * M_PI * pow2(alpEM * thetaWRat)
1203 / ( pow2(sH - m2Res) + pow2(sH * GamMRat) );
1206 double colF = (idNew < 9) ? 3. * (1. + alpS / M_PI) * V2New : 1.;
1209 double wt = pow2(1. + betaf * cosThe) - pow2(mr1 - mr2);
1212 sigma0 = sigBW * colF * wt;
1220 double Sigma2ffbar2FfbarsW::sigmaHat() {
1223 if (!isPhysical)
return 0.;
1226 double sigma = sigma0;
1227 if (abs(id1) < 9) sigma *= couplingsPtr->V2CKMid(abs(id1), abs(id2)) / 3.;
1230 int idSame = ((abs(id1) + idNew)%2 == 0) ? id1 : id2;
1231 sigma *= (idSame > 0) ? openFracPos : openFracNeg;
1242 void Sigma2ffbar2FfbarsW::setIdColAcol() {
1246 id4 = (idNew2 != 0) ? idNew2 : couplingsPtr->V2CKMpick(idNew);
1248 int idInUp = (abs(id1)%2 == 0) ? id1 : id2;
1249 if (idInUp > 0) id4 = -id4;
1252 int idInDn = (abs(id1)%2 == 1) ? id1 : id2;
1253 if (idInDn > 0) id4 = -id4;
1256 setId( id1, id2, id3, id4);
1259 if (id1 * id3 < 0) swapTU =
true;
1262 if (abs(id1) < 9 && idNew < 9) setColAcol( 1, 0, 0, 1, 2, 0, 0, 2);
1263 else if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0, 0, 0);
1264 else if (idNew < 9) setColAcol( 0, 0, 0, 0, 1, 0, 0, 1);
1265 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
1266 if (id1 < 0) swapCol12();
1267 if (id3 < 0) swapCol34();
1275 double Sigma2ffbar2FfbarsW::weightDecay(
Event& process,
int iResBeg,
1279 if (idNew == 6 && process[process[iResBeg].mother1()].idAbs() == 6)
1280 return weightTopDecay( process, iResBeg, iResEnd);
1294 void Sigma2ffbargmZWgmZW::setupProd(
Event& process,
int i1,
int i2,
1295 int i3,
int i4,
int i5,
int i6) {
1298 pRot[1] = process[i1].p();
1299 pRot[2] = process[i2].p();
1300 pRot[3] = process[i3].p();
1301 pRot[4] = process[i4].p();
1302 pRot[5] = process[i5].p();
1303 pRot[6] = process[i6].p();
1306 bool smallPT =
false;
1309 double thetaNow = acos(2. * rndmPtr->flat() - 1.);
1310 double phiNow = 2. * M_PI * rndmPtr->flat();
1311 for (
int i = 1; i <= 6; ++i) {
1312 pRot[i].rot( thetaNow, phiNow);
1313 if (pRot[i].pT2() < 1e-4 * pRot[i].pAbs2()) smallPT =
true;
1318 for (
int i = 1; i < 6; ++i) {
1319 for (
int j = i + 1; j <= 6; ++j) {
1321 sqrt( (pRot[i].e() - pRot[i].pz()) * (pRot[j].e() + pRot[j].pz())
1322 / pRot[i].pT2() ) * complex( pRot[i].px(), pRot[i].py() )
1323 - sqrt( (pRot[i].e() + pRot[i].pz()) * (pRot[j].e() - pRot[j].pz())
1324 / pRot[j].pT2() ) * complex( pRot[j].px(), pRot[j].py() );
1325 hC[i][j] = conj( hA[i][j] );
1327 hA[i][j] *= complex( 0., 1.);
1328 hC[i][j] *= complex( 0., 1.);
1330 hA[j][i] = - hA[i][j];
1331 hC[j][i] = - hC[i][j];
1341 complex Sigma2ffbargmZWgmZW::fGK(
int j1,
int j2,
int j3,
int j4,
int j5,
1344 return 4. * hA[j1][j3] * hC[j2][j6]
1345 * ( hA[j1][j5] * hC[j1][j4] + hA[j3][j5] * hC[j3][j4] );
1353 double Sigma2ffbargmZWgmZW::xiGK(
double tHnow,
double uHnow) {
1355 return - 4. * s3 * s4 + tHnow * (3. * tHnow + 4. * uHnow)
1356 + tHnow * tHnow * ( tHnow * uHnow / (s3 * s4)
1357 - 2. * (1. / s3 + 1./s4) * (tHnow + uHnow)
1358 + 2. * (s3 / s4 + s4 / s3) );
1366 double Sigma2ffbargmZWgmZW::xjGK(
double tHnow,
double uHnow) {
1368 return 8. * pow2(s3 + s4) - 8. * (s3 + s4) * (tHnow + uHnow)
1369 - 6. * tHnow * uHnow - 2. * tHnow * uHnow * ( tHnow * uHnow
1370 / (s3 * s4) - 2. * (1. / s3 + 1. / s4) * (tHnow + uHnow)
1371 + 2. * (s3 / s4 + s4 / s3) );
1384 void Sigma2ffbar2gmZgmZ::initProc() {
1387 gmZmode = settingsPtr->mode(
"WeakZ0:gmZmode");
1390 mRes = particleDataPtr->m0(23);
1391 GammaRes = particleDataPtr->mWidth(23);
1393 GamMRat = GammaRes / mRes;
1394 thetaWRat = 1. / (16. * couplingsPtr->sin2thetaW()
1395 * couplingsPtr->cos2thetaW());
1398 particlePtr = particleDataPtr->particleDataEntryPtr(23);
1406 void Sigma2ffbar2gmZgmZ::sigmaKin() {
1409 sigma0 = (M_PI / sH2) * pow2(alpEM) * 0.5
1410 * ( (tH2 + uH2 + 2. * (s3 + s4) * sH) / (tH * uH)
1411 - s3 * s4 * (1./tH2 + 1./uH2) );
1414 double alpEM3 = couplingsPtr->alphaEM(s3);
1415 double alpS3 = couplingsPtr->alphaS(s3);
1416 double colQ3 = 3. * (1. + alpS3 / M_PI);
1417 double alpEM4 = couplingsPtr->alphaEM(s4);
1418 double alpS4 = couplingsPtr->alphaS(s4);
1419 double colQ4 = 3. * (1. + alpS4 / M_PI);
1429 double mf, mr, psvec, psaxi, betaf, ef2, efvf, vf2af2, colf;
1432 for (
int i = 0; i < particlePtr->sizeChannels(); ++i) {
1433 int idAbs = abs( particlePtr->channel(i).product(0) );
1436 if ( (idAbs > 0 && idAbs < 6) || ( idAbs > 10 && idAbs < 17)) {
1437 mf = particleDataPtr->m0(idAbs);
1438 onMode = particlePtr->channel(i).onMode();
1441 if (m3 > 2. * mf + MASSMARGIN) {
1443 betaf = sqrtpos(1. - 4. * mr);
1444 psvec = betaf * (1. + 2. * mr);
1445 psaxi = pow3(betaf);
1448 ef2 = couplingsPtr->ef2(idAbs) * psvec;
1449 efvf = couplingsPtr->efvf(idAbs) * psvec;
1450 vf2af2 = couplingsPtr->vf2(idAbs) * psvec
1451 + couplingsPtr->af2(idAbs) * psaxi;
1452 colf = (idAbs < 6) ? colQ3 : 1.;
1455 if (onMode == 1 || onMode == 2) {
1456 gamSum3 += colf * ef2;
1457 intSum3 += colf * efvf;
1458 resSum3 += colf * vf2af2;
1463 if (m4 > 2. * mf + MASSMARGIN) {
1465 betaf = sqrtpos(1. - 4. * mr);
1466 psvec = betaf * (1. + 2. * mr);
1467 psaxi = pow3(betaf);
1470 ef2 = couplingsPtr->ef2(idAbs) * psvec;
1471 efvf = couplingsPtr->efvf(idAbs) * psvec;
1472 vf2af2 = couplingsPtr->vf2(idAbs) * psvec
1473 + couplingsPtr->af2(idAbs) * psaxi;
1474 colf = (idAbs < 6) ? colQ4 : 1.;
1477 if (onMode == 1 || onMode == 2) {
1478 gamSum4 += colf * ef2;
1479 intSum4 += colf * efvf;
1480 resSum4 += colf * vf2af2;
1489 gamProp3 = 4. * alpEM3 / (3. * M_PI * s3);
1490 intProp3 = gamProp3 * 2. * thetaWRat * s3 * (s3 - m2Res)
1491 / ( pow2(s3 - m2Res) + pow2(s3 * GamMRat) );
1492 resProp3 = gamProp3 * pow2(thetaWRat * s3)
1493 / ( pow2(s3 - m2Res) + pow2(s3 * GamMRat) );
1496 if (gmZmode == 1) {intProp3 = 0.; resProp3 = 0.;}
1497 if (gmZmode == 2) {gamProp3 = 0.; intProp3 = 0.;}
1500 gamProp4 = 4. * alpEM4 / (3. * M_PI * s4);
1501 intProp4 = gamProp4 * 2. * thetaWRat * s4 * (s4 - m2Res)
1502 / ( pow2(s4 - m2Res) + pow2(s4 * GamMRat) );
1503 resProp4 = gamProp4 * pow2(thetaWRat * s4)
1504 / ( pow2(s4 - m2Res) + pow2(s4 * GamMRat) );
1507 if (gmZmode == 1) {intProp4 = 0.; resProp4 = 0.;}
1508 if (gmZmode == 2) {gamProp4 = 0.; intProp4 = 0.;}
1516 double Sigma2ffbar2gmZgmZ::sigmaHat() {
1519 int idAbs = abs(id1);
1520 double ei = 0.5 * couplingsPtr->ef(idAbs);
1521 double li = couplingsPtr->lf(idAbs);
1522 double ri = couplingsPtr->rf(idAbs);
1525 double left3 = ei * ei * gamProp3 * gamSum3
1526 + ei * li * intProp3 * intSum3
1527 + li * li * resProp3 * resSum3;
1528 double right3 = ei * ei * gamProp3 * gamSum3
1529 + ei * ri * intProp3 * intSum3
1530 + ri * ri * resProp3 * resSum3;
1531 double left4 = ei * ei * gamProp4 * gamSum4
1532 + ei * li * intProp4 * intSum4
1533 + li * li * resProp4 * resSum4;
1534 double right4 = ei * ei * gamProp4 * gamSum4
1535 + ei * ri * intProp4 * intSum4
1536 + ri * ri * resProp4 * resSum4;
1539 double sigma = sigma0 * (left3 * left4 + right3 * right4);
1542 sigma /= (runBW3 * runBW4);
1545 if (idAbs < 9) sigma /= 3.;
1554 void Sigma2ffbar2gmZgmZ::setIdColAcol() {
1557 setId( id1, id2, 23, 23);
1560 if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0, 0, 0);
1561 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
1562 if (id1 < 0) swapColAcol();
1571 double Sigma2ffbar2gmZgmZ::weightDecayFlav(
Event& process) {
1574 i1 = (process[3].id() < 0) ? 3 : 4;
1576 i3 = (process[7].id() > 0) ? 7 : 8;
1578 i5 = (process[9].id() > 0) ? 9 : 10;
1582 int idAbs = process[i1].idAbs();
1583 double ei = 0.5 * couplingsPtr->ef(idAbs);
1584 double li = couplingsPtr->lf(idAbs);
1585 double ri = couplingsPtr->rf(idAbs);
1586 idAbs = process[i3].idAbs();
1587 double e3 = 0.5 * couplingsPtr->ef(idAbs);
1588 double l3 = couplingsPtr->lf(idAbs);
1589 double r3 = couplingsPtr->rf(idAbs);
1590 idAbs = process[i5].idAbs();
1591 double e4 = 0.5 * couplingsPtr->ef(idAbs);
1592 double l4 = couplingsPtr->lf(idAbs);
1593 double r4 = couplingsPtr->rf(idAbs);
1596 c3LL = ei * ei * gamProp3 * e3 * e3
1597 + ei * li * intProp3 * e3 * l3
1598 + li * li * resProp3 * l3 * l3;
1599 c3LR = ei * ei * gamProp3 * e3 * e3
1600 + ei * li * intProp3 * e3 * r3
1601 + li * li * resProp3 * r3 * r3;
1602 c3RL = ei * ei * gamProp3 * e3 * e3
1603 + ei * ri * intProp3 * e3 * l3
1604 + ri * ri * resProp3 * l3 * l3;
1605 c3RR = ei * ei * gamProp3 * e3 * e3
1606 + ei * ri * intProp3 * e3 * r3
1607 + ri * ri * resProp3 * r3 * r3;
1608 c4LL = ei * ei * gamProp4 * e4 * e4
1609 + ei * li * intProp4 * e4 * l4
1610 + li * li * resProp4 * l4 * l4;
1611 c4LR = ei * ei * gamProp4 * e4 * e4
1612 + ei * li * intProp4 * e4 * r4
1613 + li * li * resProp4 * r4 * r4;
1614 c4RL = ei * ei * gamProp4 * e4 * e4
1615 + ei * ri * intProp4 * e4 * l4
1616 + ri * ri * resProp4 * l4 * l4;
1617 c4RR = ei * ei * gamProp4 * e4 * e4
1618 + ei * ri * intProp4 * e4 * r4
1619 + ri * ri * resProp4 * r4 * r4;
1622 flavWt = (c3LL + c3LR) * (c4LL + c4LR) + (c3RL + c3RR) * (c4RL + c4RR);
1623 double flavWtMax = (c3LL + c3LR + c3RL + c3RR) * (c4LL + c4LR + c4RL + c4RR);
1626 return flavWt / flavWtMax;
1634 double Sigma2ffbar2gmZgmZ::weightDecay(
Event& process,
int iResBeg,
1638 if (iResBeg != 5 || iResEnd != 6)
return 1.;
1641 setupProd( process, i1, i2, i3, i4, i5, i6);
1646 if (process[3].
id() > 0) swap( tHres, uHres);
1649 double fGK135 = norm( fGK( 1, 2, 3, 4, 5, 6) / tHres
1650 + fGK( 1, 2, 5, 6, 3, 4) / uHres );
1651 double fGK145 = norm( fGK( 1, 2, 4, 3, 5, 6) / tHres
1652 + fGK( 1, 2, 5, 6, 4, 3) / uHres );
1653 double fGK136 = norm( fGK( 1, 2, 3, 4, 6, 5) / tHres
1654 + fGK( 1, 2, 6, 5, 3, 4) / uHres );
1655 double fGK146 = norm( fGK( 1, 2, 4, 3, 6, 5) / tHres
1656 + fGK( 1, 2, 6, 5, 4, 3) / uHres );
1657 double fGK253 = norm( fGK( 2, 1, 5, 6, 3, 4) / tHres
1658 + fGK( 2, 1, 3, 4, 5, 6) / uHres );
1659 double fGK263 = norm( fGK( 2, 1, 6, 5, 3, 4) / tHres
1660 + fGK( 2, 1, 3, 4, 6, 5) / uHres );
1661 double fGK254 = norm( fGK( 2, 1, 5, 6, 4, 3) / tHres
1662 + fGK( 2, 1, 4, 3, 5, 6) / uHres );
1663 double fGK264 = norm( fGK( 2, 1, 6, 5, 4, 3) / tHres
1664 + fGK( 2, 1, 4, 3, 6, 5) / uHres );
1667 double wt = c3LL * c4LL * fGK135 + c3LR * c4LL * fGK145
1668 + c3LL * c4LR * fGK136 + c3LR * c4LR * fGK146
1669 + c3RL * c4RL * fGK253 + c3RR * c4RL * fGK263
1670 + c3RL * c4RR * fGK254 + c3RR * c4RR * fGK264;
1671 double wtMax = 16. * s3 * s4 * flavWt
1672 * ( (tHres*tHres + uHres*uHres + 2. * sH * (s3 + s4)) / (tHres * uHres)
1673 - s3 * s4 * (1. / (tHres*tHres) + 1. / (uHres*uHres)) );
1689 void Sigma2ffbar2ZW::initProc() {
1692 mW = particleDataPtr->m0(24);
1693 widW = particleDataPtr->mWidth(24);
1695 mwWS = pow2(mW * widW);
1698 lun = (hasLeptonBeams) ? couplingsPtr->lf(12) : couplingsPtr->lf(2);
1699 lde = (hasLeptonBeams) ? couplingsPtr->lf(11) : couplingsPtr->lf(1);
1702 sin2thetaW = couplingsPtr->sin2thetaW();
1703 cos2thetaW = couplingsPtr->cos2thetaW();
1704 thetaWRat = 1. / (4. * cos2thetaW);
1705 cotT = sqrt(cos2thetaW / sin2thetaW);
1706 thetaWpt = (9. - 8. * sin2thetaW) / 4.;
1707 thetaWmm = (8. * sin2thetaW - 6.) / 4.;
1710 openFracPos = particleDataPtr->resOpenFrac(23, 24);
1711 openFracNeg = particleDataPtr->resOpenFrac(23, -24);
1719 void Sigma2ffbar2ZW::sigmaKin() {
1746 double resBW = 1. / (pow2(sH - mWS) + mwWS);
1747 sigma0 = (M_PI / sH2) * 0.5 * pow2(alpEM / sin2thetaW);
1748 sigma0 *= sH * resBW * (thetaWpt * pT2 + thetaWmm * (s3 + s4))
1749 + (sH - mWS) * resBW * sH * (pT2 - s3 - s4) * (lun / tH - lde / uH)
1750 + thetaWRat * sH * pT2 * ( lun*lun / tH2 + lde*lde / uH2 )
1751 + 2. * thetaWRat * sH * (s3 + s4) * lun * lde / (tH * uH);
1753 sigma0 = max(0., sigma0);
1761 double Sigma2ffbar2ZW::sigmaHat() {
1764 double sigma = sigma0;
1765 if (abs(id1) < 9) sigma *= couplingsPtr->V2CKMid(abs(id1), abs(id2)) / 3.;
1768 int idUp = (abs(id1)%2 == 0) ? id1 : id2;
1769 sigma *= (idUp > 0) ? openFracPos : openFracNeg;
1780 void Sigma2ffbar2ZW::setIdColAcol() {
1783 int sign = 1 - 2 * (abs(id1)%2);
1784 if (id1 < 0) sign = -sign;
1785 setId( id1, id2, 23, 24 * sign);
1789 if (abs(id1)%2 == 1) swapTU =
true;
1792 if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0, 0, 0);
1793 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
1794 if (id1 < 0) swapColAcol();
1802 double Sigma2ffbar2ZW::weightDecay(
Event& process,
int iResBeg,
int iResEnd) {
1805 if (iResBeg != 5 || iResEnd != 6)
return 1.;
1809 int i1 = (process[3].id() < 0) ? 3 : 4;
1811 int i3 = (process[9].id() > 0) ? 9 : 10;
1813 int i5 = (process[7].id() > 0) ? 7 : 8;
1817 setupProd( process, i1, i2, i3, i4, i5, i6);
1822 if (process[i2].
id()%2 == 1) swap( tHres, uHres);
1825 int idAbs = process[i1].idAbs();
1826 double ai = couplingsPtr->af(idAbs);
1827 double li1 = couplingsPtr->lf(idAbs);
1828 idAbs = process[i2].idAbs();
1829 double li2 = couplingsPtr->lf(idAbs);
1830 idAbs = process[i5].idAbs();
1831 double l4 = couplingsPtr->lf(idAbs);
1832 double r4 = couplingsPtr->rf(idAbs);
1835 double Wint = cos2thetaW * (sH - mWS) / (pow2(sH - mWS) + mwWS);
1838 double aWZ = li2 / tHres - 2. * Wint * ai;
1839 double bWZ = li1 / uHres + 2. * Wint * ai;
1840 double fGK135 = norm( aWZ * fGK( 1, 2, 3, 4, 5, 6)
1841 + bWZ * fGK( 1, 2, 5, 6, 3, 4) );
1842 double fGK136 = norm( aWZ * fGK( 1, 2, 3, 4, 6, 5)
1843 + bWZ * fGK( 1, 2, 6, 5, 3, 4) );
1844 double xiT = xiGK( tHres, uHres);
1845 double xiU = xiGK( uHres, tHres);
1846 double xjTU = xjGK( tHres, uHres);
1849 double wt = l4*l4 * fGK135 + r4*r4 * fGK136;
1850 double wtMax = 4. * s3 * s4 * (l4*l4 + r4*r4)
1851 * (aWZ * aWZ * xiT + bWZ * bWZ * xiU + aWZ * bWZ * xjTU);
1867 void Sigma2ffbar2WW::initProc() {
1870 mZ = particleDataPtr->m0(23);
1871 widZ = particleDataPtr->mWidth(23);
1873 mwZS = pow2(mZ * widZ);
1874 thetaWRat = 1. / (4. * couplingsPtr->sin2thetaW());
1877 openFracPair = particleDataPtr->resOpenFrac(24, -24);
1885 void Sigma2ffbar2WW::sigmaKin() {
1888 sigma0 = (M_PI / sH2) * pow2(alpEM);
1891 double Zprop = sH2 / (pow2(sH - mZS) + mwZS);
1892 double Zint = Zprop * (1. - mZS / sH);
1896 cgZ = thetaWRat * Zint;
1897 cZZ = 0.5 * pow2(thetaWRat) * Zprop;
1899 cfZ = pow2(thetaWRat) * Zint;
1900 cff = pow2(thetaWRat);
1903 double rat34 = sH * (2. * (s3 + s4) + pT2) / (s3 * s4);
1904 double lambdaS = pow2(sH - s3 - s4) - 4. * s3 * s4;
1905 double intA = (sH - s3 - s4) * rat34 / sH;
1906 double intB = 4. * (s3 + s4 - pT2);
1907 gSS = (lambdaS * rat34 + 12. * sH * pT2) / sH2;
1908 gTT = rat34 + 4. * sH * pT2 / tH2;
1909 gST = intA + intB / tH;
1910 gUU = rat34 + 4. * sH * pT2 / uH2;
1911 gSU = intA + intB / uH;
1919 double Sigma2ffbar2WW::sigmaHat() {
1922 int idAbs = abs(id1);
1923 double ei = couplingsPtr->ef(idAbs);
1924 double vi = couplingsPtr->vf(idAbs);
1925 double ai = couplingsPtr->af(idAbs);
1928 double sigma = sigma0;
1929 sigma *= (idAbs%2 == 1)
1930 ? (cgg * ei*ei + cgZ * ei * vi + cZZ * (vi*vi + ai*ai)) * gSS
1931 + (cfg * ei + cfZ * (vi + ai)) * gST + cff * gTT
1932 : (cgg * ei*ei + cgZ * ei * vi + cZZ * (vi*vi + ai*ai)) * gSS
1933 - (cfg * ei + cfZ * (vi + ai)) * gSU + cff * gUU;
1936 if (idAbs < 9) sigma /= 3.;
1937 sigma *= openFracPair;
1946 void Sigma2ffbar2WW::setIdColAcol() {
1949 setId( id1, id2, -24, 24);
1952 if (id1 < 0) swapTU =
true;
1955 if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0, 0, 0);
1956 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
1957 if (id1 < 0) swapColAcol();
1965 double Sigma2ffbar2WW::weightDecay(
Event& process,
int iResBeg,
int iResEnd) {
1968 if (iResBeg != 5 || iResEnd != 6)
return 1.;
1972 int i1 = (process[3].id() < 0) ? 3 : 4;
1974 int i3 = (process[7].id() > 0) ? 7 : 8;
1976 int i5 = (process[9].id() > 0) ? 9 : 10;
1980 setupProd( process, i1, i2, i3, i4, i5, i6);
1987 int idAbs = process[i1].idAbs();
1988 double ai = couplingsPtr->af(idAbs);
1989 double li = couplingsPtr->lf(idAbs);
1990 double ri = couplingsPtr->rf(idAbs);
1993 double Zint = mZS * (sH - mZS) / (pow2(sH - mZS) + mwZS);
1996 double dWW = (li * Zint + ai) / sH;
1997 double aWW = dWW + 0.5 * (ai + 1.) / tHres;
1998 double bWW = dWW + 0.5 * (ai - 1.) / uHres;
1999 double cWW = ri * Zint / sH;
2000 double fGK135 = norm( aWW * fGK( 1, 2, 3, 4, 5, 6)
2001 - bWW * fGK( 1, 2, 5, 6, 3, 4) );
2002 double fGK253 = norm( cWW * ( fGK( 2, 1, 5, 6, 3, 4)
2003 - fGK( 2, 1, 3, 4, 5, 6) ) );
2004 double xiT = xiGK( tHres, uHres);
2005 double xiU = xiGK( uHres, tHres);
2006 double xjTU = xjGK( tHres, uHres);
2009 double wt = fGK135 + fGK253;
2010 double wtMax = 4. * s3 * s4
2011 * ( aWW * aWW * xiT + bWW * bWW * xiU - aWW * bWW * xjTU
2012 + cWW * cWW * (xiT + xiU - xjTU) );
2027 void Sigma2ffbargmZggm::initProc() {
2030 gmZmode = settingsPtr->mode(
"WeakZ0:gmZmode");
2033 mRes = particleDataPtr->m0(23);
2034 GammaRes = particleDataPtr->mWidth(23);
2036 GamMRat = GammaRes / mRes;
2037 thetaWRat = 1. / (16. * couplingsPtr->sin2thetaW()
2038 * couplingsPtr->cos2thetaW());
2041 particlePtr = particleDataPtr->particleDataEntryPtr(23);
2049 void Sigma2ffbargmZggm::flavSum() {
2052 double alpSZ = couplingsPtr->alphaS(s3);
2053 double colQZ = 3. * (1. + alpSZ / M_PI);
2060 double mf, mr, psvec, psaxi, betaf, ef2, efvf, vf2af2, colf;
2063 for (
int i = 0; i < particlePtr->sizeChannels(); ++i) {
2064 int idAbs = abs( particlePtr->channel(i).product(0) );
2067 if ( (idAbs > 0 && idAbs < 6) || ( idAbs > 10 && idAbs < 17)) {
2068 mf = particleDataPtr->m0(idAbs);
2071 if (m3 > 2. * mf + MASSMARGIN) {
2073 betaf = sqrtpos(1. - 4. * mr);
2074 psvec = betaf * (1. + 2. * mr);
2075 psaxi = pow3(betaf);
2078 ef2 = couplingsPtr->ef2(idAbs) * psvec;
2079 efvf = couplingsPtr->efvf(idAbs) * psvec;
2080 vf2af2 = couplingsPtr->vf2(idAbs) * psvec
2081 + couplingsPtr->af2(idAbs) * psaxi;
2082 colf = (idAbs < 6) ? colQZ : 1.;
2085 onMode = particlePtr->channel(i).onMode();
2086 if (onMode == 1 || onMode == 2) {
2087 gamSum += colf * ef2;
2088 intSum += colf * efvf;
2089 resSum += colf * vf2af2;
2105 void Sigma2ffbargmZggm::propTerm() {
2108 gamProp = 4. * alpEM / (3. * M_PI * s3);
2109 intProp = gamProp * 2. * thetaWRat * s3 * (s3 - m2Res)
2110 / ( pow2(s3 - m2Res) + pow2(s3 * GamMRat) );
2111 resProp = gamProp * pow2(thetaWRat * s3)
2112 / ( pow2(s3 - m2Res) + pow2(s3 * GamMRat) );
2115 if (gmZmode == 1) {intProp = 0.; resProp = 0.;}
2116 if (gmZmode == 2) {gamProp = 0.; intProp = 0.;}
2124 double Sigma2ffbargmZggm::weightDecay(
Event& process,
int iResBeg,
2128 if (iResBeg != 5 || iResEnd != 6)
return 1.;
2133 int i3 = (process[7].id() > 0) ? 7 : 8;
2137 if (process[3].idAbs() < 20 && process[4].idAbs() < 20) {
2138 i1 = (process[3].id() < 0) ? 3 : 4;
2142 }
else if (process[3].idAbs() < 20) {
2143 i1 = (process[3].id() < 0) ? 3 : 6;
2146 i1 = (process[4].id() < 0) ? 4 : 6;
2151 int id1Abs = process[i1].idAbs();
2152 double ei = 0.5 * couplingsPtr->ef(id1Abs);
2153 double li = couplingsPtr->lf(id1Abs);
2154 double ri = couplingsPtr->rf(id1Abs);
2155 int id3Abs = process[i3].idAbs();
2156 double ef = 0.5 * couplingsPtr->ef(id3Abs);
2157 double lf = couplingsPtr->lf(id3Abs);
2158 double rf = couplingsPtr->rf(id3Abs);
2161 double clilf = ei*ei * gamProp * ef*ef + ei*li * intProp * ef*lf
2162 + li*li * resProp * lf*lf;
2163 double clirf = ei*ei * gamProp * ef*ef + ei*li * intProp * ef*rf
2164 + li*li * resProp * rf*rf;
2165 double crilf = ei*ei * gamProp * ef*ef + ei*ri * intProp * ef*lf
2166 + ri*ri * resProp * lf*lf;
2167 double crirf = ei*ei * gamProp * ef*ef + ei*ri * intProp * ef*rf
2168 + ri*ri * resProp * rf*rf;
2171 double p13 = process[i1].p() * process[i3].p();
2172 double p14 = process[i1].p() * process[i4].p();
2173 double p23 = process[i2].p() * process[i3].p();
2174 double p24 = process[i2].p() * process[i4].p();
2177 double wt = (clilf + crirf) * (p13*p13 + p24*p24)
2178 + (clirf + crilf) * (p14*p14 + p23*p23) ;
2179 double wtMax = (clilf + clirf + crilf + crirf)
2180 * (pow2(p13 + p14) + pow2(p23 + p24));
2183 return (wt / wtMax);
2196 void Sigma2qqbar2gmZg::sigmaKin() {
2199 sigma0 = (M_PI / sH2) * (alpEM * alpS)
2200 * (2./9.) * (tH2 + uH2 + 2. * sH * s3) / (tH * uH);
2214 double Sigma2qqbar2gmZg::sigmaHat() {
2217 int idAbs = abs(id1);
2218 double sigma = sigma0
2219 * ( couplingsPtr->ef2(idAbs) * gamProp * gamSum
2220 + couplingsPtr->efvf(idAbs) * intProp * intSum
2221 + couplingsPtr->vf2af2(idAbs) * resProp * resSum);
2235 void Sigma2qqbar2gmZg::setIdColAcol() {
2238 setId( id1, id2, 23, 21);
2241 setColAcol( 1, 0, 0, 2, 0, 0, 1, 2);
2242 if (id1 < 0) swapColAcol();
2255 void Sigma2qg2gmZq::sigmaKin() {
2258 sigma0 = (M_PI / sH2) * (alpEM * alpS)
2259 * (1./12.) * (sH2 + uH2 + 2. * tH * s3) / (-sH * uH);
2273 double Sigma2qg2gmZq::sigmaHat() {
2276 int idAbs = (id2 == 21) ? abs(id1) : abs(id2);
2277 double sigma = sigma0
2278 * ( couplingsPtr->ef2(idAbs) * gamProp * gamSum
2279 + couplingsPtr->efvf(idAbs) * intProp * intSum
2280 + couplingsPtr->vf2af2(idAbs) * resProp * resSum);
2294 void Sigma2qg2gmZq::setIdColAcol() {
2297 int idq = (id2 == 21) ? id1 : id2;
2298 setId( id1, id2, 23, idq);
2301 swapTU = (id2 == 21);
2304 if (id2 == 21) setColAcol( 1, 0, 2, 1, 0, 0, 2, 0);
2305 else setColAcol( 2, 1, 1, 0, 0, 0, 2, 0);
2306 if (idq < 0) swapColAcol();
2319 void Sigma2ffbar2gmZgm::sigmaKin() {
2322 sigma0 = (M_PI / sH2) * (alpEM*alpEM)
2323 * 0.5 * (tH2 + uH2 + 2. * sH * s3) / (tH * uH);
2338 double Sigma2ffbar2gmZgm::sigmaHat() {
2341 int idAbs = abs(id1);
2342 double sigma = sigma0 * couplingsPtr->ef2(idAbs)
2343 * ( couplingsPtr->ef2(idAbs) * gamProp * gamSum
2344 + couplingsPtr->efvf(idAbs) * intProp * intSum
2345 + couplingsPtr->vf2af2(idAbs) * resProp * resSum);
2351 if (idAbs < 9) sigma /= 3.;
2360 void Sigma2ffbar2gmZgm::setIdColAcol() {
2363 setId( id1, id2, 23, 22);
2366 if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0, 0, 0);
2367 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
2368 if (id1 < 0) swapColAcol();
2381 void Sigma2fgm2gmZf::sigmaKin() {
2384 sigma0 = (M_PI / sH2) * (alpEM*alpEM)
2385 * 0.5 * (sH2 + uH2 + 2. * tH * s3) / (- sH * uH);
2399 double Sigma2fgm2gmZf::sigmaHat() {
2402 int idAbs = (id2 == 22) ? abs(id1) : abs(id2);
2403 double sigma = sigma0 * couplingsPtr->ef2(idAbs)
2404 * ( couplingsPtr->ef2(idAbs) * gamProp * gamSum
2405 + couplingsPtr->efvf(idAbs) * intProp * intSum
2406 + couplingsPtr->vf2af2(idAbs) * resProp * resSum);
2420 void Sigma2fgm2gmZf::setIdColAcol() {
2423 int idq = (id2 == 22) ? id1 : id2;
2424 setId( id1, id2, 23, idq);
2427 swapTU = (id2 == 22);
2430 if (abs(id1) < 9) setColAcol( 1, 0, 0, 0, 0, 0, 1, 0);
2431 else if (abs(id2) < 9) setColAcol( 0, 0, 1, 0, 0, 0, 1, 0);
2432 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
2433 if (idq < 0) swapColAcol();
2446 double Sigma2ffbarWggm::weightDecay(
Event& process,
int iResBeg,
2450 if (iResBeg != 5 || iResEnd != 6)
return 1.;
2455 int i3 = (process[7].id() > 0) ? 7 : 8;
2459 if (process[3].idAbs() < 20 && process[4].idAbs() < 20) {
2460 i1 = (process[3].id() < 0) ? 3 : 4;
2464 }
else if (process[3].idAbs() < 20) {
2465 i1 = (process[3].id() < 0) ? 3 : 6;
2468 i1 = (process[4].id() < 0) ? 4 : 6;
2473 double p13 = process[i1].p() * process[i3].p();
2474 double p14 = process[i1].p() * process[i4].p();
2475 double p23 = process[i2].p() * process[i3].p();
2476 double p24 = process[i2].p() * process[i4].p();
2479 double wt = pow2(p13) + pow2(p24);
2480 double wtMax = pow2(p13 + p14) + pow2(p23 + p24);
2483 return (wt / wtMax);
2496 void Sigma2qqbar2Wg::initProc() {
2499 openFracPos = particleDataPtr->resOpenFrac(24);
2500 openFracNeg = particleDataPtr->resOpenFrac(-24);
2508 void Sigma2qqbar2Wg::sigmaKin() {
2511 sigma0 = (M_PI / sH2) * (alpEM * alpS / couplingsPtr->sin2thetaW())
2512 * (2./9.) * (tH2 + uH2 + 2. * sH * s3) / (tH * uH);
2520 double Sigma2qqbar2Wg::sigmaHat() {
2523 double sigma = sigma0 * couplingsPtr->V2CKMid(abs(id1), abs(id2));
2524 int idUp = (abs(id1)%2 == 0) ? id1 : id2;
2525 sigma *= (idUp > 0) ? openFracPos : openFracNeg;
2536 void Sigma2qqbar2Wg::setIdColAcol() {
2539 int sign = 1 - 2 * (abs(id1)%2);
2540 if (id1 < 0) sign = -sign;
2541 setId( id1, id2, 24 * sign, 21);
2544 setColAcol( 1, 0, 0, 2, 0, 0, 1, 2);
2545 if (id1 < 0) swapColAcol();
2558 void Sigma2qg2Wq::initProc() {
2561 openFracPos = particleDataPtr->resOpenFrac(24);
2562 openFracNeg = particleDataPtr->resOpenFrac(-24);
2570 void Sigma2qg2Wq::sigmaKin() {
2573 sigma0 = (M_PI / sH2) * (alpEM * alpS / couplingsPtr->sin2thetaW())
2574 * (1./12.) * (sH2 + uH2 + 2. * tH * s3) / (-sH * uH);
2582 double Sigma2qg2Wq::sigmaHat() {
2585 int idAbs = (id2 == 21) ? abs(id1) : abs(id2);
2586 double sigma = sigma0 * couplingsPtr->V2CKMsum(idAbs);
2587 int idUp = (id2 == 21) ? id1 : id2;
2588 if (idAbs%2 == 1) idUp = -idUp;
2589 sigma *= (idUp > 0) ? openFracPos : openFracNeg;
2600 void Sigma2qg2Wq::setIdColAcol() {
2603 int idq = (id2 == 21) ? id1 : id2;
2604 int sign = 1 - 2 * (abs(idq)%2);
2605 if (idq < 0) sign = -sign;
2606 id4 = couplingsPtr->V2CKMpick(idq);
2609 setId( id1, id2, 24 * sign, id4);
2612 swapTU = (id2 == 21);
2615 if (id2 == 21) setColAcol( 1, 0, 2, 1, 0, 0, 2, 0);
2616 else setColAcol( 2, 1, 1, 0, 0, 0, 2, 0);
2617 if (idq < 0) swapColAcol();
2630 void Sigma2ffbar2Wgm::initProc() {
2633 openFracPos = particleDataPtr->resOpenFrac(24);
2634 openFracNeg = particleDataPtr->resOpenFrac(-24);
2642 void Sigma2ffbar2Wgm::sigmaKin() {
2645 sigma0 = (M_PI / sH2) * (alpEM*alpEM / couplingsPtr->sin2thetaW())
2646 * 0.5 * (tH2 + uH2 + 2. * sH * s3) / (tH * uH);
2653 double Sigma2ffbar2Wgm::sigmaHat() {
2656 int id1Abs = abs(id1);
2657 int id2Abs = abs(id2);
2658 double chgUp = (id1Abs > 10) ? 0. : 2./3.;
2659 double sigma = sigma0 * pow2( chgUp - tH / (tH + uH) );
2662 if (id1Abs < 9) sigma *= couplingsPtr->V2CKMid(id1Abs, id2Abs) / 3.;
2663 int idUp = (abs(id1)%2 == 0) ? id1 : id2;
2664 sigma *= (idUp > 0) ? openFracPos : openFracNeg;
2675 void Sigma2ffbar2Wgm::setIdColAcol() {
2678 int sign = 1 - 2 * (abs(id1)%2);
2679 if (id1 < 0) sign = -sign;
2680 setId( id1, id2, 24 * sign, 22);
2683 swapTU = (sign * id1 > 0);
2686 if (abs(id1) < 9) setColAcol( 1, 0, 0, 1, 0, 0, 0, 0);
2687 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
2688 if (id1 < 0) swapColAcol();
2701 void Sigma2fgm2Wf::initProc() {
2704 openFracPos = particleDataPtr->resOpenFrac(24);
2705 openFracNeg = particleDataPtr->resOpenFrac(-24);
2713 void Sigma2fgm2Wf::sigmaKin() {
2716 sigma0 = (M_PI / sH2) * (alpEM*alpEM / couplingsPtr->sin2thetaW())
2717 * 0.5 * (sH2 + uH2 + 2. * tH * s3) / (pT2 * s3 - sH * uH);
2725 double Sigma2fgm2Wf::sigmaHat() {
2728 int idAbs = (id2 == 22) ? abs(id1) : abs(id2);
2729 double charge = (idAbs > 10) ? 1. : ( (idAbs%2 == 1) ? 1./3. : 2./3. );
2730 double sigma = sigma0 * pow2( charge - sH / (sH + uH) );
2733 sigma *= couplingsPtr->V2CKMsum(idAbs);
2734 int idUp = (id2 == 22) ? id1 : id2;
2735 if (idAbs%2 == 1) idUp = -idUp;
2736 sigma *= (idUp > 0) ? openFracPos : openFracNeg;
2747 void Sigma2fgm2Wf::setIdColAcol() {
2750 int idq = (id2 == 22) ? id1 : id2;
2751 int sign = 1 - 2 * (abs(idq)%2);
2752 if (idq < 0) sign = -sign;
2753 id4 = couplingsPtr->V2CKMpick(idq);
2756 setId( id1, id2, 24 * sign, id4);
2759 swapTU = (id2 == 22);
2762 if (abs(id1) < 9) setColAcol( 1, 0, 0, 0, 0, 0, 1, 0);
2763 else if (abs(id2) < 9) setColAcol( 0, 0, 1, 0, 0, 0, 1, 0);
2764 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
2765 if (idq < 0) swapColAcol();
2778 void Sigma2gmgm2ffbar::initProc() {
2781 nameSave =
"gamma gamma -> f fbar";
2782 if (idNew == 1) nameSave =
"gamma gamma -> q qbar (uds)";
2783 if (idNew == 4) nameSave =
"gamma gamma -> c cbar";
2784 if (idNew == 5) nameSave =
"gamma gamma -> b bbar";
2785 if (idNew == 6) nameSave =
"gamma gamma -> t tbar";
2786 if (idNew == 11) nameSave =
"gamma gamma -> e+ e-";
2787 if (idNew == 13) nameSave =
"gamma gamma -> mu+ mu-";
2788 if (idNew == 15) nameSave =
"gamma gamma -> tau+ tau-";
2792 if (idNew > 3) idMass = idNew;
2796 if (idNew == 1) ef4 = 3. * (pow4(2./3.) + 2. * pow4(1./3.));
2797 if (idNew == 4 || idNew == 6) ef4 = 3. * pow4(2./3.);
2798 if (idNew == 5) ef4 = 3. * pow4(1./3.);
2801 openFracPair = particleDataPtr->resOpenFrac(idNew, -idNew);
2809 void Sigma2gmgm2ffbar::sigmaKin() {
2813 double rId = 18. * rndmPtr->flat();
2815 if (rId > 1.) idNow = 2;
2816 if (rId > 17.) idNow = 3;
2817 s34Avg = pow2(particleDataPtr->m0(idNow));
2820 s34Avg = 0.5 * (s3 + s4) - 0.25 * pow2(s3 - s4) / sH;
2824 double tHQ = -0.5 * (sH - tH + uH);
2825 double uHQ = -0.5 * (sH + tH - uH);
2826 double tHQ2 = tHQ * tHQ;
2827 double uHQ2 = uHQ * uHQ;
2830 if (sH < 4. * s34Avg) sigTU = 0.;
2831 else sigTU = 2. * (tHQ * uHQ - s34Avg * sH)
2832 * (tHQ2 + uHQ2 + 2. * s34Avg * sH) / (tHQ2 * uHQ2);
2835 sigma = (M_PI / sH2) * pow2(alpEM) * ef4 * sigTU * openFracPair;
2843 void Sigma2gmgm2ffbar::setIdColAcol() {
2846 setId( id1, id2, idNow, -idNow);
2849 if (idNow < 10) setColAcol( 0, 0, 0, 0, 1, 0, 0, 1);
2850 else setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);