herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
Herwig::HadronSelector::HadronInfo Class Reference

Class used to store all the hadron information for easy access. More...

#include <HadronSelector.h>

Public Member Functions

 HadronInfo (long idin=0, tPDPtr datain=tPDPtr(), double swtin=1., Energy massin=ZERO)
 Constructor. More...
 
bool operator< (const HadronInfo &x) const
 Comparision operator on mass.
 
void rescale (double x) const
 Rescale the weight for a given hadron.
 

Public Attributes

long id
 The hadrons id.
 
tPDPtr ptrData
 pointer to ParticleData, to get the spin, etc...
 
double swtef
 singlet/decuplet/orbital factor
 
double wt
 mixing factor
 
double overallWeight
 (2*J+1)*wt*swtef
 
Energy mass
 The hadrons mass.
 

Friends

PersistentOStreamoperator<< (PersistentOStream &os, const HadronInfo &hi)
 Friend method used to print the value of a table element.
 
ostream & operator<< (ostream &os, const HadronInfo &hi)
 debug output
 
PersistentIStreamoperator>> (PersistentIStream &is, HadronInfo &hi)
 Friend method used to read in the value of a table element.
 

Detailed Description

Class used to store all the hadron information for easy access.

Author
Philip Stephens

Note that:

  • the hadrons in _table can be filled in any ordered w.r.t. the mass value, and flavours for different groups (for instance, (u,s) hadrons don't need to be placed after (d,s) or any other flavour), but all hadrons with the same flavours must be consecutive ( for instance you cannot alternate hadrons of type (d,s) with those of flavour (u,s) ). Furthermore, it is assumed that particle and antiparticle have the same weights, and therefore only one of them must be entered in the table: we have chosen to refer to the particle, defined as PDG id > 0, although if an anti-particle is provided in input it is automatically transform to its particle, simply by taking the modulus of its id.

Definition at line 73 of file HadronSelector.h.

Constructor & Destructor Documentation

◆ HadronInfo()

Herwig::HadronSelector::HadronInfo::HadronInfo ( long  idin = 0,
tPDPtr  datain = tPDPtr(),
double  swtin = 1.,
Energy  massin = ZERO 
)
inline

Constructor.

Parameters
idinThe PDG code of the hadron
datainThe pointer to the ParticleData object
swtinThe singlet/decuplet/orbital factor
massinThe mass of the hadron

Definition at line 84 of file HadronSelector.h.


The documentation for this class was generated from the following file: