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

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

#include <HadronInfo.h>

Public Member Functions

 HadronInfo (long idin=0, tPDPtr datain=tPDPtr(), double swtin=1., Energy massin=ZERO)
 Constructor.
 
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 25 of file HadronInfo.h.

Constructor & Destructor Documentation

◆ HadronInfo()

Herwig::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 36 of file HadronInfo.h.

Member Function Documentation

◆ operator<()

bool Herwig::HadronInfo::operator< ( const HadronInfo x) const
inline

Comparision operator on mass.

Definition at line 45 of file HadronInfo.h.

References id, and mass.

◆ rescale()

void Herwig::HadronInfo::rescale ( double  x) const
inline

Rescale the weight for a given hadron.

Definition at line 83 of file HadronInfo.h.

References overallWeight.

Friends And Related Function Documentation

◆ operator<< [1/2]

ostream & operator<< ( ostream &  os,
const HadronInfo hi 
)
friend

debug output

Definition at line 100 of file HadronInfo.h.

◆ operator<< [2/2]

PersistentOStream & operator<< ( PersistentOStream os,
const HadronInfo hi 
)
friend

Friend method used to print the value of a table element.

Definition at line 90 of file HadronInfo.h.

◆ operator>>

PersistentIStream & operator>> ( PersistentIStream is,
HadronInfo hi 
)
friend

Friend method used to read in the value of a table element.

Definition at line 115 of file HadronInfo.h.

Member Data Documentation

◆ id

long Herwig::HadronInfo::id

The hadrons id.

Definition at line 53 of file HadronInfo.h.

Referenced by operator<().

◆ mass

Energy Herwig::HadronInfo::mass

The hadrons mass.

Definition at line 78 of file HadronInfo.h.

Referenced by operator<().

◆ overallWeight

double Herwig::HadronInfo::overallWeight

(2*J+1)*wt*swtef

Definition at line 73 of file HadronInfo.h.

Referenced by rescale().

◆ ptrData

tPDPtr Herwig::HadronInfo::ptrData

pointer to ParticleData, to get the spin, etc...

Definition at line 58 of file HadronInfo.h.

◆ swtef

double Herwig::HadronInfo::swtef

singlet/decuplet/orbital factor

Definition at line 63 of file HadronInfo.h.

◆ wt

double Herwig::HadronInfo::wt

mixing factor

Definition at line 68 of file HadronInfo.h.


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