Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19251465
MamboDecayer.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
MamboDecayer.h
View Options
// -*- C++ -*-
//
// MamboDecayer.h is a part of Herwig++ - A multi-purpose Monte Carlo event generator
// Copyright (C) 2002-2007 The Herwig Collaboration
//
// Herwig++ is licenced under version 2 of the GPL, see COPYING for details.
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
//
#ifndef HERWIG_MamboDecayer_H
#define HERWIG_MamboDecayer_H
//
// This is the declaration of the MamboDecayer class.
//
#include
"HwDecayerBase.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
HwDecayerBase
{
public
:
/**
* The default constructor.
*/
inline
MamboDecayer
();
/**
* Check if this decayer can perfom the decay for a particular mode
* @param parent The decaying particle
* @param children The decay products
* @return true If this decayer can handle the given mode, otherwise false.
*/
virtual
bool
accept
(
tcPDPtr
parent
,
const
PDVector
&
children
)
const
;
/**
* Perform the decay of the particle to the specified decay products
* @param parent The decaying particle
* @param children The decay products
* @return a ParticleVector containing the decay products.
*/
virtual
ParticleVector
decay
(
const
Particle
&
parent
,
const
PDVector
&
children
)
const
;
/**
* Output the setup information for the particle database
* @param os The stream to output the information to
* @param header Whether or not to output the information for MySQL
*/
virtual
void
dataBaseOutput
(
ofstream
&
os
,
bool
header
)
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
;
//@}
protected
:
/** @name Standard Interfaced functions. */
//@{
/**
* Initialize this object. Called in the run phase just before
* a run begins.
*/
inline
virtual
void
doinitrun
();
//@}
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
,
Energy
comEn
)
const
;
/**
* Set up the colour connections for the decay
* @param parent The incoming particle
* @param out The decay products
*/
void
colourConnections
(
const
Particle
&
parent
,
ParticleVector
&
out
)
const
;
/** @name Bessel Functions.*/
//@{
/**
* Compute the values \f$K_0(x)/K_1(x)\f$ and it's derivative using
* asymptotic expansion for large x values.
* @param x The argument
* @param f The value of the ratio
* @param fp The value of the derivative ratio
*/
inline
void
BesselFns
(
const
long
double
x
,
long
double
&
f
,
long
double
&
fp
)
const
;
/**
* Compute the values \f$I_0(x)/I_1(x)\f$ and it's derivative using
* asymptotic expansion.
* @param x The argument
* @param f The value of the ratio
* @param fp The value of the derivative ratio
*/
inline
void
BesselIExpand
(
const
long
double
x
,
long
double
&
f
,
long
double
&
fp
)
const
;
/**
* Modified Bessel function of first kind \f$I_0(x)\f$.
*@param x Argument of Bessel Function
**/
inline
long
double
BesselI0
(
const
long
double
x
)
const
;
/**
* Modified Bessel function of first kind \f$I_1(x)\f$.
*@param x Argument of Bessel Function
**/
inline
long
double
BesselI1
(
const
long
double
x
)
const
;
/**
* Modified Bessel function of second kind \f$K_0(x)\f$.
* @param x Argument of Bessel Function
**/
inline
long
double
BesselK0
(
const
long
double
x
)
const
;
/**
* Modified Bessel function of second kind \f$K_1(x)\f$.
* @param x Argument of Bessel Function
**/
inline
long
double
BesselK1
(
const
long
double
x
)
const
;
//@}
private
:
/**
* Maximum weight
*/
double
_maxweight
;
/**
* Store coefficents for aysymptotic expansion of \f$\frac{I_0}{I_1}\f$
*/
double
_a0
[
10
];
/**
* Store data for aysymptotic expansion of the first derivative
* \f$\frac{I_0}{I_1}\f$.
*/
double
_a1
[
10
];
};
}
#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
Herwig
::
HwDecayerBase
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, 5:55 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6461937
Default Alt Text
MamboDecayer.h (6 KB)
Attached To
Mode
rHERWIGHG herwighg
Attached
Detach File
Event Timeline
Log In to Comment