#include <QuarksToHadronsDecayer.h>
Public Member Functions | |
virtual int | getN (Energy m0, Energy summq, int Nq) const |
Get the number of hadrons to be produced, given the mass of the decaying particle, m0, and the number, Nq and summed masses of the quarks, summq. | |
virtual PVector | getHadrons (int Nh, tcPDVector quarks) const |
Produce Nh hadrons from the specified quarks. | |
virtual void | distribute (const Particle &parent, PVector &children) const |
Distribute the produced children in phase space. | |
virtual double | reweight (const Particle &parent, const PVector &children) const |
Called by distribute() to reweight the default flat phase spece. | |
int | fixedN () const |
Return the fixed number of hadrons to be produced. | |
int | minN () const |
Return the minimum number of hadrons to be produced. | |
double | c1 () const |
Return the parameter used for the multiplicity distriution. | |
Energy | c2 () const |
Return the parameter used for the multiplicity distriution. | |
double | c3 () const |
Return the parameter used for the multiplicity distriution. | |
tcFlavGenPtr | flavourGenerator () const |
Return a pointer to the flavour generator to be used. | |
Standard constructors and destructors. | |
QuarksToHadronsDecayer () | |
Default constructor. | |
virtual | ~QuarksToHadronsDecayer () |
Destructor. | |
Virtual functions required by the Decayer class. | |
virtual bool | accept (const DecayMode &dm) const |
Check if this decayer can perfom the decay specified by the given decay mode. | |
virtual ParticleVector | decay (const DecayMode &dm, const Particle &p) const |
Perform a decay for a given DecayMode and a given Particle instance. | |
Functions used by the persistent I/O system. | |
void | persistentOutput (PersistentOStream &os) const |
Function used to write out object persistently. | |
void | persistentInput (PersistentIStream &is, int version) |
Function used to read in object persistently. | |
Static Public Member Functions | |
static void | Init () |
Standard Init function used to initialize the interfaces. | |
Protected Member Functions | |
Clone Methods. | |
virtual IBPtr | clone () const |
Make a simple clone of this object. | |
virtual IBPtr | fullclone () const |
Make a clone of this object, possibly modifying the cloned object to make it sane. | |
Private Member Functions | |
QuarksToHadronsDecayer & | operator= (const QuarksToHadronsDecayer &) |
Private and non-existent assignment operator. | |
Private Attributes | |
int | theFixedN |
The fixed number of hadrons to be produced. | |
int | theMinN |
The minimum hadrons to be produced. | |
double | theC1 |
The parameter of the multiplicity distribution. | |
Energy | theC2 |
The parameter of the multiplicity distribution. | |
double | theC3 |
The parameter of the multiplicity distribution. | |
FlavGenPtr | theFlavourGenerator |
The object in charge of generating hadrons spieces from given quark flavours. | |
Static Private Attributes | |
static ClassDescription < QuarksToHadronsDecayer > | initQuarksToHadronsDecayer |
Describe a concrete class with persistent data. |
The number of final hadrons can either be given by a fixed number or as a Gaussian multiplicity distribution centered around and a width , where , is the mass of the decaying particle, the sum of the quark masses and real parameters.
Definition at line 35 of file QuarksToHadronsDecayer.h.
virtual bool ThePEG::QuarksToHadronsDecayer::accept | ( | const DecayMode & | dm | ) | const [virtual] |
Check if this decayer can perfom the decay specified by the given decay mode.
dm | the DecayMode describing the decay. |
Implements ThePEG::Decayer.
Reimplemented in ThePEG::WeakToHadronsDecayer.
virtual ParticleVector ThePEG::QuarksToHadronsDecayer::decay | ( | const DecayMode & | dm, | |
const Particle & | p | |||
) | const [virtual] |
Perform a decay for a given DecayMode and a given Particle instance.
Implements ThePEG::Decayer.
virtual PVector ThePEG::QuarksToHadronsDecayer::getHadrons | ( | int | Nh, | |
tcPDVector | quarks | |||
) | const [virtual] |
Produce Nh hadrons from the specified quarks.
The last quark is considered to be a spectator quark.
Reimplemented in ThePEG::WeakToHadronsDecayer.
virtual void ThePEG::QuarksToHadronsDecayer::distribute | ( | const Particle & | parent, | |
PVector & | children | |||
) | const [virtual] |
Distribute the produced children in phase space.
This default version uses a flat phase space which can be reweighted by overriding the reweight() function.
virtual double ThePEG::QuarksToHadronsDecayer::reweight | ( | const Particle & | parent, | |
const PVector & | children | |||
) | const [virtual] |
Called by distribute() to reweight the default flat phase spece.
Can be overridden by sub-classes and should return a number between 0 and 1. This version returns 1.
Reimplemented in ThePEG::WeakToHadronsDecayer.
int ThePEG::QuarksToHadronsDecayer::fixedN | ( | ) | const [inline] |
Return the fixed number of hadrons to be produced.
If less than 2, the number is instead given by a gaussian multiplicity distribution.
Definition at line 110 of file QuarksToHadronsDecayer.h.
References theFixedN.
void ThePEG::QuarksToHadronsDecayer::persistentOutput | ( | PersistentOStream & | os | ) | const |
Function used to write out object persistently.
os | the persistent output stream written to. |
Reimplemented from ThePEG::Decayer.
Reimplemented in ThePEG::WeakToHadronsDecayer.
void ThePEG::QuarksToHadronsDecayer::persistentInput | ( | PersistentIStream & | is, | |
int | version | |||
) |
Function used to read in object persistently.
is | the persistent input stream read from. | |
version | the version number of the object when written. |
Reimplemented from ThePEG::Decayer.
Reimplemented in ThePEG::WeakToHadronsDecayer.
virtual IBPtr ThePEG::QuarksToHadronsDecayer::clone | ( | ) | const [protected, virtual] |
Make a simple clone of this object.
Implements ThePEG::InterfacedBase.
Reimplemented in ThePEG::WeakToHadronsDecayer.
virtual IBPtr ThePEG::QuarksToHadronsDecayer::fullclone | ( | ) | const [protected, virtual] |
Make a clone of this object, possibly modifying the cloned object to make it sane.
Reimplemented from ThePEG::InterfacedBase.
Reimplemented in ThePEG::WeakToHadronsDecayer.
int ThePEG::QuarksToHadronsDecayer::theFixedN [private] |
The fixed number of hadrons to be produced.
If less than 2, the number is instead given by a gaussian multiplicity distribution.
Definition at line 190 of file QuarksToHadronsDecayer.h.
Referenced by fixedN().