9 #include "SigmaProcess.h"
24 const double SigmaProcess::CONVERT2MB = 0.389380;
27 const double SigmaProcess::MASSMARGIN = 0.1;
31 const double SigmaProcess::COMPRELERR = 1e-10;
32 const int SigmaProcess::NCOMPSTEP = 10;
38 void SigmaProcess::init(Info* infoPtrIn, Settings* settingsPtrIn,
39 ParticleData* particleDataPtrIn, Rndm* rndmPtrIn, BeamParticle* beamAPtrIn,
40 BeamParticle* beamBPtrIn, Couplings* couplingsPtrIn,
41 SigmaTotal* sigmaTotPtrIn, SusyLesHouches* slhaPtrIn) {
45 settingsPtr = settingsPtrIn;
46 particleDataPtr = particleDataPtrIn;
48 beamAPtr = beamAPtrIn;
49 beamBPtr = beamBPtrIn;
50 couplingsPtr = couplingsPtrIn;
51 sigmaTotPtr = sigmaTotPtrIn;
55 idA = (beamAPtr > 0) ? beamAPtr->id() : 0;
56 idB = (beamBPtr > 0) ? beamBPtr->id() : 0;
57 mA = (beamAPtr > 0) ? beamAPtr->m() : 0.;
58 mB = (beamBPtr > 0) ? beamBPtr->m() : 0.;
59 isLeptonA = (beamAPtr > 0) ? beamAPtr->isLepton() :
false;
60 isLeptonB = (beamBPtr > 0) ? beamBPtr->isLepton() :
false;
61 hasLeptonBeams = isLeptonA || isLeptonB;
64 Kfactor = settingsPtr->parm(
"SigmaProcess:Kfactor");
67 nQuarkIn = settingsPtr->mode(
"PDFinProcess:nQuarkIn");
70 mcME = (settingsPtr->flag(
"SigmaProcess:cMassiveME"))
71 ? particleDataPtr->m0(4) : 0.;
72 mbME = (settingsPtr->flag(
"SigmaProcess:bMassiveME"))
73 ? particleDataPtr->m0(5) : 0.;
74 mmuME = (settingsPtr->flag(
"SigmaProcess:muMassiveME"))
75 ? particleDataPtr->m0(13) : 0.;
76 mtauME = (settingsPtr->flag(
"SigmaProcess:tauMassiveME"))
77 ? particleDataPtr->m0(15) : 0.;
80 renormScale1 = settingsPtr->mode(
"SigmaProcess:renormScale1");
81 renormScale2 = settingsPtr->mode(
"SigmaProcess:renormScale2");
82 renormScale3 = settingsPtr->mode(
"SigmaProcess:renormScale3");
83 renormScale3VV = settingsPtr->mode(
"SigmaProcess:renormScale3VV");
84 renormMultFac = settingsPtr->parm(
"SigmaProcess:renormMultFac");
85 renormFixScale = settingsPtr->parm(
"SigmaProcess:renormFixScale");
88 factorScale1 = settingsPtr->mode(
"SigmaProcess:factorScale1");
89 factorScale2 = settingsPtr->mode(
"SigmaProcess:factorScale2");
90 factorScale3 = settingsPtr->mode(
"SigmaProcess:factorScale3");
91 factorScale3VV = settingsPtr->mode(
"SigmaProcess:factorScale3VV");
92 factorMultFac = settingsPtr->parm(
"SigmaProcess:factorMultFac");
93 factorFixScale = settingsPtr->parm(
"SigmaProcess:factorFixScale");
96 higgsH1parity = settingsPtr->mode(
"HiggsH1:parity");
97 higgsH1eta = settingsPtr->parm(
"HiggsH1:etaParity");
98 higgsH2parity = settingsPtr->mode(
"HiggsH2:parity");
99 higgsH2eta = settingsPtr->parm(
"HiggsH2:etaParity");
100 higgsA3parity = settingsPtr->mode(
"HiggsA3:parity");
101 higgsA3eta = settingsPtr->parm(
"HiggsA3:etaParity");
104 if (!settingsPtr->flag(
"Higgs:useBSM")){
117 bool SigmaProcess::initFlux() {
125 string fluxType = inFlux();
128 if (fluxType ==
"gg") {
135 else if (fluxType ==
"qg") {
136 for (
int i = -nQuarkIn; i <= nQuarkIn; ++i) {
137 int idNow = (i == 0) ? 21 : i;
141 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
149 else if (fluxType ==
"qq") {
150 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
155 for (
int id1Now = -nQuarkIn; id1Now <= nQuarkIn; ++id1Now)
157 for (
int id2Now = -nQuarkIn; id2Now <= nQuarkIn; ++id2Now)
159 addPair(id1Now, id2Now);
163 else if (fluxType ==
"qqbarSame") {
164 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
169 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
171 addPair(idNow, -idNow);
175 else if (fluxType ==
"ff") {
177 if ( isLeptonA && isLeptonB ) {
182 }
else if ( isLeptonA ) {
184 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
190 }
else if ( isLeptonB ) {
192 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
199 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
204 for (
int id1Now = -nQuarkIn; id1Now <= nQuarkIn; ++id1Now)
206 for (
int id2Now = -nQuarkIn; id2Now <= nQuarkIn; ++id2Now)
208 addPair(id1Now, id2Now);
213 else if (fluxType ==
"ffbarSame") {
215 if ( idA + idB == 0 && isLeptonA ) {
221 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
226 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
228 addPair(idNow, -idNow);
233 else if (fluxType ==
"ffbarChg") {
235 if ( isLeptonA && isLeptonB && abs( particleDataPtr->chargeType(idA)
236 + particleDataPtr->chargeType(idB) ) == 3 ) {
242 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
247 for (
int id1Now = -nQuarkIn; id1Now <= nQuarkIn; ++id1Now)
249 for (
int id2Now = -nQuarkIn; id2Now <= nQuarkIn; ++id2Now)
250 if (id2Now != 0 && id1Now * id2Now < 0
251 && (abs(id1Now) + abs(id2Now))%2 == 1) addPair(id1Now, id2Now);
256 else if (fluxType ==
"ffbar") {
258 if (isLeptonA && isLeptonB && idA * idB < 0) {
264 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
269 for (
int id1Now = -nQuarkIn; id1Now <= nQuarkIn; ++id1Now)
271 for (
int id2Now = -nQuarkIn; id2Now <= nQuarkIn; ++id2Now)
272 if (id2Now != 0 && id1Now * id2Now < 0)
273 addPair(id1Now, id2Now);
278 else if (fluxType ==
"fgm") {
284 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
295 for (
int idNow = -nQuarkIn; idNow <= nQuarkIn; ++idNow)
307 else if (fluxType ==
"ggm") {
317 else if (fluxType ==
"gmgm") {
325 infoPtr->errorMsg(
"Error in SigmaProcess::initFlux: "
326 "unrecognized inFlux type", fluxType);
337 double SigmaProcess::sigmaPDF() {
340 for (
int j = 0; j < sizeBeamA(); ++j)
341 inBeamA[j].pdf = beamAPtr->xfHard( inBeamA[j].id, x1Save, Q2FacSave);
342 for (
int j = 0; j < sizeBeamB(); ++j)
343 inBeamB[j].pdf = beamBPtr->xfHard( inBeamB[j].id, x2Save, Q2FacSave);
347 for (
int i = 0; i < sizePair(); ++i) {
350 inPair[i].pdfSigma = Kfactor
351 * sigmaHatWrap(inPair[i].idA, inPair[i].idB);
354 for (
int j = 0; j < sizeBeamA(); ++j)
355 if (inPair[i].idA == inBeamA[j].
id) {
356 inPair[i].pdfA = inBeamA[j].pdf;
357 inPair[i].pdfSigma *= inBeamA[j].pdf;
360 for (
int j = 0; j < sizeBeamB(); ++j)
361 if (inPair[i].idB == inBeamB[j].
id) {
362 inPair[i].pdfB = inBeamB[j].pdf;
363 inPair[i].pdfSigma *= inBeamB[j].pdf;
368 sigmaSumSave += inPair[i].pdfSigma;
380 void SigmaProcess::pickInState(
int id1in,
int id2in) {
383 if (id1in != 0 && id2in != 0) {
389 double sigmaRand = sigmaSumSave * rndmPtr->flat();
390 for (
int i = 0; i < sizePair(); ++i) {
391 sigmaRand -= inPair[i].pdfSigma;
392 if (sigmaRand <= 0.) {
395 pdf1Save = inPair[i].pdfA;
396 pdf2Save = inPair[i].pdfB;
407 bool SigmaProcess::setupForMEin() {
414 int id1Tmp = abs(id1);
415 if (id1Tmp == 4) mME[0] = mcME;
416 if (id1Tmp == 5) mME[0] = mbME;
417 if (id1Tmp == 13) mME[0] = mmuME;
418 if (id1Tmp == 15) mME[0] = mtauME;
420 int id2Tmp = abs(id2);
421 if (id2Tmp == 4) mME[1] = mcME;
422 if (id2Tmp == 5) mME[1] = mbME;
423 if (id2Tmp == 13) mME[1] = mmuME;
424 if (id2Tmp == 15) mME[1] = mtauME;
427 if (mME[0] + mME[1] >= mH) {
434 if (mME[0] == 0. && mME[1] == 0.) {
435 pME[0] = 0.5 * mH * Vec4( 0., 0., 1., 1.);
436 pME[1] = 0.5 * mH * Vec4( 0., 0., -1., 1.);
438 double e0 = 0.5 * (mH * mH + mME[0] * mME[0] - mME[1] * mME[1]) / mH;
439 double pz0 = sqrtpos(e0 * e0 - mME[0] * mME[0]);
440 pME[0] = Vec4( 0., 0., pz0, e0);
441 pME[1] = Vec4( 0., 0., -pz0, mH - e0);
453 double SigmaProcess::weightTopDecay(
Event& process,
int iResBeg,
457 if (iResEnd - iResBeg != 1)
return 1.;
459 int iB2 = iResBeg + 1;
460 int idW1 = process[iW1].idAbs();
461 int idB2 = process[iB2].idAbs();
466 if (idW1 != 24 || (idB2 != 1 && idB2 != 3 && idB2 != 5))
return 1.;
467 int iT = process[iW1].mother1();
468 if (iT <= 0 || process[iT].idAbs() != 6)
return 1.;
471 int iF = process[iW1].daughter1();
472 int iFbar = process[iW1].daughter2();
473 if (iFbar - iF != 1)
return 1.;
474 if (process[iT].
id() * process[iF].
id() < 0) swap(iF, iFbar);
477 double wt = (process[iT].p() * process[iFbar].p())
478 * (process[iF].p() * process[iB2].p());
479 double wtMax = ( pow4(process[iT].m()) - pow4(process[iW1].m()) ) / 8.;
491 double SigmaProcess::weightHiggsDecay(
Event& process,
int iResBeg,
495 if (iResEnd - iResBeg != 1)
return 1.;
497 int iZW2 = iResBeg + 1;
498 int idZW1 = process[iZW1].id();
499 int idZW2 = process[iZW2].id();
504 if ( (idZW1 != 23 || idZW2 != 23) && (idZW1 != 24 || idZW2 != -24) )
508 int iH = process[iZW1].mother1();
509 if (iH <= 0)
return 1.;
510 int idH = process[iH].id();
511 if (idH != 25 && idH != 35 && idH !=36)
return 1.;
514 int higgsParity = higgsH1parity;
515 double higgsEta = higgsH1eta;
517 higgsParity = higgsH2parity;
518 higgsEta = higgsH2eta;
519 }
else if (idH == 36) {
520 higgsParity = higgsA3parity;
521 higgsEta = higgsA3eta;
525 if (higgsParity == 0)
return 1.;
528 double wtMax = pow4(process[iH].m());
532 int i3 = process[iZW1].daughter1();
533 int i4 = process[iZW1].daughter2();
534 if (process[i3].
id() < 0) swap( i3, i4);
535 int i5 = process[iZW2].daughter1();
536 int i6 = process[iZW2].daughter2();
537 if (process[i5].
id() < 0) swap( i5, i6);
540 double p35 = 2. * process[i3].p() * process[i5].p();
541 double p36 = 2. * process[i3].p() * process[i6].p();
542 double p45 = 2. * process[i4].p() * process[i5].p();
543 double p46 = 2. * process[i4].p() * process[i6].p();
544 double p34 = 2. * process[i3].p() * process[i4].p();
545 double p56 = 2. * process[i5].p() * process[i6].p();
546 double mZW1 = process[iZW1].m();
547 double mZW2 = process[iZW2].m();
550 double epsilonProd = 0.;
551 if (higgsParity == 3) {
553 for (
int i = 0; i < 4; ++i) {
558 p[i][0] = process[ii].e();
559 p[i][1] = process[ii].px();
560 p[i][2] = process[ii].py();
561 p[i][3] = process[ii].pz();
564 = p[0][0]*p[1][1]*p[2][2]*p[3][3] - p[0][0]*p[1][1]*p[2][3]*p[3][2]
565 - p[0][0]*p[1][2]*p[2][1]*p[3][3] + p[0][0]*p[1][2]*p[2][3]*p[3][1]
566 + p[0][0]*p[1][3]*p[2][1]*p[3][2] - p[0][0]*p[1][3]*p[2][2]*p[3][1]
567 - p[0][1]*p[1][0]*p[2][2]*p[3][3] + p[0][1]*p[1][0]*p[2][3]*p[3][2]
568 + p[0][1]*p[1][2]*p[2][0]*p[3][3] - p[0][1]*p[1][2]*p[2][3]*p[3][0]
569 - p[0][1]*p[1][3]*p[2][0]*p[3][2] + p[0][1]*p[1][3]*p[2][2]*p[3][0]
570 + p[0][2]*p[1][0]*p[2][1]*p[3][3] - p[0][2]*p[1][0]*p[2][3]*p[3][1]
571 - p[0][2]*p[1][1]*p[2][0]*p[3][3] + p[0][2]*p[1][1]*p[2][3]*p[3][0]
572 + p[0][2]*p[1][3]*p[2][0]*p[3][1] - p[0][2]*p[1][3]*p[2][1]*p[3][0]
573 - p[0][3]*p[1][0]*p[2][1]*p[3][2] + p[0][3]*p[1][0]*p[2][2]*p[3][1]
574 + p[0][3]*p[1][1]*p[2][0]*p[3][2] - p[0][3]*p[1][1]*p[2][2]*p[3][0]
575 - p[0][3]*p[1][2]*p[2][0]*p[3][1] + p[0][3]*p[1][2]*p[2][1]*p[3][0];
580 double vf1 = couplingsPtr->vf(process[i3].idAbs());
581 double af1 = couplingsPtr->af(process[i3].idAbs());
582 double vf2 = couplingsPtr->vf(process[i5].idAbs());
583 double af2 = couplingsPtr->af(process[i5].idAbs());
584 double va12asym = 4. * vf1 * af1 * vf2 * af2
585 / ( (vf1*vf1 + af1*af1) * (vf2*vf2 + af2*af2) );
586 double etaMod = higgsEta / pow2( particleDataPtr->m0(23) );
589 if (higgsParity == 1) wt = 8. * (1. + va12asym) * p35 * p46
590 + 8. * (1. - va12asym) * p36 * p45;
593 else if (higgsParity == 2) wt = ( pow2(p35 + p46)
594 + pow2(p36 + p45) - 2. * p34 * p56
595 - 2. * pow2(p35 * p46 - p36 * p45) / (p34 * p56)
596 + va12asym * (p35 + p36 - p45 - p46) * (p35 + p45 - p36 - p46) )
600 else wt = 32. * ( 0.25 * ( (1. + va12asym) * p35 * p46
601 + (1. - va12asym) * p36 * p45 ) - 0.5 * etaMod * epsilonProd
602 * ( (1. + va12asym) * (p35 + p46) - (1. - va12asym) * (p36 + p45) )
603 + 0.0625 * etaMod * etaMod * (-2. * pow2(p34 * p56)
604 - 2. * pow2(p35 * p46 - p36 * p45)
605 + p34 * p56 * (pow2(p35 + p46) + pow2(p36 + p45))
606 + va12asym * p34 * p56 * (p35 + p36 - p45 - p46)
607 * (p35 + p45 - p36 - p46) ) ) / ( 1. + 2. * etaMod * mZW1 * mZW2
608 + 2. * pow2(etaMod * mZW1 * mZW2) * (1. + va12asym) );
611 }
else if (idZW1 == 24) {
612 double etaMod = higgsEta / pow2( particleDataPtr->m0(24) );
615 if (higgsParity == 1) wt = 16. * p35 * p46;
618 else if (higgsParity == 2) wt = 0.5 * ( pow2(p35 + p46)
619 + pow2(p36 + p45) - 2. * p34 * p56
620 - 2. * pow2(p35 * p46 - p36 * p45) / (p34 * p56)
621 + (p35 + p36 - p45 - p46) * (p35 + p45 - p36 - p46) );
624 else wt = 32. * ( 0.25 * 2. * p35 * p46
625 - 0.5 * etaMod * epsilonProd * 2. * (p35 + p46)
626 + 0.0625 * etaMod * etaMod * (-2. * pow2(p34 * p56)
627 - 2. * pow2(p35 * p46 - p36 * p45)
628 + p34 * p56 * (pow2(p35 + p46) + pow2(p36 + p45))
629 + p34 * p56 * (p35 + p36 - p45 - p46) * (p35 + p45 - p36 - p46) ) )
630 / ( 1. * 2. * etaMod * mZW1 * mZW2 + 2. * pow2(etaMod * mZW1 * mZW2) );
649 double Sigma1Process::sigmaHatWrap(
int id1in,
int id2in) {
653 double sigmaTmp = sigmaHat();
657 int idTmp = resonanceA();
658 double mTmp = particleDataPtr->m0(idTmp);
659 double GamTmp = particleDataPtr->mWidth(idTmp);
660 sigmaTmp *= 2. * mTmp * GamTmp / ( pow2(sH - mTmp * mTmp)
661 + pow2(mTmp * GamTmp) );
663 if (convert2mb()) sigmaTmp *= CONVERT2MB;
672 void Sigma1Process::store1Kin(
double x1in,
double x2in,
double sHin) {
685 Q2RenSave = renormMultFac * sH;
686 if (renormScale1 == 2) Q2RenSave = renormFixScale;
689 Q2FacSave = factorMultFac * sH;
690 if (factorScale1 == 2) Q2FacSave = factorFixScale;
693 alpS = couplingsPtr->alphaS(Q2RenSave);
694 alpEM = couplingsPtr->alphaEM(Q2RenSave);
702 bool Sigma1Process::setupForME() {
705 bool allowME = setupForMEin();
709 pME[2] = Vec4( 0., 0., 0., mH);
725 void Sigma2Process::store2Kin(
double x1in,
double x2in,
double sHin,
726 double tHin,
double m3in,
double m4in,
double runBW3in,
double runBW4in) {
736 bool masslessKin = (id3Mass() == 0) && (id4Mass() == 0);
752 uH = (masslessKin) ? -(sH + tH) : s3 + s4 - (sH + tH);
763 pT2 = (masslessKin) ? tH * uH / sH : (tH * uH - s3 * s4) / sH;
769 Q2RenSave = renormMultFac * sH;
770 if (renormScale1 == 2) Q2RenSave = renormFixScale;
773 Q2FacSave = factorMultFac * sH;
774 if (factorScale1 == 2) Q2FacSave = factorFixScale;
780 if (masslessKin) Q2RenSave = (renormScale2 < 4) ? pT2 : sH;
781 else if (renormScale2 == 1) Q2RenSave = pT2 + min(s3, s4);
782 else if (renormScale2 == 2) Q2RenSave = sqrt((pT2 + s3) * (pT2 + s4));
783 else if (renormScale2 == 3) Q2RenSave = pT2 + 0.5 * (s3 + s4);
785 Q2RenSave *= renormMultFac;
786 if (renormScale2 == 5) Q2RenSave = renormFixScale;
789 if (masslessKin) Q2FacSave = (factorScale2 < 4) ? pT2 : sH;
790 else if (factorScale2 == 1) Q2FacSave = pT2 + min(s3, s4);
791 else if (factorScale2 == 2) Q2FacSave = sqrt((pT2 + s3) * (pT2 + s4));
792 else if (factorScale2 == 3) Q2FacSave = pT2 + 0.5 * (s3 + s4);
794 Q2FacSave *= factorMultFac;
795 if (factorScale2 == 5) Q2FacSave = factorFixScale;
799 alpS = couplingsPtr->alphaS(Q2RenSave);
800 alpEM = couplingsPtr->alphaEM(Q2RenSave);
808 void Sigma2Process::store2KinMPI(
double x1in,
double x2in,
809 double sHin,
double tHin,
double uHin,
double alpSin,
double alpEMin,
810 bool needMasses,
double m3in,
double m4in) {
840 cosTheta = (tH - uH) / sH;
841 sinTheta = 2. * sqrtpos( tH * uH ) / sH;
849 sHMass = sH - s3 - s4;
850 sHBeta = sqrtpos(sHMass*sHMass - 4. * s3 * s4);
851 tH = -0.5 * (sHMass - sHBeta * cosTheta);
852 uH = -0.5 * (sHMass + sHBeta * cosTheta);
858 pT2Mass = 0.25 * sHBeta * pow2(sinTheta);
866 bool Sigma2Process::final2KinMPI(
int i1Res,
int i2Res, Vec4 p1Res, Vec4 p2Res,
867 double m1Res,
double m2Res) {
873 m3 = particleDataPtr->m0(idSave[3]);
874 m4 = particleDataPtr->m0(idSave[4]);
876 if (m3 + m4 + MASSMARGIN > mH)
return false;
881 double e1In = 0.5 * mH;
884 if (i1Res > 0 || i2Res > 0) {
885 double s1 = m1Res * m1Res;
886 double s2 = m2Res * m2Res;
887 e1In = 0.5 * (sH + s1 - s2) / mH;
888 e2In = 0.5 * (sH + s2 - s1) / mH;
889 pzIn = sqrtpos( e1In*e1In - s1 );
893 double e3 = 0.5 * (sH + s3 - s4) / mH;
894 double e4 = 0.5 * (sH + s4 - s3) / mH;
895 double pAbs = sqrtpos( e3*e3 - s3 );
896 phi = 2. * M_PI * rndmPtr->flat();
897 double pZ = pAbs * cosTheta;
898 pTFin = pAbs * sinTheta;
899 double pX = pTFin * sin(phi);
900 double pY = pTFin * cos(phi);
901 double scale = 0.5 * mH * sinTheta;
904 int status1 = (i1Res == 0) ? -31 : -34;
905 int status2 = (i2Res == 0) ? -31 : -34;
906 parton[1] = Particle( idSave[1], status1, 0, 0, 3, 4,
907 colSave[1], acolSave[1], 0., 0., pzIn, e1In, m1Res, scale);
908 parton[2] = Particle( idSave[2], status2, 0, 0, 3, 4,
909 colSave[2], acolSave[2], 0., 0., -pzIn, e2In, m2Res, scale);
910 parton[3] = Particle( idSave[3], 33, 1, 2, 0, 0,
911 colSave[3], acolSave[3], pX, pY, pZ, e3, m3, scale);
912 parton[4] = Particle( idSave[4], 33, 1, 2, 0, 0,
913 colSave[4], acolSave[4], -pX, -pY, -pZ, e4, m4, scale);
917 if (i1Res == 0 && i2Res == 0) {
918 double betaZ = (x1Save - x2Save) / (x1Save + x2Save);
919 for (
int i = 1; i <= 4; ++i) parton[i].bst(0., 0., betaZ);
923 M.fromCMframe( p1Res, p2Res);
924 for (
int i = 1; i <= 4; ++i) parton[i].rotbst(M);
936 bool Sigma2Process::setupForME() {
939 bool allowME = setupForMEin();
943 int id3Tmp = abs(id3Mass());
944 if (id3Tmp == 4) mME[2] = mcME;
945 if (id3Tmp == 5) mME[2] = mbME;
946 if (id3Tmp == 13) mME[2] = mmuME;
947 if (id3Tmp == 15) mME[2] = mtauME;
949 int id4Tmp = abs(id4Mass());
950 if (id4Tmp == 4) mME[3] = mcME;
951 if (id4Tmp == 5) mME[3] = mbME;
952 if (id4Tmp == 13) mME[3] = mmuME;
953 if (id4Tmp == 15) mME[3] = mtauME;
956 if (mME[2] + mME[3] >= mH) {
963 double sH34 = sqrtpos( pow2(sH - s3 - s4) - 4. * s3 * s4);
964 double cThe = (tH - uH) / sH34;
965 double sThe = sqrtpos(1. - cThe * cThe);
968 double s3ME = pow2(mME[2]);
969 double s4ME = pow2(mME[3]);
970 double sH34ME = sqrtpos( pow2(sH - s3ME - s4ME) - 4. * s3ME * s4ME);
971 double pAbsME = 0.5 * sH34ME / mH;
974 if (id3Tmp == 0 || id3Tmp != id4Tmp) {
975 pME[2] = Vec4( pAbsME * sThe, 0., pAbsME * cThe,
976 0.5 * (sH + s3ME - s4ME) / mH);
977 pME[3] = Vec4( -pAbsME * sThe, 0., -pAbsME * cThe,
978 0.5 * (sH + s4ME - s3ME) / mH);
982 mME[2] = sqrtpos(0.5 * (s3ME + s4ME) - 0.25 * pow2(s3ME - s4ME) / sH);
984 pME[2] = Vec4( pAbsME * sThe, 0., pAbsME * cThe, 0.5 * mH);
985 pME[3] = Vec4( -pAbsME * sThe, 0., -pAbsME * cThe, 0.5 * mH);
1002 void Sigma3Process::store3Kin(
double x1in,
double x2in,
double sHin,
1003 Vec4 p3cmIn, Vec4 p4cmIn, Vec4 p5cmIn,
double m3in,
double m4in,
1004 double m5in,
double runBW3in,
double runBW4in,
double runBW5in) {
1014 if (id3Mass() == 0 && id4Mass() == 0 && id5Mass() == 0) {
1047 Q2RenSave = renormMultFac * sH;
1048 if (renormScale1 == 2) Q2RenSave = renormFixScale;
1051 Q2FacSave = factorMultFac * sH;
1052 if (factorScale1 == 2) Q2RenSave = factorFixScale;
1055 }
else if ( idTchan1() != 23 && idTchan1() != 24 && idTchan2() != 23
1056 && idTchan2() != 24 ) {
1057 double mT3S = s3 + p3cm.pT2();
1058 double mT4S = s4 + p4cm.pT2();
1059 double mT5S = s5 + p5cm.pT2();
1062 if (renormScale3 == 1) Q2RenSave = min( mT3S, min(mT4S, mT5S) );
1063 else if (renormScale3 == 2) Q2RenSave = sqrt( mT3S * mT4S * mT5S
1064 / max( mT3S, max(mT4S, mT5S) ) );
1065 else if (renormScale3 == 3) Q2RenSave = pow( mT3S * mT4S * mT5S,
1067 else if (renormScale3 == 4) Q2RenSave = (mT3S + mT4S + mT5S) / 3.;
1068 else Q2RenSave = sH;
1069 Q2RenSave *= renormMultFac;
1070 if (renormScale3 == 6) Q2RenSave = renormFixScale;
1073 if (factorScale3 == 1) Q2FacSave = min( mT3S, min(mT4S, mT5S) );
1074 else if (factorScale3 == 2) Q2FacSave = sqrt( mT3S * mT4S * mT5S
1075 / max( mT3S, max(mT4S, mT5S) ) );
1076 else if (factorScale3 == 3) Q2FacSave = pow( mT3S * mT4S * mT5S,
1078 else if (factorScale3 == 4) Q2FacSave = (mT3S + mT4S + mT5S) / 3.;
1079 else Q2FacSave = sH;
1080 Q2FacSave *= factorMultFac;
1081 if (factorScale3 == 6) Q2FacSave = factorFixScale;
1085 double sV4 = pow2( particleDataPtr->m0(idTchan1()) );
1086 double sV5 = pow2( particleDataPtr->m0(idTchan2()) );
1087 double mT3S = s3 + p3cm.pT2();
1088 double mTV4S = sV4 + p4cm.pT2();
1089 double mTV5S = sV5 + p5cm.pT2();
1092 if (renormScale3VV == 1) Q2RenSave = max( sV4, sV5);
1093 else if (renormScale3VV == 2) Q2RenSave = sqrt( mTV4S * mTV5S );
1094 else if (renormScale3VV == 3) Q2RenSave = pow( mT3S * mTV4S * mTV5S,
1096 else if (renormScale3VV == 4) Q2RenSave = (mT3S * mTV4S * mTV5S) / 3.;
1097 else Q2RenSave = sH;
1098 Q2RenSave *= renormMultFac;
1099 if (renormScale3VV == 6) Q2RenSave = renormFixScale;
1102 if (factorScale3VV == 1) Q2FacSave = max( sV4, sV5);
1103 else if (factorScale3VV == 2) Q2FacSave = sqrt( mTV4S * mTV5S );
1104 else if (factorScale3VV == 3) Q2FacSave = pow( mT3S * mTV4S * mTV5S,
1106 else if (factorScale3VV == 4) Q2FacSave = (mT3S * mTV4S * mTV5S) / 3.;
1107 else Q2FacSave = sH;
1108 Q2FacSave *= factorMultFac;
1109 if (factorScale3VV == 6) Q2FacSave = factorFixScale;
1113 alpS = couplingsPtr->alphaS(Q2RenSave);
1114 alpEM = couplingsPtr->alphaEM(Q2RenSave);
1122 bool Sigma3Process::setupForME() {
1125 bool allowME = setupForMEin();
1129 int id3Tmp = abs(id3Mass());
1130 if (id3Tmp == 4) mME[2] = mcME;
1131 if (id3Tmp == 5) mME[2] = mbME;
1132 if (id3Tmp == 13) mME[2] = mmuME;
1133 if (id3Tmp == 15) mME[2] = mtauME;
1135 int id4Tmp = abs(id4Mass());
1136 if (id4Tmp == 4) mME[3] = mcME;
1137 if (id4Tmp == 5) mME[3] = mbME;
1138 if (id4Tmp == 13) mME[3] = mmuME;
1139 if (id4Tmp == 15) mME[3] = mtauME;
1141 int id5Tmp = abs(id5Mass());
1142 if (id5Tmp == 4) mME[4] = mcME;
1143 if (id5Tmp == 5) mME[4] = mbME;
1144 if (id5Tmp == 13) mME[4] = mmuME;
1145 if (id5Tmp == 15) mME[4] = mtauME;
1148 if (mME[2] + mME[3] + mME[4] >= mH) {
1156 if (id3Tmp != 0 && id4Tmp == id3Tmp && id5Tmp == id3Tmp) {
1157 double mAvg = (mME[2] + mME[3] + mME[4]) / 3.;
1161 }
else if (id3Tmp != 0 && id4Tmp == id3Tmp) {
1162 mME[2] = sqrtpos(0.5 * (pow2(mME[2]) + pow2(mME[3]))
1163 - 0.25 * pow2(pow2(mME[2]) - pow2(mME[3])) / sH);
1165 }
else if (id3Tmp != 0 && id5Tmp == id3Tmp) {
1166 mME[2] = sqrtpos(0.5 * (pow2(mME[2]) + pow2(mME[4]))
1167 - 0.25 * pow2(pow2(mME[2]) - pow2(mME[4])) / sH);
1169 }
else if (id4Tmp != 0 && id5Tmp == id4Tmp) {
1170 mME[3] = sqrtpos(0.5 * (pow2(mME[3]) + pow2(mME[4]))
1171 - 0.25 * pow2(pow2(mME[3]) - pow2(mME[4])) / sH);
1176 double m2ME3 = pow2(mME[2]);
1177 double m2ME4 = pow2(mME[3]);
1178 double m2ME5 = pow2(mME[4]);
1179 double p2ME3 = p3cm.pAbs2();
1180 double p2ME4 = p4cm.pAbs2();
1181 double p2ME5 = p5cm.pAbs2();
1182 double p2sum = p2ME3 + p2ME4 + p2ME5;
1183 double eME3 = sqrt(m2ME3 + p2ME3);
1184 double eME4 = sqrt(m2ME4 + p2ME4);
1185 double eME5 = sqrt(m2ME5 + p2ME5);
1186 double esum = eME3 + eME4 + eME5;
1187 double p2rat = p2ME3 / eME3 + p2ME4 / eME4 + p2ME5 / eME5;
1189 while ( abs(esum - mH) > COMPRELERR * mH && iStep < NCOMPSTEP ) {
1191 double compFac = 1. + 2. * (mH - esum) / p2rat;
1195 eME3 = sqrt(m2ME3 + p2ME3);
1196 eME4 = sqrt(m2ME4 + p2ME4);
1197 eME5 = sqrt(m2ME5 + p2ME5);
1198 esum = eME3 + eME4 + eME5;
1199 p2rat = p2ME3 / eME3 + p2ME4 / eME4 + p2ME5 / eME5;
1203 if (abs(esum - mH) > COMPRELERR * mH) allowME =
false;
1206 double totFac = sqrt( (p2ME3 + p2ME4 + p2ME5) / p2sum);
1207 pME[2] = totFac * p3cm;
1209 pME[3] = totFac * p4cm;
1211 pME[4] = totFac * p5cm;
1229 void SigmaLHAProcess::setScale() {
1232 double scaleLHA = lhaUpPtr->scale();
1233 if (scaleLHA < 0.) {
1238 for (
int i = 3; i < lhaUpPtr->sizePart(); ++i)
1239 if (lhaUpPtr->mother1(i) == 1) {
1241 pFinSum += Vec4( lhaUpPtr->px(i), lhaUpPtr->py(i),
1242 lhaUpPtr->pz(i), lhaUpPtr->e(i) );
1244 int nFin = iFin.size();
1245 sH = pFinSum * pFinSum;
1251 Q2RenSave = renormMultFac * sH;
1252 if (renormScale1 == 2) Q2RenSave = renormFixScale;
1253 Q2FacSave = factorMultFac * sH;
1254 if (factorScale1 == 2) Q2FacSave = factorFixScale;
1257 }
else if (nFin == 2) {
1258 double s3 = pow2(lhaUpPtr->m(iFin[0]));
1259 double s4 = pow2(lhaUpPtr->m(iFin[1]));
1260 double pT2 = pow2(lhaUpPtr->px(iFin[0])) + pow2(lhaUpPtr->py(iFin[0]));
1261 if (renormScale2 == 1) Q2RenSave = pT2 + min(s3, s4);
1262 else if (renormScale2 == 2) Q2RenSave = sqrt((pT2 + s3) * (pT2 + s4));
1263 else if (renormScale2 == 3) Q2RenSave = pT2 + 0.5 * (s3 + s4);
1264 else Q2RenSave = sH;
1265 Q2RenSave *= renormMultFac;
1266 if (renormScale2 == 5) Q2RenSave = renormFixScale;
1267 if (factorScale2 == 1) Q2FacSave = pT2 + min(s3, s4);
1268 else if (factorScale2 == 2) Q2FacSave = sqrt((pT2 + s3) * (pT2 + s4));
1269 else if (factorScale2 == 3) Q2FacSave = pT2 + 0.5 * (s3 + s4);
1270 else Q2FacSave = sH;
1271 Q2FacSave *= factorMultFac;
1272 if (factorScale2 == 5) Q2FacSave = factorFixScale;
1278 double mTSprod = 1.;
1280 for (
int i = 0; i < nFin; ++i) {
1281 double mTSnow = pow2(lhaUpPtr->m(iFin[i]))
1282 + pow2(lhaUpPtr->px(iFin[i])) + pow2(lhaUpPtr->py(iFin[i]));
1283 if (mTSnow < mTSlow) {mTSmed = mTSlow; mTSlow = mTSnow;}
1284 else if (mTSnow < mTSmed) mTSmed = mTSnow;
1288 if (renormScale3 == 1) Q2RenSave = mTSlow;
1289 else if (renormScale3 == 2) Q2RenSave = sqrt(mTSlow * mTSmed);
1290 else if (renormScale3 == 3) Q2RenSave = pow(mTSprod, 1. / nFin);
1291 else if (renormScale3 == 4) Q2RenSave = mTSsum / nFin;
1292 else Q2RenSave = sH;
1293 Q2RenSave *= renormMultFac;
1294 if (renormScale3 == 6) Q2RenSave = renormFixScale;
1295 if (factorScale3 == 1) Q2FacSave = mTSlow;
1296 else if (factorScale3 == 2) Q2FacSave = sqrt(mTSlow * mTSmed);
1297 else if (factorScale3 == 3) Q2FacSave = pow(mTSprod, 1. / nFin);
1298 else if (factorScale3 == 4) Q2FacSave = mTSsum / nFin;
1299 else Q2FacSave = sH;
1300 Q2FacSave *= factorMultFac;
1301 if (factorScale3 == 6) Q2FacSave = factorFixScale;
1306 if (lhaUpPtr->alphaQCD() < 0.001) {
1307 double Q2RenNow = (scaleLHA < 0.) ? Q2RenSave : pow2(scaleLHA);
1308 alpS = couplingsPtr->alphaS(Q2RenNow);
1310 if (lhaUpPtr->alphaQED() < 0.001) {
1311 double Q2RenNow = (scaleLHA < 0.) ? Q2RenSave : pow2(scaleLHA);
1312 alpEM = couplingsPtr->alphaEM(Q2RenNow);
1321 int SigmaLHAProcess::nFinal()
const {
1324 if (lhaUpPtr->sizePart() <= 0)
return 0;
1328 for (
int i = 3; i < lhaUpPtr->sizePart(); ++i)
1329 if (lhaUpPtr->mother1(i) == 1) ++nFin;