/usr/include/Pythia8/Pythia8/ResonanceWidths.h is in libpythia8-dev 8.1.86-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 | // ResonanceWidths.h is a part of the PYTHIA event generator.
// Copyright (C) 2014 Torbjorn Sjostrand.
// PYTHIA is licenced under the GNU GPL version 2, see COPYING for details.
// Please respect the MCnet Guidelines, see GUIDELINES for details.
// Header file for resonance properties: dynamical widths etc.
// ResonanceWidths: base class for all resonances.
// ResonanceGmZ, ...: derived classes for individual resonances.
#ifndef Pythia8_ResonanceWidths_H
#define Pythia8_ResonanceWidths_H
#include "Pythia8/Basics.h"
#include "Pythia8/Info.h"
#include "Pythia8/PythiaStdlib.h"
#include "Pythia8/Settings.h"
#include "Pythia8/StandardModel.h"
namespace Pythia8 {
//==========================================================================
// Forward references to ParticleData and StandardModel classes.
class DecayChannel;
class ParticleData;
class ParticleDataEntry;
class Couplings;
//==========================================================================
// The ResonanceWidths is the base class. Also used for generic resonaces.
class ResonanceWidths {
public:
// Destructor.
virtual ~ResonanceWidths() {}
// Set up standard properties.
void initBasic(int idResIn, bool isGenericIn = false) {
idRes = idResIn; isGeneric = isGenericIn;}
// Calculate and store partial and total widths at the nominal mass.
virtual bool init(Info* infoPtrIn, Settings* settingsPtrIn,
ParticleData* particleDataPtrIn, Couplings* couplingsPtrIn);
// Return identity of particle species.
int id() const {return idRes;}
// Calculate the total/open width for given mass, charge and instate.
double width(int idSgn, double mHatIn, int idInFlavIn = 0,
bool openOnly = false, bool setBR = false, int idOutFlav1 = 0,
int idOutFlav2 = 0);
// Special case to calculate open final-state width.
double widthOpen(int idSgn, double mHatIn, int idIn = 0) {
return width( idSgn, mHatIn, idIn, true, false);}
// Special case to store open final-state widths for channel selection.
double widthStore(int idSgn, double mHatIn, int idIn = 0) {
return width( idSgn, mHatIn, idIn, true, true);}
// Return fraction of width open for particle and antiparticle.
double openFrac(int idSgn) {return (idSgn > 0) ? openPos : openNeg;}
// Return forced rescaling factor of resonance width.
double widthRescaleFactor() {return forceFactor;}
// Special case to calculate one final-state width.
// Currently only used for Higgs -> qqbar, g g or gamma gamma.
double widthChan(double mHatIn, int idOutFlav1, int idOutFlav2) {
return width( 1, mHatIn, 0, false, false, idOutFlav1, idOutFlav2);}
protected:
// Constructor.
ResonanceWidths() {}
// Constants: could only be changed in the code itself.
static const int NPOINT;
static const double MASSMIN, MASSMARGIN;
// Particle properties always present.
int idRes, hasAntiRes;
bool doForceWidth, isGeneric, allowCalcWidth;
double minWidth, minThreshold, mRes, GammaRes, m2Res, GamMRat,
openPos, openNeg, forceFactor;
// Properties for currently studied decay channel(s).
int iChannel, onMode, meMode, mult, id1, id2, id3, id1Abs,
id2Abs, id3Abs, idInFlav;
double widNow, mHat, mf1, mf2, mf3, mr1, mr2, mr3, ps, kinFac,
alpEM, alpS, colQ, preFac;
// Pointer to properties of the particle species.
ParticleDataEntry* particlePtr;
// Pointer to various information on the generation.
Info* infoPtr;
// Pointer to the settings database.
Settings* settingsPtr;
// Pointer to the particle data table.
ParticleData* particleDataPtr;
// Pointers to Standard Model and SUSY couplings.
Couplings* couplingsPtr;
// Initialize constants.
virtual void initConstants() {}
// Virtual methods to handle model-specific (non-SM) part of initialization
// for use by derived classes that implement additional models (eg SUSY).
virtual bool initBSM() {return true;}
virtual bool allowCalc() {return true;}
// Calculate various common prefactors for the current mass.
// Optional argument calledFromInit only used for Z0.
virtual void calcPreFac(bool = false) {}
// Calculate width for currently considered channel.
// Optional argument calledFromInit only used for Z0.
virtual void calcWidth(bool = false) {}
// Simple routines for matrix-element integration over Breit-Wigners.
double numInt1BW(double mHatIn, double m1, double Gamma1, double mMin1,
double m2, int psMode = 1);
double numInt2BW(double mHatIn, double m1, double Gamma1, double mMin1,
double m2, double Gamma2, double mMin2, int psMode = 1);
};
//==========================================================================
// The ResonanceGeneric class handles a generic resonance.
// Only needs a constructor and allowCalc = false; for the rest uses
// defaults in base class.
class ResonanceGeneric : public ResonanceWidths {
public:
// Constructor.
ResonanceGeneric(int idResIn) {initBasic(idResIn, true);}
// By default, assume no dedicated code exists to compute width.
virtual bool allowCalc() {return false;}
};
//==========================================================================
// The ResonanceGmZ class handles the gamma*/Z0 resonance.
class ResonanceGmZ : public ResonanceWidths {
public:
// Constructor.
ResonanceGmZ(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
int gmZmode;
double thetaWRat, ei2, eivi, vi2ai2, gamNorm, intNorm, resNorm;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool calledFromInit = false);
};
//==========================================================================
// The ResonanceW class handles the W+- resonance.
class ResonanceW : public ResonanceWidths {
public:
// Constructor.
ResonanceW(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double thetaWRat, alpEM;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceTop class handles the top/antitop resonance.
class ResonanceTop : public ResonanceWidths {
public:
// Constructor.
ResonanceTop(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double thetaWRat, m2W, tanBeta, tan2Beta, mbRun;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceFour class handles fourth-generation resonances.
class ResonanceFour : public ResonanceWidths {
public:
// Constructor.
ResonanceFour(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double thetaWRat, m2W;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceH class handles the SM and BSM Higgs resonance.
// higgsType = 0 : SM H; = 1: h^0/H_1; = 2 : H^0/H_2; = 3 : A^0/A_3.
class ResonanceH : public ResonanceWidths {
public:
// Constructor.
ResonanceH(int higgsTypeIn, int idResIn) : higgsType(higgsTypeIn)
{initBasic(idResIn);}
private:
// Constants: could only be changed in the code itself.
static const double MASSMINWZ, MASSMINT, GAMMAMARGIN;
// Higgs type in current instance.
int higgsType;
// Locally stored properties and couplings.
bool useCubicWidth, useRunLoopMass, useNLOWidths;
double sin2tW, cos2tW, mT, mZ, mW, mHchg, GammaT, GammaZ, GammaW,
rescAlpS, rescColQ, coup2d, coup2u, coup2l, coup2Z, coup2W,
coup2Hchg, coup2H1H1, coup2A3A3, coup2H1Z, coup2A3Z, coup2A3H1,
coup2HchgW, mLowT, mStepT, mLowZ, mStepZ, mLowW, mStepW,
kinFacT[101], kinFacZ[101], kinFacW[101];
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
// Sum up loop contributions in Higgs -> g + g.
double eta2gg();
// Sum up loop contributions in Higgs -> gamma + gamma.
double eta2gaga();
// Sum up loop contributions in Higgs -> gamma + Z0.
double eta2gaZ();
};
//==========================================================================
// The ResonanceHchg class handles the H+- resonance.
class ResonanceHchg : public ResonanceWidths {
public:
// Constructor.
ResonanceHchg(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
bool useCubicWidth;
double thetaWRat, mW, tanBeta, tan2Beta, coup2H1W;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceZprime class handles the gamma*/Z0 /Z'^0 resonance.
class ResonanceZprime : public ResonanceWidths {
public:
// Constructor.
ResonanceZprime(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
int gmZmode;
double sin2tW, cos2tW, thetaWRat, mZ, GammaZ, m2Z, GamMRatZ, afZp[20],
vfZp[20], coupZpWW, ei2, eivi, vai2, eivpi, vaivapi, vapi2,
gamNorm, gamZNorm, ZNorm, gamZpNorm, ZZpNorm, ZpNorm;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool calledFromInit = false);
};
//==========================================================================
// The ResonanceWprime class handles the W'+- resonance.
class ResonanceWprime : public ResonanceWidths {
public:
// Constructor.
ResonanceWprime(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double thetaWRat, cos2tW, alpEM, aqWp, vqWp, alWp, vlWp, coupWpWZ;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceRhorizontal class handles the R^0 resonance.
class ResonanceRhorizontal : public ResonanceWidths {
public:
// Constructor.
ResonanceRhorizontal(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double thetaWRat;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceExcited class handles excited-fermion resonances.
class ResonanceExcited : public ResonanceWidths {
public:
// Constructor.
ResonanceExcited(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double Lambda, coupF, coupFprime, coupFcol, sin2tW, cos2tW;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceGraviton class handles the excited Graviton resonance.
class ResonanceGraviton : public ResonanceWidths {
public:
// Constructor.
ResonanceGraviton(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
bool eDsmbulk, eDvlvl;
double kappaMG;
// Couplings between graviton and SM (map from particle id to coupling).
double eDcoupling[27];
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceKKgluon class handles the g^*/KK-gluon^* resonance.
class ResonanceKKgluon : public ResonanceWidths {
public:
// Constructor.
ResonanceKKgluon(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties.
double normSM, normInt, normKK;
// Couplings between kk gluon and SM (indexed by particle id).
// Helicity dependent couplings. Use vector/axial-vector
// couplings internally, gv/ga = 0.5 * (gL +/- gR).
double eDgv[10], eDga[10];
// Interference parameter.
int interfMode;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool calledFromInit = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool calledFromInit = false);
};
//==========================================================================
// The ResonanceLeptoquark class handles the LQ/LQbar resonance.
class ResonanceLeptoquark : public ResonanceWidths {
public:
// Constructor.
ResonanceLeptoquark(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double kCoup;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceNuRight class handles righthanded Majorana neutrinos.
class ResonanceNuRight : public ResonanceWidths {
public:
// Constructor.
ResonanceNuRight(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double thetaWRat, mWR;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceZRight class handles the Z_R^0 resonance.
class ResonanceZRight : public ResonanceWidths {
public:
// Constructor.
ResonanceZRight(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double sin2tW, thetaWRat;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceWRight class handles the W_R+- resonance.
class ResonanceWRight : public ResonanceWidths {
public:
// Constructor.
ResonanceWRight(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double thetaWRat;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceHchgchgLeft class handles the H++/H-- (left) resonance.
class ResonanceHchgchgLeft : public ResonanceWidths {
public:
// Constructor.
ResonanceHchgchgLeft(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
double yukawa[4][4], gL, vL, mW;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
// The ResonanceHchgchgRight class handles the H++/H-- (right) resonance.
class ResonanceHchgchgRight : public ResonanceWidths {
public:
// Constructor.
ResonanceHchgchgRight(int idResIn) {initBasic(idResIn);}
private:
// Locally stored properties and couplings.
int idWR;
double yukawa[4][4], gR;
// Initialize constants.
virtual void initConstants();
// Calculate various common prefactors for the current mass.
virtual void calcPreFac(bool = false);
// Caclulate width for currently considered channel.
virtual void calcWidth(bool = false);
};
//==========================================================================
} // end namespace Pythia8
#endif // Pythia8_ResonanceWidths_H
|