22 void Sigma0AB2AB::setIdColAcol() {
25 setId( idA, idB, idA, idB);
26 setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
38 void Sigma0AB2XB::setIdColAcol() {
41 int idX = 10* (abs(idA) / 10) + 9900000;
42 if (idA < 0) idX = -idX;
43 setId( idA, idB, idX, idB);
44 setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
57 void Sigma0AB2AX::setIdColAcol() {
60 int idX = 10* (abs(idB) / 10) + 9900000;
61 if (idB < 0) idX = -idX;
62 setId( idA, idB, idA, idX);
63 setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
76 void Sigma0AB2XX::setIdColAcol() {
79 int idX1 = 10* (abs(idA) / 10) + 9900000;
80 if (idA < 0) idX1 = -idX1;
81 int idX2 = 10* (abs(idB) / 10) + 9900000;
82 if (idB < 0) idX2 = -idX2;
83 setId( idA, idB, idX1, idX2);
84 setColAcol( 0, 0, 0, 0, 0, 0, 0, 0);
97 void Sigma2gg2gg::sigmaKin() {
100 sigTS = (9./4.) * (tH2 / sH2 + 2. * tH / sH + 3. + 2. * sH / tH
102 sigUS = (9./4.) * (uH2 / sH2 + 2. * uH / sH + 3. + 2. * sH / uH
104 sigTU = (9./4.) * (tH2 / uH2 + 2. * tH / uH + 3. + 2. * uH / tH
106 sigSum = sigTS + sigUS + sigTU;
109 sigma = (M_PI / sH2) * pow2(alpS) * 0.5 * sigSum;
117 void Sigma2gg2gg::setIdColAcol() {
120 setId( id1, id2, 21, 21);
123 double sigRand = sigSum * rndmPtr->flat();
124 if (sigRand < sigTS) setColAcol( 1, 2, 2, 3, 1, 4, 4, 3);
125 else if (sigRand < sigTS + sigUS)
126 setColAcol( 1, 2, 3, 1, 3, 4, 4, 2);
127 else setColAcol( 1, 2, 3, 4, 1, 4, 3, 2);
128 if (rndmPtr->flat() > 0.5) swapColAcol();
141 void Sigma2gg2qqbar::initProc() {
144 nQuarkNew = settingsPtr->mode(
"HardQCD:nQuarkNew");
152 void Sigma2gg2qqbar::sigmaKin() {
155 idNew = 1 + int( nQuarkNew * rndmPtr->flat() );
156 mNew = particleDataPtr->m0(idNew);
162 if (sH > 4. * m2New) {
163 sigTS = (1./6.) * uH / tH - (3./8.) * uH2 / sH2;
164 sigUS = (1./6.) * tH / uH - (3./8.) * tH2 / sH2;
166 sigSum = sigTS + sigUS;
169 sigma = (M_PI / sH2) * pow2(alpS) * nQuarkNew * sigSum;
177 void Sigma2gg2qqbar::setIdColAcol() {
180 setId( id1, id2, idNew, -idNew);
183 double sigRand = sigSum * rndmPtr->flat();
184 if (sigRand < sigTS) setColAcol( 1, 2, 2, 3, 1, 0, 0, 3);
185 else setColAcol( 1, 2, 3, 1, 3, 0, 0, 2);
198 void Sigma2qg2qg::sigmaKin() {
201 sigTS = uH2 / tH2 - (4./9.) * uH / sH;
202 sigTU = sH2 / tH2 - (4./9.) * sH / uH;
203 sigSum = sigTS + sigTU;
206 sigma = (M_PI / sH2) * pow2(alpS) * sigSum;
214 void Sigma2qg2qg::setIdColAcol() {
217 setId( id1, id2, id1, id2);
220 double sigRand = sigSum * rndmPtr->flat();
221 if (sigRand < sigTS) setColAcol( 1, 0, 2, 1, 3, 0, 2, 3);
222 else setColAcol( 1, 0, 2, 3, 2, 0, 1, 3);
223 if (id1 == 21) swapCol1234();
224 if (id1 < 0 || id2 < 0) swapColAcol();
238 void Sigma2qq2qq::sigmaKin() {
241 sigT = (4./9.) * (sH2 + uH2) / tH2;
242 sigU = (4./9.) * (sH2 + tH2) / uH2;
243 sigTU = - (8./27.) * sH2 / (tH * uH);
244 sigST = - (8./27.) * uH2 / (sH * tH);
253 double Sigma2qq2qq::sigmaHat() {
256 if (id2 == id1) sigSum = 0.5 * (sigT + sigU + sigTU);
257 else if (id2 == -id1) sigSum = sigT + sigST;
261 return (M_PI/sH2) * pow2(alpS) * sigSum;
269 void Sigma2qq2qq::setIdColAcol() {
272 setId( id1, id2, id1, id2);
275 if (id1 * id2 > 0) setColAcol( 1, 0, 2, 0, 2, 0, 1, 0);
276 else setColAcol( 1, 0, 0, 1, 2, 0, 0, 2);
277 if (id2 == id1 && (sigT + sigU) * rndmPtr->flat() > sigT)
278 setColAcol( 1, 0, 2, 0, 1, 0, 2, 0);
279 if (id1 < 0) swapColAcol();
292 void Sigma2qqbar2gg::sigmaKin() {
295 sigTS = (32./27.) * uH / tH - (8./3.) * uH2 / sH2;
296 sigUS = (32./27.) * tH / uH - (8./3.) * tH2 / sH2;
297 sigSum = sigTS + sigUS;
300 sigma = (M_PI / sH2) * pow2(alpS) * 0.5 * sigSum;
308 void Sigma2qqbar2gg::setIdColAcol() {
311 setId( id1, id2, 21, 21);
314 double sigRand = sigSum * rndmPtr->flat();
315 if (sigRand < sigTS) setColAcol( 1, 0, 0, 2, 1, 3, 3, 2);
316 else setColAcol( 1, 0, 0, 2, 3, 2, 1, 3);
317 if (id1 < 0) swapColAcol();
330 void Sigma2qqbar2qqbarNew::initProc() {
333 nQuarkNew = settingsPtr->mode(
"HardQCD:nQuarkNew");
341 void Sigma2qqbar2qqbarNew::sigmaKin() {
344 idNew = 1 + int( nQuarkNew * rndmPtr->flat() );
345 mNew = particleDataPtr->m0(idNew);
350 if (sH > 4. * m2New) sigS = (4./9.) * (tH2 + uH2) / sH2;
353 sigma = (M_PI / sH2) * pow2(alpS) * nQuarkNew * sigS;
361 void Sigma2qqbar2qqbarNew::setIdColAcol() {
364 id3 = (id1 > 0) ? idNew : -idNew;
365 setId( id1, id2, id3, -id3);
368 setColAcol( 1, 0, 0, 2, 1, 0, 0, 2);
369 if (id1 < 0) swapColAcol();
387 void Sigma2gg2QQbar::initProc() {
390 nameSave =
"g g -> Q Qbar";
391 if (idNew == 4) nameSave =
"g g -> c cbar";
392 if (idNew == 5) nameSave =
"g g -> b bbar";
393 if (idNew == 6) nameSave =
"g g -> t tbar";
394 if (idNew == 7) nameSave =
"g g -> b' b'bar";
395 if (idNew == 8) nameSave =
"g g -> t' t'bar";
398 openFracPair = particleDataPtr->resOpenFrac(idNew, -idNew);
406 void Sigma2gg2QQbar::sigmaKin() {
409 double s34Avg = 0.5 * (s3 + s4) - 0.25 * pow2(s3 - s4) / sH;
410 double tHQ = -0.5 * (sH - tH + uH);
411 double uHQ = -0.5 * (sH + tH - uH);
412 double tHQ2 = tHQ * tHQ;
413 double uHQ2 = uHQ * uHQ;
416 double tumHQ = tHQ * uHQ - s34Avg * sH;
417 sigTS = ( uHQ / tHQ - 2.25 * uHQ2 / sH2 + 4.5 * s34Avg * tumHQ
418 / ( sH * tHQ2) + 0.5 * s34Avg * (tHQ + s34Avg) / tHQ2
419 - s34Avg*s34Avg / (sH * tHQ) ) / 6.;
420 sigUS = ( tHQ / uHQ - 2.25 * tHQ2 / sH2 + 4.5 * s34Avg * tumHQ
421 / ( sH * uHQ2) + 0.5 * s34Avg * (uHQ + s34Avg) / uHQ2
422 - s34Avg*s34Avg / (sH * uHQ) ) / 6.;
423 sigSum = sigTS + sigUS;
426 sigma = (M_PI / sH2) * pow2(alpS) * sigSum * openFracPair;
434 void Sigma2gg2QQbar::setIdColAcol() {
437 setId( id1, id2, idNew, -idNew);
440 double sigRand = sigSum * rndmPtr->flat();
441 if (sigRand < sigTS) setColAcol( 1, 2, 2, 3, 1, 0, 0, 3);
442 else setColAcol( 1, 2, 3, 1, 3, 0, 0, 2);
450 double Sigma2gg2QQbar::weightDecay(
Event& process,
int iResBeg,
454 if (idNew == 6 && process[process[iResBeg].mother1()].idAbs() == 6)
455 return weightTopDecay( process, iResBeg, iResEnd);
474 void Sigma2qqbar2QQbar::initProc() {
477 nameSave =
"q qbar -> Q Qbar";
478 if (idNew == 4) nameSave =
"q qbar -> c cbar";
479 if (idNew == 5) nameSave =
"q qbar -> b bbar";
480 if (idNew == 6) nameSave =
"q qbar -> t tbar";
481 if (idNew == 7) nameSave =
"q qbar -> b' b'bar";
482 if (idNew == 8) nameSave =
"q qbar -> t' t'bar";
485 openFracPair = particleDataPtr->resOpenFrac(idNew, -idNew);
493 void Sigma2qqbar2QQbar::sigmaKin() {
496 double s34Avg = 0.5 * (s3 + s4) - 0.25 * pow2(s3 - s4) / sH;
497 double tHQ = -0.5 * (sH - tH + uH);
498 double uHQ = -0.5 * (sH + tH - uH);
499 double tHQ2 = tHQ * tHQ;
500 double uHQ2 = uHQ * uHQ;
503 double sigS = (4./9.) * ((tHQ2 + uHQ2) / sH2 + 2. * s34Avg / sH);
506 sigma = (M_PI / sH2) * pow2(alpS) * sigS * openFracPair;
514 void Sigma2qqbar2QQbar::setIdColAcol() {
517 id3 = (id1 > 0) ? idNew : -idNew;
518 setId( id1, id2, id3, -id3);
521 setColAcol( 1, 0, 0, 2, 1, 0, 0, 2);
522 if (id1 < 0) swapColAcol();
530 double Sigma2qqbar2QQbar::weightDecay(
Event& process,
int iResBeg,
534 if (idNew == 6 && process[process[iResBeg].mother1()].idAbs() == 6)
535 return weightTopDecay( process, iResBeg, iResEnd);
550 void Sigma3gg2ggg::sigmaKin() {
553 Vec4 p1cm( 0., 0., 0.5 * mH, 0.5 * mH);
554 Vec4 p2cm( 0., 0., -0.5 * mH, 0.5 * mH);
555 pp[1][2] = p1cm * p2cm;
556 pp[1][3] = p1cm * p3cm;
557 pp[1][4] = p1cm * p4cm;
558 pp[1][5] = p1cm * p5cm;
559 pp[2][3] = p2cm * p3cm;
560 pp[2][4] = p2cm * p4cm;
561 pp[2][5] = p2cm * p5cm;
562 pp[3][4] = p3cm * p4cm;
563 pp[3][5] = p3cm * p5cm;
564 pp[4][5] = p4cm * p5cm;
565 for (
int i = 1; i < 5; ++i)
566 for (
int j = i + 1; j < 6; ++j) pp[j][i] = pp[i][j];
569 double num1 = cycle(1,2,3,4,5) + cycle(1,2,3,5,4) + cycle(1,2,4,3,5)
570 + cycle(1,2,4,5,3) + cycle(1,2,5,3,4) + cycle(1,2,5,4,3)
571 + cycle(1,3,2,4,5) + cycle(1,3,2,5,4) + cycle(1,3,4,2,5)
572 + cycle(1,3,5,2,4) + cycle(1,4,2,3,5) + cycle(1,4,3,2,5);
573 double num2 = pow4(pp[1][2]) + pow4(pp[1][3]) + pow4(pp[1][4])
574 + pow4(pp[1][5]) + pow4(pp[2][3]) + pow4(pp[2][4])
575 + pow4(pp[2][5]) + pow4(pp[3][4]) + pow4(pp[3][5])
577 double den = pp[1][2] * pp[1][3] * pp[1][4] * pp[1][5] * pp[2][3]
578 * pp[2][4] * pp[2][5] * pp[3][4] * pp[3][5] * pp[4][5];
582 sigma = pow3(4. * M_PI * alpS) * (27./16.) * num1 * num2 / den;
590 void Sigma3gg2ggg::setIdColAcol() {
593 setId( id1, id2, 21, 21, 21);
606 setColAcol( 1, 2, 2, 3, 1, 4, 4, 5, 5, 3);
618 void Sigma3qqbar2ggg::sigmaKin() {
621 pCM[0] = Vec4( 0., 0., 0.5 * mH, 0.5 * mH);
622 pCM[1] = Vec4( 0., 0., -0.5 * mH, 0.5 * mH);
638 inline double Sigma3qqbar2ggg::m2Calc() {
641 double sHnow = (pCM[0] + pCM[1]).m2Calc();
642 double sHhalf = sH / 2.;
647 a[0] = pCM[0] * pCM[2];
648 a[1] = pCM[0] * pCM[3];
649 a[2] = pCM[0] * pCM[4];
650 b[0] = pCM[1] * pCM[2];
651 b[1] = pCM[1] * pCM[3];
652 b[2] = pCM[1] * pCM[4];
654 pp[0][1] = pCM[2] * pCM[3];
655 pp[1][2] = pCM[3] * pCM[4];
656 pp[2][0] = pCM[4] * pCM[2];
659 ab[0][1] = a[0] * b[1] + a[1] * b[0];
660 ab[1][2] = a[1] * b[2] + a[2] * b[1];
661 ab[2][0] = a[2] * b[0] + a[0] * b[2];
664 double num1 = a[0] * b[0] * (a[0] * a[0] + b[0] * b[0]) +
665 a[1] * b[1] * (a[1] * a[1] + b[1] * b[1]) +
666 a[2] * b[2] * (a[2] * a[2] + b[2] * b[2]);
667 double den1 = a[0] * a[1] * a[2] * b[0] * b[1] * b[2];
668 double num2 = - ( ab[0][1] / pp[0][1] )
669 - ( ab[1][2] / pp[1][2] )
670 - ( ab[2][0] / pp[2][0] );
671 double num3 = a[2] * b[2] * ab[0][1] / (pp[1][2] * pp[2][0] ) +
672 a[0] * b[0] * ab[1][2] / (pp[2][0] * pp[0][1] ) +
673 a[1] * b[1] * ab[2][0] / (pp[0][1] * pp[1][2] );
676 return pow3(4. * M_PI * alpS) * (8. / 324.) * (num1 / den1) *
677 ( sHhalf + 9. * (sHhalf + num2) + (2. * 81. / sHnow) * num3 );
685 void Sigma3qqbar2ggg::setIdColAcol(){
688 setId( id1, id2, 21, 21, 21);
691 setColAcol( 1, 0, 0, 2, 1, 3, 3, 4, 4, 2);
692 if (id1 < 0) swapColAcol();
699 inline void Sigma3qqbar2ggg::mapFinal() {
701 case 0: pCM[2] = p3cm; pCM[3] = p4cm; pCM[4] = p5cm;
break;
702 case 1: pCM[2] = p3cm; pCM[3] = p5cm; pCM[4] = p4cm;
break;
703 case 2: pCM[2] = p4cm; pCM[3] = p3cm; pCM[4] = p5cm;
break;
704 case 3: pCM[2] = p4cm; pCM[3] = p5cm; pCM[4] = p3cm;
break;
705 case 4: pCM[2] = p5cm; pCM[3] = p3cm; pCM[4] = p4cm;
break;
706 case 5: pCM[2] = p5cm; pCM[3] = p4cm; pCM[4] = p3cm;
break;
722 void Sigma3qg2qgg::sigmaKin() {
728 for (
int i = 0; i < 2; i++) {
731 pCM[0] = Vec4( 0., 0., 0.5 * mH, 0.5 * mH);
732 pCM[1] = Vec4( 0., 0., -0.5 * mH, 0.5 * mH);
736 swap(pCM[i], pCM[2]);
743 sigma[i] = 3. * (3. / 8.) * m2Calc();
754 double Sigma3qg2qgg::sigmaHat() {
756 return (id1 == 21) ? sigma[0] : sigma[1];
763 void Sigma3qg2qgg::setIdColAcol(){
765 int qIdx = config / 2;
766 int idTmp[3] = { 21, 21, 21 };
767 idTmp[qIdx] = (id1 == 21) ? id2 : id1;
768 setId( id1, id2, idTmp[0], idTmp[1], idTmp[2]);
771 if (qIdx == 0) setColAcol(1, 0, 2, 1, 4, 0, 3, 4, 2, 3);
772 else if (qIdx == 1) setColAcol(1, 0, 2, 1, 3, 4, 4, 0, 2, 3);
773 else setColAcol(1, 0, 2, 1, 3, 4, 2, 3, 4, 0);
776 swap( colSave[1], colSave[2]);
777 swap(acolSave[1], acolSave[2]);
780 if (id1 < 0 || id2 < 0) swapColAcol();
794 void Sigma3gg2qqbarg::initProc() {
797 nQuarkNew = settingsPtr->mode(
"HardQCD:nQuarkNew");
805 void Sigma3gg2qqbarg::sigmaKin() {
808 pCM[0] = Vec4( 0., 0., 0.5 * mH, 0.5 * mH);
809 pCM[1] = Vec4( 0., 0., -0.5 * mH, 0.5 * mH);
816 swap(pCM[0], pCM[2]);
817 swap(pCM[1], pCM[3]);
823 sigma = 6. * nQuarkNew * (3. / 8.) * (3. / 8.) * m2Calc();
831 void Sigma3gg2qqbarg::setIdColAcol(){
834 int idNew = 1 + int( nQuarkNew * rndmPtr->flat() );
838 case 0: id3 = idNew; id4 = -idNew; id5 = 21;
break;
839 case 1: id3 = idNew; id4 = 21; id5 = -idNew;
break;
840 case 2: id3 = -idNew; id4 = idNew; id5 = 21;
break;
841 case 3: id3 = 21; id4 = idNew; id5 = -idNew;
break;
842 case 4: id3 = -idNew; id4 = 21; id5 = idNew;
break;
843 case 5: id3 = 21; id4 = -idNew; id5 = idNew;
break;
845 setId(id1, id2, id3, id4, id5);
849 case 0: setColAcol( 1, 2, 2, 3, 4, 0, 0, 3, 1, 4 );
break;
850 case 1: setColAcol( 1, 2, 2, 3, 4, 0, 1, 4, 0, 3 );
break;
851 case 2: setColAcol( 1, 2, 2, 3, 0, 3, 4, 0, 1, 4 );
break;
852 case 3: setColAcol( 1, 2, 2, 3, 1, 4, 4, 0, 0, 3 );
break;
853 case 4: setColAcol( 1, 2, 2, 3, 0, 3, 1, 4, 4, 0 );
break;
854 case 5: setColAcol( 1, 2, 2, 3, 1, 4, 0, 3, 4, 0 );
break;
868 void Sigma3qq2qqgDiff::sigmaKin() {
873 pCM[0] = Vec4( 0., 0., 0.5 * mH, 0.5 * mH);
874 pCM[1] = Vec4( 0., 0., -0.5 * mH, 0.5 * mH);
881 sigma = 6. * m2Calc();
888 inline double Sigma3qq2qqgDiff::m2Calc() {
891 s = (pCM[0] + pCM[1]).m2Calc();
892 t = (pCM[0] - pCM[2]).m2Calc();
893 u = (pCM[0] - pCM[3]).m2Calc();
894 up = (pCM[1] - pCM[2]).m2Calc();
895 sp = (pCM[2] + pCM[3]).m2Calc();
896 tp = (pCM[1] - pCM[3]).m2Calc();
899 double num1 = (s * s + sp * sp + u * u + up * up) / (t * tp);
900 double den1 = (pCM[0] * pCM[4]) * (pCM[1] * pCM[4]) *
901 (pCM[2] * pCM[4]) * (pCM[3] * pCM[4]);
902 double num2 = (u + up) * (s * sp + t * tp - u * up) +
903 u * (s * t + sp * tp) + up * (s * tp + sp * t);
904 double num3 = (s + sp) * (s * sp - t * tp - u * up) +
905 2. * t * tp * (u + up) + 2. * u * up * (t + tp);
909 return (1. / 8.) * pow3(4. * M_PI * alpS) * num1 / den1 *
910 ( (16. / 27.) * num2 - (2. / 27.) * num3 );
918 double Sigma3qq2qqgDiff::sigmaHat() {
920 if (abs(id1) == abs(id2))
return 0.;
928 void Sigma3qq2qqgDiff::setIdColAcol(){
932 case 0: id3 = id1; id4 = id2; id5 = 21;
break;
933 case 1: id3 = id1; id4 = 21; id5 = id2;
break;
934 case 2: id3 = id2; id4 = id1; id5 = 21;
break;
935 case 3: id3 = 21; id4 = id1; id5 = id2;
break;
936 case 4: id3 = id2; id4 = 21; id5 = id1;
break;
937 case 5: id3 = 21; id4 = id2; id5 = id1;
break;
939 setId(id1, id2, id3, id4, id5);
944 cols[0][0] = 1; cols[0][1] = 0;
945 cols[2][0] = 1; cols[2][1] = 0;
947 cols[0][0] = 0; cols[0][1] = 1;
948 cols[2][0] = 0; cols[2][1] = 1;
951 cols[1][0] = 2; cols[1][1] = 0;
952 cols[3][0] = 3; cols[3][1] = 0;
953 cols[4][0] = 2; cols[4][1] = 3;
955 cols[1][0] = 0; cols[1][1] = 2;
956 cols[3][0] = 0; cols[3][1] = 3;
957 cols[4][0] = 3; cols[4][1] = 2;
960 int i3 = 0, i4 = 0, i5 = 0;
962 case 0: i3 = 2; i4 = 3; i5 = 4;
break;
963 case 1: i3 = 2; i4 = 4; i5 = 3;
break;
964 case 2: i3 = 3; i4 = 2; i5 = 4;
break;
965 case 3: i3 = 4; i4 = 2; i5 = 3;
break;
966 case 4: i3 = 3; i4 = 4; i5 = 2;
break;
967 case 5: i3 = 4; i4 = 3; i5 = 2;
break;
970 setColAcol(cols[0][0], cols[0][1], cols[1][0], cols[1][1],
971 cols[i3][0], cols[i3][1], cols[i4][0], cols[i4][1],
972 cols[i5][0], cols[i5][1]);
980 inline void Sigma3qq2qqgDiff::mapFinal() {
982 case 0: pCM[2] = p3cm; pCM[3] = p4cm; pCM[4] = p5cm;
break;
983 case 1: pCM[2] = p3cm; pCM[3] = p5cm; pCM[4] = p4cm;
break;
984 case 2: pCM[2] = p4cm; pCM[3] = p3cm; pCM[4] = p5cm;
break;
985 case 3: pCM[2] = p4cm; pCM[3] = p5cm; pCM[4] = p3cm;
break;
986 case 4: pCM[2] = p5cm; pCM[3] = p3cm; pCM[4] = p4cm;
break;
987 case 5: pCM[2] = p5cm; pCM[3] = p4cm; pCM[4] = p3cm;
break;
1002 void Sigma3qqbar2qqbargDiff::initProc() {
1005 nQuarkNew = settingsPtr->mode(
"HardQCD:nQuarkNew");
1013 void Sigma3qqbar2qqbargDiff::sigmaKin() {
1023 pCM[0] = Vec4( 0., 0., 0.5 * mH, 0.5 * mH);
1024 pCM[1] = Vec4( 0., 0., -0.5 * mH, 0.5 * mH);
1030 swap(pCM[1], pCM[2]);
1038 sigma = 6. * (nQuarkNew - 1) * 2. * m2Calc();
1046 void Sigma3qqbar2qqbargDiff::setIdColAcol(){
1049 int idNew = 1 + int( (nQuarkNew - 1) * rndmPtr->flat() );
1050 if (idNew >= abs(id1)) ++idNew;
1053 if (id1 > 0) idNew = -idNew;
1057 case 0: id3 = idNew; id4 = -idNew; id5 = 21;
break;
1058 case 1: id3 = idNew; id4 = 21; id5 = -idNew;
break;
1059 case 2: id3 = -idNew; id4 = idNew; id5 = 21;
break;
1060 case 3: id3 = 21; id4 = idNew; id5 = -idNew;
break;
1061 case 4: id3 = -idNew; id4 = 21; id5 = idNew;
break;
1062 case 5: id3 = 21; id4 = -idNew; id5 = idNew;
break;
1064 setId(id1, id2, id3, id4, id5);
1068 cols[0][0] = 1; cols[0][1] = 0;
1069 cols[1][0] = 0; cols[1][1] = 2;
1070 cols[2][0] = 0; cols[2][1] = 3;
1071 cols[3][0] = 1; cols[3][1] = 0;
1072 cols[4][0] = 3; cols[4][1] = 2;
1074 int i3 = 0, i4 = 0, i5 = 0;
1076 case 0: i3 = 2; i4 = 3; i5 = 4;
break;
1077 case 1: i3 = 2; i4 = 4; i5 = 3;
break;
1078 case 2: i3 = 3; i4 = 2; i5 = 4;
break;
1079 case 3: i3 = 4; i4 = 2; i5 = 3;
break;
1080 case 4: i3 = 3; i4 = 4; i5 = 2;
break;
1081 case 5: i3 = 4; i4 = 3; i5 = 2;
break;
1083 setColAcol(cols[0][0], cols[0][1], cols[1][0], cols[1][1],
1084 cols[i3][0], cols[i3][1], cols[i4][0], cols[i4][1],
1085 cols[i5][0], cols[i5][1]);
1087 if (id1 < 0) swapColAcol();
1102 void Sigma3qg2qqqbarDiff::initProc() {
1105 nQuarkNew = settingsPtr->mode(
"HardQCD:nQuarkNew");
1113 void Sigma3qg2qqqbarDiff::sigmaKin() {
1119 for (
int i = 0; i < 2; i++) {
1122 pCM[0] = Vec4( 0., 0., 0.5 * mH, 0.5 * mH);
1123 pCM[1] = Vec4( 0., 0., -0.5 * mH, 0.5 * mH);
1127 swap(pCM[i], pCM[4]);
1135 sigma[i] = -6. * (3. / 8.) * (nQuarkNew - 1) * m2Calc();
1145 double Sigma3qg2qqqbarDiff::sigmaHat() {
1147 return (id1 == 21) ? sigma[0] : sigma[1];
1154 void Sigma3qg2qqqbarDiff::setIdColAcol(){
1156 int sigmaIdx = (id1 == 21) ? 0 : 1;
1157 int idIn = (id1 == 21) ? id2 : id1;
1158 int idNew = 1 + int( (nQuarkNew - 1) * rndmPtr->flat() );
1159 if (idNew >= abs(idIn)) ++idNew;
1162 int id3Tmp = idIn, id4Tmp = idNew, id5Tmp = -idNew;
1163 if (idIn < 0) swap(id4Tmp, id5Tmp);
1166 if (sigmaIdx == 0) swap(id3Tmp, id4Tmp);
1169 case 0: id3 = id3Tmp; id4 = id4Tmp; id5 = id5Tmp;
break;
1170 case 1: id3 = id3Tmp; id4 = id5Tmp; id5 = id4Tmp;
break;
1171 case 2: id3 = id4Tmp; id4 = id3Tmp; id5 = id5Tmp;
break;
1172 case 3: id3 = id5Tmp; id4 = id3Tmp; id5 = id4Tmp;
break;
1173 case 4: id3 = id4Tmp; id4 = id5Tmp; id5 = id3Tmp;
break;
1174 case 5: id3 = id5Tmp; id4 = id4Tmp; id5 = id3Tmp;
break;
1176 setId(id1, id2, id3, id4, id5);
1182 cols[0][0] = 1; cols[0][1] = 2;
1184 cols[1][0] = 3; cols[1][1] = 0;
1185 cols[2][0] = 1; cols[2][1] = 0;
1186 cols[3][0] = 3; cols[3][1] = 0;
1187 cols[4][0] = 0; cols[4][1] = 2;
1189 cols[1][0] = 0; cols[1][1] = 3;
1190 cols[2][0] = 0; cols[2][1] = 2;
1191 cols[3][0] = 0; cols[3][1] = 3;
1192 cols[4][0] = 1; cols[4][1] = 0;
1196 swap(cols[0][0], cols[1][0]);
1197 swap(cols[0][1], cols[1][1]);
1200 int i3 = 0, i4 = 0, i5 = 0;
1201 if (sigmaIdx == 0) {
1203 case 0: i3 = 3; i4 = 2; i5 = 4;
break;
1204 case 1: i3 = 3; i4 = 4; i5 = 2;
break;
1205 case 2: i3 = 2; i4 = 3; i5 = 4;
break;
1206 case 3: i3 = 4; i4 = 3; i5 = 2;
break;
1207 case 4: i3 = 2; i4 = 4; i5 = 3;
break;
1208 case 5: i3 = 4; i4 = 2; i5 = 3;
break;
1212 case 0: i3 = 2; i4 = 3; i5 = 4;
break;
1213 case 1: i3 = 2; i4 = 4; i5 = 3;
break;
1214 case 2: i3 = 3; i4 = 2; i5 = 4;
break;
1215 case 3: i3 = 4; i4 = 2; i5 = 3;
break;
1216 case 4: i3 = 3; i4 = 4; i5 = 2;
break;
1217 case 5: i3 = 4; i4 = 3; i5 = 2;
break;
1220 setColAcol(cols[0][0], cols[0][1], cols[1][0], cols[1][1],
1221 cols[i3][0], cols[i3][1], cols[i4][0], cols[i4][1],
1222 cols[i5][0], cols[i5][1]);
1234 void Sigma3qq2qqgSame::sigmaKin() {
1238 pCM[0] = Vec4( 0., 0., 0.5 * mH, 0.5 * mH);
1239 pCM[1] = Vec4( 0., 0., -0.5 * mH, 0.5 * mH);
1248 sigma = 3. * m2Calc();
1256 inline double Sigma3qq2qqgSame::m2Calc() {
1259 s = (pCM[0] + pCM[1]).m2Calc();
1260 t = (pCM[0] - pCM[2]).m2Calc();
1261 u = (pCM[0] - pCM[3]).m2Calc();
1262 sp = (pCM[2] + pCM[3]).m2Calc();
1263 tp = (pCM[1] - pCM[3]).m2Calc();
1264 up = (pCM[1] - pCM[2]).m2Calc();
1274 double den1 = (pCM[0] * pCM[4]) * (pCM[1] * pCM[4]) *
1275 (pCM[2] * pCM[4]) * (pCM[3] * pCM[4]);
1277 double fac1 = s * (t * u + tp * up) + sp * (t * up + tp * u);
1278 double fac2 = ssp - ttp - uup;
1279 double fac3 = 2. * (ttp * u_up + uup * t_tp);
1281 double num1 = u_up * (ssp + ttp - uup) + fac1;
1282 double num2 = s_sp * fac2 + fac3;
1283 double num3 = (s * s + sp * sp + u * u + up * up) / (t * tp);
1285 double num4 = t_tp * (ssp - ttp + uup) + fac1;
1286 double num5 = (s * s + sp * sp + t * t + tp * tp) / (u * up);
1288 double num6 = s_sp * fac2 - fac3 - 2. * fac1;
1289 double num7 = (s * s + sp * sp) * fac2;
1290 double den7 = (ttp * uup);
1296 return (1. / 8.) * pow3(4. * M_PI * alpS) *
1297 ( ( (16. / 27.) * num1 - (2. / 27.) * num2 ) * num3 +
1298 ( (16. / 27.) * num4 - (2. / 27.) * num2 ) * num5 +
1299 ( (10. / 81.) * num2 + (8. / 81.) * num6 ) *
1300 ( num7 / den7 ) ) / den1;
1308 double Sigma3qq2qqgSame::sigmaHat() {
1310 if (id1 != id2)
return 0.;
1318 void Sigma3qq2qqgSame::setIdColAcol(){
1323 case 3:
case 5: gIdx = 0;
break;
1324 case 1:
case 4: gIdx = 1;
break;
1325 case 0:
case 2: gIdx = 2;
break;
1329 int idTmp[3] = { id1, id1, id1 };
1331 setId(id1, id2, idTmp[0], idTmp[1], idTmp[2]);
1334 setColAcol(1, 0, 2, 0, 1, 0, 3, 0, 2, 3);
1336 swap( colSave[5], colSave[gIdx + 3]);
1337 swap(acolSave[5], acolSave[gIdx + 3]);
1339 if (id1 < 0) swapColAcol();
1346 inline void Sigma3qq2qqgSame::mapFinal() {
1348 case 0: pCM[2] = p3cm; pCM[3] = p4cm; pCM[4] = p5cm;
break;
1349 case 1: pCM[2] = p3cm; pCM[3] = p5cm; pCM[4] = p4cm;
break;
1350 case 2: pCM[2] = p4cm; pCM[3] = p3cm; pCM[4] = p5cm;
break;
1351 case 3: pCM[2] = p4cm; pCM[3] = p5cm; pCM[4] = p3cm;
break;
1352 case 4: pCM[2] = p5cm; pCM[3] = p3cm; pCM[4] = p4cm;
break;
1353 case 5: pCM[2] = p5cm; pCM[3] = p4cm; pCM[4] = p3cm;
break;
1367 void Sigma3qqbar2qqbargSame::sigmaKin() {
1370 pCM[0] = Vec4( 0., 0., 0.5 * mH, 0.5 * mH);
1371 pCM[1] = Vec4( 0., 0., -0.5 * mH, 0.5 * mH);
1378 swap(pCM[1], pCM[3]);
1384 sigma = 6. * m2Calc();
1392 void Sigma3qqbar2qqbargSame::setIdColAcol(){
1395 case 0: id3 = id1; id4 = id2; id5 = 21;
break;
1396 case 1: id3 = id1; id4 = 21; id5 = id2;
break;
1397 case 2: id3 = id2; id4 = id1; id5 = 21;
break;
1398 case 3: id3 = 21; id4 = id1; id5 = id2;
break;
1399 case 4: id3 = id2; id4 = 21; id5 = id1;
break;
1400 case 5: id3 = 21; id4 = id2; id5 = id1;
break;
1402 setId(id1, id2, id3, id4, id5);
1406 cols[0][0] = 1; cols[0][1] = 0;
1407 cols[1][0] = 0; cols[1][1] = 2;
1408 cols[2][0] = 1; cols[2][1] = 0;
1409 cols[3][0] = 0; cols[3][1] = 3;
1410 cols[4][0] = 3; cols[4][1] = 2;
1412 int i3 = 0, i4 = 0, i5 = 0;
1414 case 0: i3 = 2; i4 = 3; i5 = 4;
break;
1415 case 1: i3 = 2; i4 = 4; i5 = 3;
break;
1416 case 2: i3 = 3; i4 = 2; i5 = 4;
break;
1417 case 3: i3 = 4; i4 = 2; i5 = 3;
break;
1418 case 4: i3 = 3; i4 = 4; i5 = 2;
break;
1419 case 5: i3 = 4; i4 = 3; i5 = 2;
break;
1421 setColAcol(cols[0][0], cols[0][1], cols[1][0], cols[1][1],
1422 cols[i3][0], cols[i3][1], cols[i4][0], cols[i4][1],
1423 cols[i5][0], cols[i5][1]);
1425 if (id1 < 0) swapColAcol();
1439 void Sigma3qg2qqqbarSame::sigmaKin() {
1445 for (
int i = 0; i < 2; i++) {
1448 pCM[0] = Vec4( 0., 0., 0.5 * mH, 0.5 * mH);
1449 pCM[1] = Vec4( 0., 0., -0.5 * mH, 0.5 * mH);
1453 swap(pCM[i], pCM[4]);
1460 sigma[i] = -3. * (3. / 8.) * m2Calc();
1470 double Sigma3qg2qqqbarSame::sigmaHat() {
1472 return (id1 == 21) ? sigma[0] : sigma[1];
1479 void Sigma3qg2qqqbarSame::setIdColAcol(){
1482 int idIn = (id1 == 21) ? id2 : id1;
1486 case 0: id3 = idIn; id4 = idIn; id5 = -idIn;
break;
1487 case 1: id3 = idIn; id4 = -idIn; id5 = idIn;
break;
1488 case 2: id3 = idIn; id4 = idIn; id5 = -idIn;
break;
1489 case 3: id3 = -idIn; id4 = idIn; id5 = idIn;
break;
1490 case 4: id3 = idIn; id4 = -idIn; id5 = idIn;
break;
1491 case 5: id3 = -idIn; id4 = idIn; id5 = idIn;
break;
1493 setId(id1, id2, id3, id4, id5);
1499 cols[0][0] = 1; cols[0][1] = 2;
1501 cols[1][0] = 3; cols[1][1] = 0;
1502 cols[2][0] = 1; cols[2][1] = 0;
1503 cols[3][0] = 3; cols[3][1] = 0;
1504 cols[4][0] = 0; cols[4][1] = 2;
1506 cols[1][0] = 0; cols[1][1] = 3;
1507 cols[2][0] = 0; cols[2][1] = 2;
1508 cols[3][0] = 0; cols[3][1] = 3;
1509 cols[4][0] = 1; cols[4][1] = 0;
1513 swap(cols[0][0], cols[1][0]);
1514 swap(cols[0][1], cols[1][1]);
1517 int i3 = 0, i4 = 0, i5 = 0;
1519 case 0: i3 = 2; i4 = 3; i5 = 4;
break;
1520 case 1: i3 = 2; i4 = 4; i5 = 3;
break;
1521 case 2: i3 = 3; i4 = 2; i5 = 4;
break;
1522 case 3: i3 = 4; i4 = 2; i5 = 3;
break;
1523 case 4: i3 = 3; i4 = 4; i5 = 2;
break;
1524 case 5: i3 = 4; i4 = 3; i5 = 2;
break;
1526 setColAcol(cols[0][0], cols[0][1], cols[1][0], cols[1][1],
1527 cols[i3][0], cols[i3][1], cols[i4][0], cols[i4][1],
1528 cols[i5][0], cols[i5][1]);