Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19244678
Hw64Decayer.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
Hw64Decayer.h
View Options
// -*- C++ -*-
#ifndef HERWIG_Hw64Decayer_H
#define HERWIG_Hw64Decayer_H
//
// This is the declaration of the Hw64Decayer class.
//
#include
<ThePEG/Config/ThePEG.h>
#include
<ThePEG/PDT/Decayer.h>
#include
<ThePEG/Interface/Interfaced.h>
#include
<ThePEG/PDT/DecayMode.h>
#include
<ThePEG/Repository/Strategy.fh>
#include
<fstream>
namespace
Herwig
{
using
namespace
ThePEG
;
/** \ingroup Decay
*
* <code>Hw64Decayer</code> is a class that defines all the general routines
* used in HERWIG++ to imitate the HERWIG 6.4 decays. The goal is to have an exact
* copy of HERWIG 6.4 decay routines. This will allow for easy 'callibration'
* of the new C++ code with the old Fortran code.
*
* This class handles the non-partonic decays. In general it is used for
* exclusive meson and baryon decays. Three different matrix elements are supported
*
* - MECode=0 flat-phase space.
* - MECode=100 free V-A matrix element
* - MECode=101 bound V-A matrix element
*
* @see HeavyDecayer
* @see QuarkoniumDecayer
* @see Decayer
*
*/
class
Hw64Decayer
:
public
Decayer
{
public
:
/** @name Standard constructors and destructors. */
//@{
/**
* Default constructor
*/
inline
Hw64Decayer
();
//@}
public
:
/**
* return true if this decayer can perfom the decay specified by the
* given decay mode.
*/
virtual
bool
accept
(
const
DecayMode
&
)
const
;
/**
* for a given decay mode and a given particle instance, perform the
* decay and return the decay products.
*/
virtual
ParticleVector
decay
(
const
DecayMode
&
,
const
Particle
&
)
const
;
/**
* Standard Init function used to initialize the interface.
*/
static
void
Init
();
/** @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.
*/
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.
*/
virtual
IBPtr
fullclone
()
const
;
//@}
private
:
/**
* Perform a one body decay, used for \f$K^0,\bar{K}^0\to K_{L,S}\f$.
* Two body decay is handled in static class Kinematics
*/
static
void
oneBodyDecay
(
Lorentz5Momentum
,
Lorentz5Momentum
&
);
/**
* Weighting of phase space for V-A matrix elements
*/
static
double
VAWt
(
double
*
);
/**
* Take an array of momenta and set the momentum member of the particles.
* @param moms The input momenta to be assigned to the particles.
* @param particles The particles whose momenta is to be set.
* @param out The particles outputted with their momenta set.
*/
void
setParticleMomentum
(
ParticleVector
&
out
,
cPDVector
particles
,
vector
<
Lorentz5Momentum
>
moms
)
const
;
/**
* Describe a concrete class with persistant data.
*/
static
ClassDescription
<
Hw64Decayer
>
initHw64Decayer
;
/**
* Private and non-existent assignment operator.
*/
const
Hw64Decayer
&
operator
=
(
const
Hw64Decayer
&
);
private
:
/**
* The code for the matrix element being used.
*/
int
MECode
;
/**
* Maximum number of attempts to generate the off-shell masses
*/
unsigned
int
_masstry
;
};
}
namespace
ThePEG
{
/** @cond TRAITSPECIALIZATIONS */
/**
* This template specialization informs ThePEG about the base class of
* Hw64Decayer.
*/
template
<>
struct
BaseClassTrait
<
Herwig
::
Hw64Decayer
,
1
>
{
/** Typedef of the base class of Hw64Decayer. */
typedef
Decayer
NthBase
;
};
/**
* This template specialization informs ThePEG about the name of the
* Hw64Decayer class.
*/
template
<>
struct
ClassTraits
<
Herwig
::
Hw64Decayer
>:
public
ClassTraitsBase
<
Herwig
::
Hw64Decayer
>
{
/** Return the class name. */
static
string
className
()
{
return
"Herwig++::Hw64Decayer"
;
}
/** Return the name of the shared library to be loaded to get
* access to this class and every other class it uses
* (except the base class).
*/
static
string
library
()
{
return
"Hw64Decay.so"
;
}
};
/** @endcond */
}
#include
"Hw64Decayer.icc"
#endif
/* HERWIG_Hw64Decayer_H */
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Sep 30, 4:44 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6465523
Default Alt Text
Hw64Decayer.h (4 KB)
Attached To
Mode
rHERWIGHG herwighg
Attached
Detach File
Event Timeline
Log In to Comment