PDT is a helper class implementing enumerations for charge, colour and spin to be used by the ParticleData class. More...
#include <PDT.h>
Public Types | |
enum | Spin { SpinNA = -1 , SpinUnknown = 0 , SpinUndefined = 0 , Spin0 = 1 , Spin1Half = 2 , Spin1 = 3 , Spin3Half = 4 , Spin2 = 5 , Spin5Half = 6 , Spin3 = 7 , Spin7Half = 8 , Spin4 = 9 } |
Definition of enumerated values used for spin information. More... | |
enum | Charge { ChargeUnknown = -999999 , ChargeUndefined = -999999 , Charged = 999990 , Positive = 900000 , Negative = -900000 , ChargeNeutral = 0 , Charge0 = 0 , Plus1Third = 1 , Plus2Third = 2 , Plus1 = 3 , Minus1Third = -1 , Minus2Third = -2 , Minus1 = -3 , Plus4Third = 4 , Plus5Third = 5 , Plus2 = 6 , Minus4Third = -4 , Minus5Third = -5 , Minus2 = -6 , Plus7Third = 7 , Plus8Third = 8 , Plus3 = 9 , Minus7Third = -7 , Minus8Third = -8 , Minus3 = -9 , Plus4 = 12 , Plus5 = 15 , Plus6 = 18 , Plus7 = 21 , Plus8 = 24 , Minus4 = -12 , Minus5 = -15 , Minus6 = -18 , Minus7 = -21 , Minus8 = -24 } |
Definition of enumerated values used for charge information. More... | |
enum | Colour { ColourUnknown = -1 , ColourUndefined = -1 , ColourNeutral = 0 , Colour0 = 0 , Coloured = 1 , Colour3 = 3 , Colour3bar = -3 , Colour6 = 6 , Colour6bar = -6 , Colour8 = 8 } |
Definition of enumerated values used for colour information. More... | |
enum | ColouredInteraction { ColouredUnknown = -2 , ColouredUndefined = -2 , NotColoured = -1 , ColouredQCD = 0 } |
Define type of nonabelian interactions. More... | |
Static Public Member Functions | |
static bool | charged (Charge c) |
True if the argument corresponds to a non-zero charge. | |
static bool | positive (Charge c) |
True if the argument corresponds to a positive charge. | |
static bool | negative (Charge c) |
True if the argument corresponds to a negative charge. | |
static bool | coloured (Colour c) |
True if the argument corresponds to a non-zero colour charge. | |
static Colour | antiColour (Colour c) |
Return the anti-colour of the specified colour. | |
static vector< long > | flavourContent (long id) |
Return the flavour content of the given particle. | |
static vector< long > | flavourContent (tcPDPtr) |
Return the flavour content of the given particle. | |
static vector< long > | flavourContent (tcPPtr) |
Return the flavour content of the given particle. | |
static vector< long > | flavourContent (const ParticleData &) |
Return the flavour content of the given particle. | |
static vector< long > | flavourContent (const Particle &) |
Return the flavour content of the given particle. | |
PDT is a helper class implementing enumerations for charge, colour and spin to be used by the ParticleData class.
In addition, some static utility functions are provided.
enum ThePEG::PDT::Charge |
Definition of enumerated values used for charge information.
The integer values are given in units of e/3.
enum ThePEG::PDT::Colour |
Definition of enumerated values used for colour information.
enum ThePEG::PDT::Spin |
Definition of enumerated values used for spin information.
THe integer values are given according to 2s+1.
Return the anti-colour of the specified colour.
Definition at line 146 of file PDT.h.
References Colour3, Colour3bar, Colour6, and Colour6bar.
|
inlinestatic |
True if the argument corresponds to a non-zero charge.
Definition at line 118 of file PDT.h.
References ChargeNeutral, and ChargeUndefined.
Referenced by ThePEG::MatcherBase::charged(), ThePEG::ParticleData::charged(), and ThePEG::ChargedMatcher::Check().
|
inlinestatic |
True if the argument corresponds to a non-zero colour charge.
Definition at line 139 of file PDT.h.
References ColourNeutral, and ColourUnknown.
Referenced by ThePEG::MatcherBase::coloured(), and ThePEG::ParticleData::coloured().
|
static |
Return the flavour content of the given particle.
The flavours will be given in decreasing mass with flavour before anti-flavour.
|
static |
Return the flavour content of the given particle.
The flavours will be given in decreasing mass with flavour before anti-flavour.
|
static |
Return the flavour content of the given particle.
The flavours will be given in decreasing mass with flavour before anti-flavour.
|
static |
Return the flavour content of the given particle.
The flavours will be given in decreasing mass with flavour before anti-flavour.
|
static |
Return the flavour content of the given particle.
The flavours will be given in decreasing mass with flavour before anti-flavour.
|
inlinestatic |
True if the argument corresponds to a negative charge.
Definition at line 132 of file PDT.h.
References ChargeNeutral, and ChargeUndefined.
Referenced by ThePEG::NegativeMatcher::Check(), ThePEG::MatcherBase::negative(), and ThePEG::ParticleData::negative().
|
inlinestatic |
True if the argument corresponds to a positive charge.
Definition at line 125 of file PDT.h.
References Charged, and ChargeNeutral.
Referenced by ThePEG::PositiveMatcher::Check(), ThePEG::MatcherBase::positive(), and ThePEG::ParticleData::positive().