Page MenuHomeHEPForge

HwDecayHandler.h
No OneTemporary

Size
4 KB
Referenced Files
None
Subscribers
None

HwDecayHandler.h

// -*- C++ -*-
#ifndef HERWIG_HwDecayHandler_H
#define HERWIG_HwDecayHandler_H
//
// This is the declaration of the HwDecayHandler class.
//
#include "ThePEG/Handlers/DecayHandler.h"
#include "Herwig++/Hadronization/PartonicHadronizer.h"
#include "HwDecayHandler.fh"
using namespace ThePEG;
namespace Herwig {
/** \ingroup Decay
* The <code>HwDecayHandler</code> is the Herwig++ decay handler which
* administers the decays of unstable particles in Herwig++. It
* is derived from ThePEG::DecayHandler and includes a different handle
* method in order to simulate decays including spin correlations.
*
* The handle method decays all particles in the current step, including
* spin correlations. Another feature of the DecayHandler is that it correctly
* handles mutlistep decays where a Decayer supplys intermediate decay products
* in addition to the outgoing particles.
*
* @see ThePEG::StepHandler
* @see ThePEG::CollisionHandler
* @see ThePEG::SubProcessHandler
* @see ThePEG::DecayHandler
*
*/
class HwDecayHandler: public DecayHandler {
public:
/** @name Standard constructors and destructors. */
//@{
/**
* Default constructor
*/
inline HwDecayHandler();
//@}
public:
/**
* Look through all \a tagged particled and decay all unstable ones.
* @param eh the EventHandler in charge of the generation.
* @param tagged the vector of particles to consider. If empty, all
* final state particles in the current Step is considered.
* @param hint a possible Hint which is ignored in this implementation.
*/
virtual void handle(EventHandler & eh, const tPVector & tagged,
const Hint & hint)
throw(Veto, Stop, Exception);
/**
* Perform the decay of one unstable particle.
* @param parent the particle to be decayed.
* @param s the Step where decay products are inserted.
* @throws Veto if the Handler requires the current step to be discarded.
* @throws Exception if something goes wrong.
*/
virtual void performDecay(tPPtr parent, Step & s) const
throw(Veto, Exception);
/**
* add the decay products of in intermediate particle produced in a decay
* @param parent the particle which has been decayed.
* @param s the Step where decay products are inserted.
* @throws Veto if the Handler requires the current step to be discarded.
* @throws Exception if something goes wrong.
*/
void addDecayedParticle(tPPtr parent, Step & s) const
throw(Veto, Exception);
/**
* Standard Init function
*/
static void Init();
public:
/** @name Functions used by the persistent I/O system. */
//@{
/**
* Function used to write out object persistently.
* @param os the persistent output stream written to.
*/
void persistentOutput(PersistentOStream & os) const;
/**
* Function used to read in object persistently.
* @param is the persistent input stream read from.
* @param version the version number of the object when written.
*/
void persistentInput(PersistentIStream & is, int version);
//@}
protected:
/** @name Clone Methods. */
//@{
/**
* Make a simple clone of this object.
* @return a pointer to the new object.
*/
inline virtual IBPtr clone() const;
/** Make a clone of this object, possibly modifying the cloned object
* to make it sane.
* @return a pointer to the new object.
*/
inline virtual IBPtr fullclone() const;
//@}
private:
/**
* Describe a concrete class with persistent date/
*/
static ClassDescription<HwDecayHandler> initHwDecayHandler;
/**
* Private and non-existent assignment operator.
*/
HwDecayHandler & operator=(const HwDecayHandler &);
private:
/**
* Pointer to the object for the hadronization of partonic decays
*/
PartonicHadronizerPtr _partonhad;
/**
* Number of tries to regenerate a partonic decay to sucessfully hadronize it
*/
unsigned int _hadtry;
/**
* Option for adding particles in a new Step
*/
bool _newstep;
};
}
namespace ThePEG {
/** @cond TRAITSPECIALIZATIONS */
/**
* This template specialization informs ThePEG about the base class of
* Hw64Decayer.
*/
template <>
struct BaseClassTrait<Herwig::HwDecayHandler,1> {
/** Typedef of the base class of Hw64Decayer. */
typedef DecayHandler NthBase;
};
/**
* This template specialization informs ThePEG about the name of the
* Hw64Decayer class.
*/
template <>
struct ClassTraits<Herwig::HwDecayHandler>: public ClassTraitsBase<Herwig::HwDecayHandler> {
/** Return the class name. */
static string className() { return "Herwig::HwDecayHandler"; }
};
/** @endcond */
}
#include "HwDecayHandler.icc"
#endif /* HERWIG_HwDecayHandler_H */

File Metadata

Mime Type
text/x-c++
Expires
Tue, Sep 30, 6:11 AM (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6411240
Default Alt Text
HwDecayHandler.h (4 KB)

Event Timeline