Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19244194
MamboDecayer.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
5 KB
Referenced Files
None
Subscribers
None
MamboDecayer.h
View Options
// -*- C++ -*-
#ifndef HERWIG_MamboDecayer_H
#define HERWIG_MamboDecayer_H
//
// This is the declaration of the MamboDecayer class.
//
#include
"ThePEG/PDT/Decayer.h"
#include
"ThePEG/PDT/DecayMode.h"
#include
"MamboDecayer.fh"
namespace
Herwig
{
using
namespace
ThePEG
;
/**
* The MamboDecayer class inherits from the Decayer class in
* ThePEG and implements the algorithm of R.Kleiss and
* W.J.Stirling NPB 385 (1992) 413-432 for massive multi-particle phase-space
* decays
*/
class
MamboDecayer
:
public
Decayer
{
public
:
/**
* The default constructor.
*/
inline
MamboDecayer
();
/** @name Virtual functions required by the Decayer class. */
//@{
/**
* Check if this decayer can perfom the decay specified by the
* given decay mode.
* @param dm the DecayMode describing the decay.
* @return true if this decayer can handle the given mode, otherwise false.
*/
virtual
bool
accept
(
const
DecayMode
&
dm
)
const
;
/**
* Perform a decay for a given DecayMode and a given Particle instance.
* @param dm the DecayMode describing the decay.
* @param p the Particle instance to be decayed.
* @return a ParticleVector containing the decay products.
*/
virtual
ParticleVector
decay
(
const
DecayMode
&
dm
,
const
Particle
&
p
)
const
;
//@}
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
);
//@}
/**
* The standard Init function used to initialize the interfaces.
* Called exactly once for each class by the class description system
* before the main function starts or
* when this class is dynamically loaded.
*/
static
void
Init
();
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
:
/**
* The static object used to initialize the description of this class.
* Indicates that this is a concrete class with persistent data.
*/
static
ClassDescription
<
MamboDecayer
>
initMamboDecayer
;
/**
* The assignment operator is private and must never be called.
* In fact, it should not even be implemented.
*/
MamboDecayer
&
operator
=
(
const
MamboDecayer
&
);
private
:
/**
*Set array of mometum to particles
*@param mom Momentum set to be distributed over phase-space
*@param comEn The mass of the decaying particle
*@return The weight of the configuration
**/
double
calculateMomentum
(
vector
<
Lorentz5Momentum
>
&
mom
,
const
Energy
&
comEn
)
const
;
/**
*Bessel function of first kind(n=0)
*@param x Argument of Bessel Function
*@return long double
**/
inline
long
double
BessI0
(
const
long
double
&
x
)
const
;
/**
*Bessel function of first kind(n=1)
*@param x Argument of Bessel Function
*@return long double
**/
inline
long
double
BessI1
(
const
long
double
&
x
)
const
;
/**
*Bessel function of second kind(n=0)
*@param x Argument of Bessel Function
*@return long double
**/
inline
long
double
BessK0
(
const
long
double
&
x
)
const
;
/**
*Bessel function of second kind(n=1)
*@param x Argument of Bessel Function
*@return long double
**/
inline
long
double
BessK1
(
const
long
double
&
x
)
const
;
/**
* Derivative of ratio K0/K1
*@param x Argument of Bessel Function
*@return long double
**/
inline
long
double
BessKPrime
(
const
long
double
&
x
)
const
;
/**
* Maximum weight
*/
double
_maxweight
;
};
}
#include
"ThePEG/Utilities/ClassTraits.h"
namespace
ThePEG
{
/** @cond TRAITSPECIALIZATIONS */
/** This template specialization informs ThePEG about the
* base classes of MamboDecayer. */
template
<>
struct
BaseClassTrait
<
Herwig
::
MamboDecayer
,
1
>
{
/** Typedef of the first base class of MamboDecayer. */
typedef
Decayer
NthBase
;
};
/** This template specialization informs ThePEG about the name of
* the MamboDecayer class and the shared object where it is defined. */
template
<>
struct
ClassTraits
<
Herwig
::
MamboDecayer
>
:
public
ClassTraitsBase
<
Herwig
::
MamboDecayer
>
{
/** Return a platform-independent class name */
static
string
className
()
{
return
"Herwig::MamboDecayer"
;
}
/** Return the name of the shared library be loaded to get
* access to the MamboDecayer class and every other class it uses
* (except the base class). */
static
string
library
()
{
return
"HwMamboDecay.so"
;
}
};
/** @endcond */
}
#include
"MamboDecayer.icc"
#endif
/* HERWIG_MamboDecayer_H */
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Sep 30, 4:40 AM (11 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6490535
Default Alt Text
MamboDecayer.h (5 KB)
Attached To
Mode
rHERWIGHG herwighg
Attached
Detach File
Event Timeline
Log In to Comment