9 #ifndef ThePEG_WidthGenerator_H
10 #define ThePEG_WidthGenerator_H
13 #include "ThePEG/Config/ThePEG.h"
14 #include "WidthGenerator.fh"
15 #include "ThePEG/Interface/Interfaced.h"
16 #include "ThePEG/Utilities/Selector.h"
17 #include "ThePEG/PDT/DecayMode.fh"
112 struct ClassTraits<WidthGenerator>:
public ClassTraitsBase<WidthGenerator> {
114 static string className() {
return "ThePEG::WidthGenerator"; }
The Particle class is used to describe an instance of a particle.
ClassTraitsType is an empty, non-polymorphic, base class.
This is the main namespace within which all identifiers in ThePEG are declared.
WidthGenerator is an abstract base class to be used to encapsulate models for giving the partial deca...
ParticleData inherits from InterfacedBase and represents the properties of a particle type...
QTY< 0, 1, 0 >::Type Energy
Energy.
QTY< 1, 0, 0 >::Type Length
Length.
A concreate implementation of ClassDescriptionBase describing an abstract class without persistent da...
Energy width(const Particle &) const
Given a Particle, calculate a width.
The Interfaced class is derived from the InterfacedBase class adding a couple of things particular to...
WidthGenerator & operator=(const WidthGenerator &)
Private and non-existent assignment operator.
static AbstractNoPIOClassDescription< WidthGenerator > initWidthGenerator
The static object used to initialize the description of this class.
static string className()
Return the name of class T.
int NthBase
The type of the BaseN'th base class (int means there are no further base classes).
static void Init()
Standard Init function used to initialize the interface.
virtual bool accept(const ParticleData &) const =0
Return true if this object can be used for the given particle type with the given decay map...
BaseClassTraits describes the base classes of the templated class.
virtual DecayMap rate(const ParticleData &) const =0
Return decay map for the given particle type.
virtual Length lifeTime(const ParticleData &, Energy m, Energy w) const
Given a particle type and a mass and a width of an instance of that particle type, generate a life time.
Selector< tDMPtr > DecayMap
A selector of DecayModess weighted by their branching ratios.