File: ExampleDecayer.h
Description:
Dummy class which provides just an example of how to inherits
from the abstract class Decayer and then implement the
physics of the decay in the two methods:
accept
decay
See
also:
namespace Herwig
CLASS
ExampleDecayer:
Base class:
Public members:
inline ExampleDecayer();
inline ExampleDecayer(const ExampleDecayer &);
virtual ~ExampleDecayer();
Standard ctors and dtor.
virtual bool accept(const DecayMode &) const;
return true if this decayer can perfom the decay specified by the
given decay mode.
virtual ParticleVector decay(const DecayMode &, const Particle &) const;
for a given decay mode and a given particle instance, perform the
decay and return the decay products.
void persistentOutput(PersistentOStream &) const;
void persistentInput(PersistentIStream &, int);
Standard functions for writing and reading from persistent streams.
static void Init();
Standard Init function used to initialize the interfaces.
Protected members:
inline virtual IBPtr clone() const;
inline virtual IBPtr fullclone() const;
Standard clone methods.
inline virtual void doupdate() throw(UpdateException);
inline virtual void doinit() throw(InitException);
inline virtual void dofinish();
Standard Interfaced virtual functions.
inline virtual void rebind(const TranslationMap & trans)
throw(RebindException);
Change all pointers to Interfaced objects to corresponding clones.
inline virtual IVector getReferences();
Return pointers to all Interfaced objects refered to by this.
Private members:
static ClassDescription<ExampleDecayer> initExampleDecayer;
Describe a concrete class with persistent data.
ExampleDecayer & operator=(const ExampleDecayer &);
Private and non-existent assignment operator.
DEFINED MACROS
INCLUDED FILES