thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
PDT
ColourPairDecayer.h
1
// -*- C++ -*-
2
//
3
// ColourPairDecayer.h is a part of ThePEG - Toolkit for HEP Event Generation
4
// Copyright (C) 1999-2019 Leif Lonnblad
5
//
6
// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8
//
9
#ifndef THEPEG_ColourPairDecayer_H
10
#define THEPEG_ColourPairDecayer_H
11
// This is the declaration of the ColourPairDecayer class.
12
13
#include "ThePEG/PDT/FlatDecayer.h"
14
15
namespace
ThePEG
{
16
26
class
ColourPairDecayer
:
public
FlatDecayer
{
27
28
public
:
29
35
ColourPairDecayer
() :
doShower
(true) {}
37
38
public
:
39
49
virtual
bool
accept
(
const
DecayMode
& dm)
const
;
50
56
virtual
ParticleVector
getChildren
(
const
DecayMode
& dm,
57
const
Particle
& parent)
const
;
59
64
bool
shower
()
const
{
return
doShower
; }
65
66
public
:
67
74
void
persistentOutput
(
PersistentOStream
& os)
const
;
75
81
void
persistentInput
(
PersistentIStream
& is,
int
version);
83
87
static
void
Init
();
88
89
protected
:
90
97
virtual
IBPtr
clone
()
const
;
98
103
virtual
IBPtr
fullclone
()
const
;
105
106
private
:
107
111
bool
doShower
;
112
113
private
:
114
118
static
ClassDescription<ColourPairDecayer>
initColourPairDecayer
;
119
123
ColourPairDecayer
&
operator=
(
const
ColourPairDecayer
&) =
delete
;
124
125
};
126
127
}
128
129
130
namespace
ThePEG
{
131
136
template
<>
137
struct
BaseClassTrait<ColourPairDecayer,1>:
public
ClassTraitsType {
139
typedef
FlatDecayer
NthBase
;
140
};
141
145
template
<>
146
struct
ClassTraits<ColourPairDecayer>
147
:
public
ClassTraitsBase<ColourPairDecayer> {
149
static
string
className
() {
return
"ThePEG::ColourPairDecayer"
; }
153
static
string
library
() {
return
"ColourPairDecayer.so"
; }
154
155
};
156
159
}
160
161
#endif
/* THEPEG_ColourPairDecayer_H */
ThePEG::ClassDescription
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data.
Definition:
ClassDescription.h:333
ThePEG::ColourPairDecayer
ColourPairDecayer inherits from the FlatDecayer class and performs decays according to phase space in...
Definition:
ColourPairDecayer.h:26
ThePEG::ColourPairDecayer::initColourPairDecayer
static ClassDescription< ColourPairDecayer > initColourPairDecayer
Describe a concrete class with persistent data.
Definition:
ColourPairDecayer.h:118
ThePEG::ColourPairDecayer::clone
virtual IBPtr clone() const
Make a simple clone of this object.
ThePEG::ColourPairDecayer::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
ThePEG::ColourPairDecayer::getChildren
virtual ParticleVector getChildren(const DecayMode &dm, const Particle &parent) const
Produce children.
ThePEG::ColourPairDecayer::doShower
bool doShower
If true the produced gluons and quarks should be showered.
Definition:
ColourPairDecayer.h:111
ThePEG::ColourPairDecayer::ColourPairDecayer
ColourPairDecayer()
Default constructor.
Definition:
ColourPairDecayer.h:35
ThePEG::ColourPairDecayer::operator=
ColourPairDecayer & operator=(const ColourPairDecayer &)=delete
Private and non-existent assignment operator.
ThePEG::ColourPairDecayer::accept
virtual bool accept(const DecayMode &dm) const
Check if this decayer can perfom the decay specified by the given decay mode.
ThePEG::ColourPairDecayer::shower
bool shower() const
Return true if the produced gluons and quarks should be showered.
Definition:
ColourPairDecayer.h:64
ThePEG::ColourPairDecayer::Init
static void Init()
Standard Init function used to initialize the interfaces.
ThePEG::ColourPairDecayer::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
ThePEG::ColourPairDecayer::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
ThePEG::DecayMode
The DecayMode class describes a decay channel of a particle.
Definition:
DecayMode.h:87
ThePEG::FlatDecayer
The FlatDecayer class inrerits from the abstract Decayer class and implements the decay of a given Pa...
Definition:
FlatDecayer.h:33
ThePEG::Particle
The Particle class is used to describe an instance of a particle.
Definition:
Particle.h:83
ThePEG::PersistentIStream
PersistentIStream is used to read persistent objects from a stream where they were previously written...
Definition:
PersistentIStream.h:48
ThePEG::PersistentOStream
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
Definition:
PersistentOStream.h:51
ThePEG::Pointer::RCPtr
RCPtr is a reference counted (smart) pointer.
Definition:
RCPtr.h:60
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
ThePEG::ParticleVector
vector< PPtr > ParticleVector
A vector of pointers to Particle objects.
Definition:
Containers.h:73
ThePEG::BaseClassTrait::NthBase
int NthBase
The type of the BaseN'th base class (int means there are no further base classes).
Definition:
ClassTraits.h:161
ThePEG::ClassTraitsBase::className
static string className()
Return the name of class T.
Definition:
ClassTraits.h:66
ThePEG::ClassTraitsBase::library
static string library()
The name of a file containing the dynamic library where the class T is implemented.
Definition:
ClassTraits.h:85
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6