Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F9501151
QEDRadiationHandler.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
5 KB
Subscribers
None
QEDRadiationHandler.h
View Options
// -*- C++ -*-
#ifndef HERWIG_QEDRadiationHandler_H
#define HERWIG_QEDRadiationHandler_H
//
// This is the declaration of the QEDRadiationHandler class.
//
#include
"ThePEG/Handlers/StepHandler.h"
#include
"DecayRadiationGenerator.fh"
#include
"QEDRadiationHandler.fh"
namespace
Herwig
{
using
namespace
ThePEG
;
/**
* The QEDRadiationHandler class is designed so that the approach
* for the generation of QED radiation in decays can be used to generate
* QED radiation from the decay products of \f$s\f$-channel resonances
* produced in the hard process where the decay products of the resonance
* have been generated as part of the hard process.
*
* It is designed to be used as a PostSubProcessHandler.
*
* @see \ref QEDRadiationHandlerInterfaces "The interfaces"
* defined for QEDRadiationHandler.
*/
class
QEDRadiationHandler
:
public
StepHandler
{
public
:
/** @name Standard constructors and destructors. */
//@{
/**
* The default constructor.
*/
QEDRadiationHandler
();
//@}
public
:
/** @name Virtual functions required by the StepHandler class. */
//@{
/**
* The main function called by the EventHandler class to
* perform a step. Given the current state of an Event, this function
* performs the event generation step and includes the result in a new
* Step object int the Event record.
* @param eh the EventHandler in charge of the Event generation.
* @param tagged if not empty these are the only particles which should
* be considered by the StepHandler.
* @param hint a Hint object with possible information from previously
* performed steps.
* @throws Veto if the StepHandler requires the current step to be discarded.
* @throws Stop if the generation of the current Event should be stopped
* after this call.
* @throws Exception if something goes wrong.
*/
virtual
void
handle
(
EventHandler
&
eh
,
const
tPVector
&
tagged
,
const
Hint
&
hint
)
throw
(
Veto
,
Stop
,
Exception
);
//@}
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
<
QEDRadiationHandler
>
initQEDRadiationHandler
;
/**
* The assignment operator is private and must never be called.
* In fact, it should not even be implemented.
*/
QEDRadiationHandler
&
operator
=
(
const
QEDRadiationHandler
&
);
private
:
/**
* Pointer to the object responsible for generating the radiation in
* the decays
*/
DecayRadiationGeneratorPtr
_generator
;
/**
* List of the PDG codes of the decaying particles which should be considered
*/
vector
<
long
>
_decayingParticles
;
/**
* List of the PDG codes of the decay products which should be considered
*/
vector
<
long
>
_decayProducts
;
};
}
#include
"ThePEG/Utilities/ClassTraits.h"
namespace
ThePEG
{
/** @cond TRAITSPECIALIZATIONS */
/** This template specialization informs ThePEG about the
* base classes of QEDRadiationHandler. */
template
<>
struct
BaseClassTrait
<
Herwig
::
QEDRadiationHandler
,
1
>
{
/** Typedef of the first base class of QEDRadiationHandler. */
typedef
StepHandler
NthBase
;
};
/** This template specialization informs ThePEG about the name of
* the QEDRadiationHandler class and the shared object where it is defined. */
template
<>
struct
ClassTraits
<
Herwig
::
QEDRadiationHandler
>
:
public
ClassTraitsBase
<
Herwig
::
QEDRadiationHandler
>
{
/** Return a platform-independent class name */
static
string
className
()
{
return
"Herwig++::QEDRadiationHandler"
;
}
/**
* The name of a file containing the dynamic library where the class
* QEDRadiationHandler is implemented. It may also include several, space-separated,
* libraries if the class QEDRadiationHandler depends on other classes (base classes
* excepted). In this case the listed libraries will be dynamically
* linked in the order they are specified.
*/
static
string
library
()
{
return
"libHwDecRad.so"
;
}
};
/** @endcond */
}
#include
"QEDRadiationHandler.icc"
#ifndef ThePEG_TEMPLATES_IN_CC_FILE
// #include "QEDRadiationHandler.tcc"
#endif
#endif
/* HERWIG_QEDRadiationHandler_H */
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Feb 23, 1:58 PM (1 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4486415
Default Alt Text
QEDRadiationHandler.h (5 KB)
Attached To
rHERWIGHG herwighg
Event Timeline
Log In to Comment