8 #include "Pythia8/StandardModel.h"
22 const int AlphaStrong::NITER = 10;
26 const double AlphaStrong::MC = 1.5;
27 const double AlphaStrong::MB = 4.8;
28 const double AlphaStrong::MT = 171.0;
29 const double AlphaStrong::MZ = 91.188;
33 const double AlphaStrong::SAFETYMARGIN1 = 1.07;
34 const double AlphaStrong::SAFETYMARGIN2 = 1.33;
37 const double AlphaStrong::FACCMW3 = 1.661;
38 const double AlphaStrong::FACCMW4 = 1.618;
39 const double AlphaStrong::FACCMW5 = 1.569;
40 const double AlphaStrong::FACCMW6 = 1.513;
46 void AlphaStrong::init(
double valueIn,
int orderIn,
int nfmaxIn,
51 order = max( 0, min( 2, orderIn ) );
52 nfmax = max(5,min(6,nfmaxIn));
54 lastCallToFull =
false;
55 Lambda3Save = Lambda4Save = Lambda5Save = Lambda6Save = scale2Min = 0.;
61 }
else if (order == 1) {
62 Lambda5Save = MZ * exp( -6. * M_PI / (23. * valueRef) );
63 Lambda6Save = Lambda5Save * pow(Lambda5Save/MT, 2./21.);
64 Lambda4Save = Lambda5Save * pow(MB/Lambda5Save, 2./25.);
65 Lambda3Save = Lambda4Save * pow(MC/Lambda4Save, 2./27.);
70 double b16 = 234. / 441.;
71 double b15 = 348. / 529.;
72 double b14 = 462. / 625.;
73 double b13 = 576. / 729.;
75 double b26 = -36855. / 109512.;
76 double b25 = 224687. / 242208.;
77 double b24 = 548575. / 426888.;
78 double b23 = 938709. / 663552.;
80 double logScale, loglogScale, correction, valueIter;
82 Lambda5Save = MZ * exp( -6. * M_PI / (23. * valueRef) );
83 for (
int iter = 0; iter < NITER; ++iter) {
84 logScale = 2. * log(MZ/Lambda5Save);
85 loglogScale = log(logScale);
86 correction = 1. - b15 * loglogScale / logScale
87 + pow2(b15 / logScale) * (pow2(loglogScale - 0.5) + b25 - 1.25);
88 valueIter = valueRef / correction;
89 Lambda5Save = MZ * exp( -6. * M_PI / (23. * valueIter) );
93 double logScaleT = 2. * log(MT/Lambda5Save);
94 double loglogScaleT = log(logScaleT);
95 double valueT = 12. * M_PI / (21. * logScaleT)
96 * (1. - b16 * loglogScaleT / logScaleT
97 + pow2(b16 / logScaleT) * (pow2(loglogScaleT - 0.5) + b26 - 1.25) );
98 Lambda6Save = Lambda5Save;
99 for (
int iter = 0; iter < NITER; ++iter) {
100 logScale = 2. * log(MT/Lambda6Save);
101 loglogScale = log(logScale);
102 correction = 1. - b15 * loglogScale / logScale
103 + pow2(b15 / logScale) * (pow2(loglogScale - 0.5) + b25 - 1.25);
104 valueIter = valueT / correction;
105 Lambda6Save = MT * exp( -6. * M_PI / (21. * valueIter) );
109 double logScaleB = 2. * log(MB/Lambda5Save);
110 double loglogScaleB = log(logScaleB);
111 double valueB = 12. * M_PI / (23. * logScaleB)
112 * (1. - b15 * loglogScaleB / logScaleB
113 + pow2(b15 / logScaleB) * (pow2(loglogScaleB - 0.5) + b25- 1.25) );
114 Lambda4Save = Lambda5Save;
115 for (
int iter = 0; iter < NITER; ++iter) {
116 logScale = 2. * log(MB/Lambda4Save);
117 loglogScale = log(logScale);
118 correction = 1. - b14 * loglogScale / logScale
119 + pow2(b14 / logScale) * (pow2(loglogScale - 0.5) + b24 - 1.25);
120 valueIter = valueB / correction;
121 Lambda4Save = MB * exp( -6. * M_PI / (25. * valueIter) );
124 double logScaleC = 2. * log(MC/Lambda4Save);
125 double loglogScaleC = log(logScaleC);
126 double valueC = 12. * M_PI / (25. * logScaleC)
127 * (1. - b14 * loglogScaleC / logScaleC
128 + pow2(b14 / logScaleC) * (pow2(loglogScaleC - 0.5) + b24 - 1.25) );
129 Lambda3Save = Lambda4Save;
130 for (
int iter = 0; iter < NITER; ++iter) {
131 logScale = 2. * log(MC/Lambda3Save);
132 loglogScale = log(logScale);
133 correction = 1. - b13 * loglogScale / logScale
134 + pow2(b13 / logScale) * (pow2(loglogScale - 0.5) + b23 - 1.25);
135 valueIter = valueC / correction;
136 Lambda3Save = MC * exp( -6. * M_PI / (27. * valueIter) );
142 Lambda3Save *= FACCMW3;
143 Lambda4Save *= FACCMW4;
144 Lambda5Save *= FACCMW5;
145 Lambda6Save *= FACCMW6;
149 if (order == 1) scale2Min = pow2(SAFETYMARGIN1 * Lambda3Save);
150 else if (order == 2) scale2Min = pow2(SAFETYMARGIN2 * Lambda3Save);
153 Lambda3Save2 = pow2(Lambda3Save);
154 Lambda4Save2 = pow2(Lambda4Save);
155 Lambda5Save2 = pow2(Lambda5Save);
156 Lambda6Save2 = pow2(Lambda6Save);
170 double AlphaStrong::alphaS(
double scale2) {
173 if (!isInit)
return 0.;
174 if (scale2 < scale2Min) scale2 = scale2Min;
177 if (scale2 == scale2Now && (order < 2 || lastCallToFull))
return valueNow;
179 lastCallToFull =
true;
186 }
else if (order == 1) {
187 if (scale2 > mt2 && nfmax >= 6)
188 valueNow = 12. * M_PI / (21. * log(scale2/Lambda6Save2));
189 else if (scale2 > mb2)
190 valueNow = 12. * M_PI / (23. * log(scale2/Lambda5Save2));
191 else if (scale2 > mc2)
192 valueNow = 12. * M_PI / (25. * log(scale2/Lambda4Save2));
193 else valueNow = 12. * M_PI / (27. * log(scale2/Lambda3Save2));
197 double Lambda2, b0, b1, b2;
198 if (scale2 > mt2 && nfmax >= 6) {
199 Lambda2 = Lambda6Save2;
202 b2 = -36855. / 109512.;
203 }
else if (scale2 > mb2) {
204 Lambda2 = Lambda5Save2;
207 b2 = 224687. / 242208.;
208 }
else if (scale2 > mc2) {
209 Lambda2 = Lambda4Save2;
212 b2 = 548575. / 426888.;
214 Lambda2 = Lambda3Save2;
217 b2 = 938709. / 663552.;
219 double logScale = log(scale2/Lambda2);
220 double loglogScale = log(logScale);
221 valueNow = 12. * M_PI / (b0 * logScale)
222 * ( 1. - b1 * loglogScale / logScale
223 + pow2(b1 / logScale) * (pow2(loglogScale - 0.5) + b2 - 1.25) );
236 double AlphaStrong::alphaS1Ord(
double scale2) {
239 if (!isInit)
return 0.;
240 if (scale2 < scale2Min) scale2 = scale2Min;
243 if (scale2 == scale2Now && (order < 2 || !lastCallToFull))
return valueNow;
245 lastCallToFull =
false;
253 if (scale2 > mt2 && nfmax >= 6)
254 valueNow = 12. * M_PI / (21. * log(scale2/Lambda6Save2));
255 else if (scale2 > mb2)
256 valueNow = 12. * M_PI / (23. * log(scale2/Lambda5Save2));
257 else if (scale2 > mc2)
258 valueNow = 12. * M_PI / (25. * log(scale2/Lambda4Save2));
259 else valueNow = 12. * M_PI / (27. * log(scale2/Lambda3Save2));
271 double AlphaStrong::alphaS2OrdCorr(
double scale2) {
274 if (!isInit)
return 1.;
275 if (scale2 < scale2Min) scale2 = scale2Min;
278 if (order < 2)
return 1.;
281 double Lambda2, b1, b2;
282 if (scale2 > mt2 && nfmax >= 6) {
283 Lambda2 = Lambda6Save2;
285 b2 = -36855. / 109512.;
286 }
else if (scale2 > mb2) {
287 Lambda2 = Lambda5Save2;
289 b2 = 224687. / 242208.;
290 }
else if (scale2 > mc2) {
291 Lambda2 = Lambda4Save2;
293 b2 = 548575. / 426888.;
295 Lambda2 = Lambda3Save2;
297 b2 = 938709. / 663552.;
299 double logScale = log(scale2/Lambda2);
300 double loglogScale = log(logScale);
301 return ( 1. - b1 * loglogScale / logScale
302 + pow2(b1 / logScale) * (pow2(loglogScale - 0.5) + b2 - 1.25) );
310 double AlphaStrong::muThres(
int idQ) {
311 int idAbs = abs(idQ);
313 if (idAbs == 4)
return MC;
314 else if (idAbs == 5)
return MB;
315 else if (idAbs == 6 && nfmax >= 6)
return MT;
320 double AlphaStrong::muThres2(
int idQ) {
321 int idAbs = abs(idQ);
323 if (idAbs == 4)
return mc2;
324 else if (idAbs == 5)
return mb2;
325 else if (idAbs == 6 && nfmax >=6)
return mt2;
334 double AlphaStrong::facCMW(
int NFIn) {
336 if (!isInit || !useCMW)
return 1.0;
338 else if (NFIn <= 3)
return FACCMW3;
339 else if (NFIn == 4)
return FACCMW4;
340 else if (NFIn == 5)
return FACCMW5;
353 const double AlphaEM::MZ = 91.188;
356 const double AlphaEM::Q2STEP[5] = {0.26e-6, 0.011, 0.25, 3.5, 90.};
360 const double AlphaEM::BRUNDEF[5] = {0.1061, 0.2122, 0.460, 0.700, 0.725};
366 void AlphaEM::init(
int orderIn, Settings* settingsPtr) {
370 alpEM0 = settingsPtr->parm(
"StandardModel:alphaEM0");
371 alpEMmZ = settingsPtr->parm(
"StandardModel:alphaEMmZ");
375 if (order <= 0)
return;
376 for (
int i = 0; i < 5; ++i) bRun[i] = BRUNDEF[i];
379 alpEMstep[4] = alpEMmZ / ( 1. + alpEMmZ * bRun[4]
380 * log(mZ2 / Q2STEP[4]) );
381 alpEMstep[3] = alpEMstep[4] / ( 1. - alpEMstep[4] * bRun[3]
382 * log(Q2STEP[3] / Q2STEP[4]) );
385 alpEMstep[0] = alpEM0;
386 alpEMstep[1] = alpEMstep[0] / ( 1. - alpEMstep[0] * bRun[0]
387 * log(Q2STEP[1] / Q2STEP[0]) );
388 alpEMstep[2] = alpEMstep[1] / ( 1. - alpEMstep[1] * bRun[1]
389 * log(Q2STEP[2] / Q2STEP[1]) );
392 bRun[2] = (1./alpEMstep[3] - 1./alpEMstep[2])
393 / log(Q2STEP[2] / Q2STEP[3]);
401 double AlphaEM::alphaEM(
double scale2) {
404 if (order == 0)
return alpEM0;
405 if (order < 0)
return alpEMmZ;
408 for (
int i = 4; i >= 0; --i)
if (scale2 > Q2STEP[i])
409 return alpEMstep[i] / (1. - bRun[i] * alpEMstep[i]
410 * log(scale2 / Q2STEP[i]) );
422 const double CoupSM::efSave[20] = { 0., -1./3., 2./3., -1./3., 2./3., -1./3.,
423 2./3., -1./3., 2./3., 0., 0., -1., 0., -1., 0., -1., 0., -1., 0., 0.};
424 const double CoupSM::afSave[20] = { 0., -1., 1., -1., 1., -1., 1., -1., 1.,
425 0., 0., -1., 1., -1., 1., -1., 1., -1., 1., 0.};
431 void CoupSM::init(Settings& settings, Rndm* rndmPtrIn) {
437 double alphaSvalue = settings.parm(
"SigmaProcess:alphaSvalue");
438 int alphaSorder = settings.mode(
"SigmaProcess:alphaSorder");
439 int alphaSnfmax = settings.mode(
"StandardModel:alphaSnfmax");
440 alphaSlocal.init( alphaSvalue, alphaSorder, alphaSnfmax,
false);
443 int order = settings.mode(
"SigmaProcess:alphaEMorder");
444 alphaEMlocal.init( order, &settings);
447 s2tW = settings.parm(
"StandardModel:sin2thetaW");
449 s2tWbar = settings.parm(
"StandardModel:sin2thetaWbar");
450 GFermi = settings.parm(
"StandardModel:GF");
453 for (
int i = 0; i < 20; ++i) {
454 vfSave[i] = afSave[i] - 4. * s2tWbar * efSave[i];
455 lfSave[i] = afSave[i] - 2. * s2tWbar * efSave[i];
456 rfSave[i] = - 2. * s2tWbar * efSave[i];
457 ef2Save[i] = pow2(efSave[i]);
458 vf2Save[i] = pow2(vfSave[i]);
459 af2Save[i] = pow2(afSave[i]);
460 efvfSave[i] = efSave[i] * vfSave[i];
461 vf2af2Save[i] = vf2Save[i] + af2Save[i];
465 VCKMsave[1][1] = settings.parm(
"StandardModel:Vud");
466 VCKMsave[1][2] = settings.parm(
"StandardModel:Vus");
467 VCKMsave[1][3] = settings.parm(
"StandardModel:Vub");
468 VCKMsave[2][1] = settings.parm(
"StandardModel:Vcd");
469 VCKMsave[2][2] = settings.parm(
"StandardModel:Vcs");
470 VCKMsave[2][3] = settings.parm(
"StandardModel:Vcb");
471 VCKMsave[3][1] = settings.parm(
"StandardModel:Vtd");
472 VCKMsave[3][2] = settings.parm(
"StandardModel:Vts");
473 VCKMsave[3][3] = settings.parm(
"StandardModel:Vtb");
476 VCKMsave[1][4] = settings.parm(
"FourthGeneration:VubPrime");
477 VCKMsave[2][4] = settings.parm(
"FourthGeneration:VcbPrime");
478 VCKMsave[3][4] = settings.parm(
"FourthGeneration:VtbPrime");
479 VCKMsave[4][1] = settings.parm(
"FourthGeneration:VtPrimed");
480 VCKMsave[4][2] = settings.parm(
"FourthGeneration:VtPrimes");
481 VCKMsave[4][3] = settings.parm(
"FourthGeneration:VtPrimeb");
482 VCKMsave[4][4] = settings.parm(
"FourthGeneration:VtPrimebPrime");
485 for(
int i = 1; i < 5; ++i)
for(
int j = 1; j < 5; ++j)
486 V2CKMsave[i][j] = pow2(VCKMsave[i][j]);
489 V2CKMout[1] = V2CKMsave[1][1] + V2CKMsave[2][1];
490 V2CKMout[2] = V2CKMsave[1][1] + V2CKMsave[1][2] + V2CKMsave[1][3];
491 V2CKMout[3] = V2CKMsave[1][2] + V2CKMsave[2][2];
492 V2CKMout[4] = V2CKMsave[2][1] + V2CKMsave[2][2] + V2CKMsave[2][3];
493 V2CKMout[5] = V2CKMsave[1][3] + V2CKMsave[2][3];
494 V2CKMout[6] = V2CKMsave[3][1] + V2CKMsave[3][2] + V2CKMsave[3][3];
495 V2CKMout[7] = V2CKMsave[1][4] + V2CKMsave[2][4];
496 V2CKMout[8] = V2CKMsave[4][1] + V2CKMsave[4][2] + V2CKMsave[4][3];
497 for (
int i = 11; i <= 18; ++i) V2CKMout[i] = 1.;
505 double CoupSM::VCKMid(
int id1,
int id2) {
508 int id1Abs = abs(id1);
509 int id2Abs = abs(id2);
510 if (id1Abs == 0 || id2Abs == 0 || (id1Abs + id2Abs)%2 != 1)
return 0.;
513 if (id1Abs%2 == 1) swap(id1Abs, id2Abs);
514 if (id1Abs <= 8 && id2Abs <= 8)
return VCKMsave[id1Abs/2][(id2Abs + 1)/2];
515 if ( (id1Abs == 12 || id1Abs == 14 || id1Abs == 16 || id1Abs == 18)
516 && id2Abs == id1Abs - 1 )
return 1.;
527 double CoupSM::V2CKMid(
int id1,
int id2) {
530 int id1Abs = abs(id1);
531 int id2Abs = abs(id2);
532 if (id1Abs == 0 || id2Abs == 0 || (id1Abs + id2Abs)%2 != 1)
return 0.;
535 if (id1Abs%2 == 1) swap(id1Abs, id2Abs);
536 if (id1Abs <= 8 && id2Abs <= 8)
return V2CKMsave[id1Abs/2][(id2Abs + 1)/2];
537 if ( (id1Abs == 12 || id1Abs == 14 || id1Abs == 16 || id1Abs == 18)
538 && id2Abs == id1Abs - 1 )
return 1.;
549 int CoupSM::V2CKMpick(
int id) {
556 if (idIn >= 1 && idIn <= 8) {
557 double V2CKMrndm = rndmPtr->flat() * V2CKMout[idIn];
558 if (idIn == 1) idOut = (V2CKMrndm < V2CKMsave[1][1]) ? 2 : 4;
559 else if (idIn == 2) idOut = (V2CKMrndm < V2CKMsave[1][1]) ? 1
560 : ( (V2CKMrndm < V2CKMsave[1][1] + V2CKMsave[1][2]) ? 3 : 5 );
561 else if (idIn == 3) idOut = (V2CKMrndm < V2CKMsave[1][2]) ? 2 : 4;
562 else if (idIn == 4) idOut = (V2CKMrndm < V2CKMsave[2][1]) ? 1
563 : ( (V2CKMrndm < V2CKMsave[2][1] + V2CKMsave[2][2]) ? 3 : 5 );
564 else if (idIn == 5) idOut = (V2CKMrndm < V2CKMsave[1][3]) ? 2 : 4;
565 else if (idIn == 6) idOut = (V2CKMrndm < V2CKMsave[3][1]) ? 1
566 : ( (V2CKMrndm < V2CKMsave[3][1] + V2CKMsave[3][2]) ? 3 : 5 );
567 else if (idIn == 7) idOut = (V2CKMrndm < V2CKMsave[1][4]) ? 2 : 4;
568 else if (idIn == 8) idOut = (V2CKMrndm < V2CKMsave[4][1]) ? 1
569 : ( (V2CKMrndm < V2CKMsave[4][1] + V2CKMsave[4][2]) ? 3 : 5 );
572 }
else if (idIn >= 11 && idIn <= 18) {
573 if (idIn%2 == 1) idOut = idIn + 1;
574 else idOut = idIn - 1;
578 return ( (
id > 0) ? idOut : -idOut );