herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.2.1
Decay
HwDecayerBase.h
1
// -*- C++ -*-
2
//
3
// HwDecayerBase.h is a part of Herwig - A multi-purpose Monte Carlo event generator
4
// Copyright (C) 2002-2019 The Herwig Collaboration
5
//
6
// Herwig 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 HERWIG_HwDecayerBase_H
10
#define HERWIG_HwDecayerBase_H
11
//
12
// This is the declaration of the HwDecayerBase class.
13
//
14
15
#include "ThePEG/PDT/Decayer.h"
16
#include "Herwig/Shower/RealEmissionProcess.fh"
17
#include "HwDecayerBase.fh"
18
19
namespace
Herwig
{
20
21
struct
Branching;
22
23
using namespace
ThePEG
;
24
37
class
HwDecayerBase
:
public
Decayer
{
38
39
public
:
40
44
HwDecayerBase
() : _initialize(false), _dbOutput(false) {}
45
54
virtual
bool
accept(
const
DecayMode
& dm)
const
;
55
62
virtual
ParticleVector
decay(
const
DecayMode
& dm,
const
Particle
& p)
const
;
64
65
public
:
66
72
76
enum
POWHEGType
{No, ISR, FSR, Both};
77
78
82
virtual
POWHEGType
hasPOWHEGCorrection
() {
return
No;}
83
84
88
virtual
bool
hasMECorrection
() {
return
false
;}
89
93
virtual
void
initializeMECorrection(RealEmissionProcessPtr ,
double
& ,
94
double
& );
95
99
virtual
RealEmissionProcessPtr applyHardMatrixElementCorrection(RealEmissionProcessPtr);
100
113
virtual
bool
softMatrixElementVeto(
PPtr
parent,
114
PPtr
progenitor,
115
const
bool
& fs,
116
const
Energy & highestpT,
117
const
vector<tcPDPtr> & ids,
118
const
double
& z,
119
const
Energy & scale,
120
const
Energy & pT);
121
125
virtual
RealEmissionProcessPtr generateHardest(RealEmissionProcessPtr);
127
128
protected
:
129
141
virtual
bool
accept(
tcPDPtr
parent,
const
tPDVector
& children)
const
= 0;
142
149
virtual
ParticleVector
decay(
const
Particle
& parent,
150
const
tPDVector
& children)
const
= 0;
152
153
public
:
154
161
void
persistentOutput(
PersistentOStream
& os)
const
;
162
168
void
persistentInput(
PersistentIStream
& is,
int
version);
170
177
static
void
Init();
178
179
public
:
180
190
virtual
void
dataBaseOutput(ofstream & os,
bool
header)
const
= 0;
191
195
bool
initialize
()
const
{
return
_initialize;}
196
200
bool
databaseOutput
()
const
{
return
_dbOutput;}
202
203
protected
:
204
208
void
fixRho(
RhoDMatrix
&)
const
;
209
210
protected
:
211
218
virtual
void
dofinish();
220
221
private
:
222
227
HwDecayerBase
& operator=(
const
HwDecayerBase
&) =
delete
;
228
229
private
:
230
234
bool
_initialize
;
235
239
bool
_dbOutput
;
240
};
241
242
}
243
244
#endif
/* HERWIG_HwDecayerBase_H */
ThePEG::PPtr
ThePEG::Ptr< Particle >::pointer PPtr
ThePEG::PersistentIStream
ThePEG::Particle
ThePEG::PersistentOStream
Herwig::HwDecayerBase::hasMECorrection
virtual bool hasMECorrection()
Has an old fashioned ME correction.
Definition:
HwDecayerBase.h:88
ThePEG
Herwig::HwDecayerBase::HwDecayerBase
HwDecayerBase()
The default constructor.
Definition:
HwDecayerBase.h:44
ThePEG::tPDVector
vector< tPDPtr > tPDVector
Herwig::HwDecayerBase::POWHEGType
POWHEGType
Virtual members to be overridden by inheriting classes which implement hard corrections.
Definition:
HwDecayerBase.h:76
Herwig::HwDecayerBase::initialize
bool initialize() const
Access to the initialize variable.
Definition:
HwDecayerBase.h:195
ThePEG::tcPDPtr
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
Herwig::HwDecayerBase::databaseOutput
bool databaseOutput() const
Access the database output variable.
Definition:
HwDecayerBase.h:200
Herwig::HwDecayerBase
The HwDecayerBase class is the base class for Decayers in Herwig.
Definition:
HwDecayerBase.h:37
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG::DecayMode
Herwig::HwDecayerBase::_initialize
bool _initialize
perform initialisation
Definition:
HwDecayerBase.h:234
ThePEG::Decayer
ThePEG::ParticleVector
vector< PPtr > ParticleVector
ThePEG::RhoDMatrix
Herwig::HwDecayerBase::hasPOWHEGCorrection
virtual POWHEGType hasPOWHEGCorrection()
Has a POWHEG style correction.
Definition:
HwDecayerBase.h:82
Herwig::HwDecayerBase::_dbOutput
bool _dbOutput
Print out database.
Definition:
HwDecayerBase.h:239
Generated on Sat Apr 11 2020 14:50:29 for Herwig by
1.8.13