herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
Models
General
ResonantProcessConstructor.h
1
// -*- C++ -*-
2
//
3
// ResonantProcessConstructor.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_ResonantProcessConstructor_H
10
#define HERWIG_ResonantProcessConstructor_H
11
//
12
// This is the declaration of the ResonantProcessConstructor class.
13
//
14
15
#include "HardProcessConstructor.h"
16
#include "ThePEG/Utilities/Exception.h"
17
#include "ResonantProcessConstructor.fh"
18
19
namespace
Herwig
{
20
using namespace
ThePEG
;
21
30
class
ResonantProcessConstructor
:
public
HardProcessConstructor
{
31
32
public
:
33
35
typedef
set<tPDPtr>
tPDSet
;
36
38
typedef
vector<vector<double> >
CFMatrix
;
39
41
enum
direction
{incoming, outgoing};
42
43
public
:
44
48
ResonantProcessConstructor
() :
49
processOption_
(0),
scaleChoice_
(1),
scaleFactor_
(1.),
50
incoming_
(0),
intermediates_
(0),
51
outgoing_
(0),
diagrams_
(0)
52
{}
53
54
public
:
55
62
void
persistentOutput
(
PersistentOStream
& os)
const
;
63
69
void
persistentInput
(
PersistentIStream
& is,
int
version);
71
78
static
void
Init
();
79
83
void
constructDiagrams
() ;
84
85
protected
:
86
93
virtual
IBPtr
clone
()
const
;
94
99
virtual
IBPtr
fullclone
()
const
;
101
102
protected
:
103
111
virtual
void
doinit
();
113
114
private
:
115
119
void
constructVertex2
(
IDPair
in, VertexBasePtr vertex,
120
PDPtr
partc);
121
125
void
makeResonantDiagram
(
IDPair
in,
PDPtr
offshell,
long
outa,
126
long
outb,
VBPair
vertices);
127
139
tPDSet
search
(VertexBasePtr vertex,
long
part1,
direction
d1,
140
long
part2,
direction
d2,
direction
d3 = outgoing);
141
145
IDPair
find
(
long
part,
const
PDVector
& out)
const
;
146
150
void
createMatrixElement
(
const
HPDiagram
& diag)
const
;
151
155
string
MEClassname
(
const
tcPDVector
& extpart,
tcPDPtr
inter,
156
string
& objname)
const
;
157
158
private
:
159
164
ResonantProcessConstructor
&
operator=
(
const
ResonantProcessConstructor
&) =
delete
;
165
166
private
:
167
171
unsigned
int
processOption_
;
172
176
unsigned
int
scaleChoice_
;
177
181
double
scaleFactor_
;
182
186
vector<PDPtr>
incoming_
;
187
191
vector<PDPtr>
intermediates_
;
192
196
vector<PDPtr>
outgoing_
;
197
201
vector<HPDiagram>
diagrams_
;
202
203
};
204
206
class
RPConstructorError
:
public
Exception
{};
207
208
}
209
210
211
#endif
/* HERWIG_ResonantProcessConstructor_H */
Herwig::HardProcessConstructor
Here is the documentation of the HardProcessConstructor class.
Definition:
HardProcessConstructor.h:27
Herwig::RPConstructorError
Exception class indicating setup problem.
Definition:
ResonantProcessConstructor.h:206
Herwig::ResonantProcessConstructor
This class is designed to construct the diagrams for resonant processes using a provdided set of part...
Definition:
ResonantProcessConstructor.h:30
Herwig::ResonantProcessConstructor::tPDSet
set< tPDPtr > tPDSet
Set of ParticleData pointers.
Definition:
ResonantProcessConstructor.h:35
Herwig::ResonantProcessConstructor::makeResonantDiagram
void makeResonantDiagram(IDPair in, PDPtr offshell, long outa, long outb, VBPair vertices)
Function to create the appropriate diagrams.
Herwig::ResonantProcessConstructor::processOption_
unsigned int processOption_
Which types of processes to generate.
Definition:
ResonantProcessConstructor.h:171
Herwig::ResonantProcessConstructor::incoming_
vector< PDPtr > incoming_
Storage for the required intermediate particles.
Definition:
ResonantProcessConstructor.h:186
Herwig::ResonantProcessConstructor::CFMatrix
vector< vector< double > > CFMatrix
Nested vector of doubles.
Definition:
ResonantProcessConstructor.h:38
Herwig::ResonantProcessConstructor::intermediates_
vector< PDPtr > intermediates_
Storage for the required intermediate particles.
Definition:
ResonantProcessConstructor.h:191
Herwig::ResonantProcessConstructor::createMatrixElement
void createMatrixElement(const HPDiagram &diag) const
Create a matrix element from the given resonant process diagram.
Herwig::ResonantProcessConstructor::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Herwig::ResonantProcessConstructor::find
IDPair find(long part, const PDVector &out) const
Return the pair of outgoing particles from the list.
Herwig::ResonantProcessConstructor::operator=
ResonantProcessConstructor & operator=(const ResonantProcessConstructor &)=delete
The assignment operator is private and must never be called.
Herwig::ResonantProcessConstructor::constructDiagrams
void constructDiagrams()
The main function to create the resonant diagrams.
Herwig::ResonantProcessConstructor::doinit
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
Herwig::ResonantProcessConstructor::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
Herwig::ResonantProcessConstructor::Init
static void Init()
The standard Init function used to initialize the interfaces.
Herwig::ResonantProcessConstructor::search
tPDSet search(VertexBasePtr vertex, long part1, direction d1, long part2, direction d2, direction d3=outgoing)
Given a vertex and 2 particle id's find the possible states that can be the 3rd external particle.
Herwig::ResonantProcessConstructor::scaleChoice_
unsigned int scaleChoice_
Scale choice.
Definition:
ResonantProcessConstructor.h:176
Herwig::ResonantProcessConstructor::diagrams_
vector< HPDiagram > diagrams_
Storage for the diagrams.
Definition:
ResonantProcessConstructor.h:201
Herwig::ResonantProcessConstructor::direction
direction
Enumeration for the direction.
Definition:
ResonantProcessConstructor.h:41
Herwig::ResonantProcessConstructor::ResonantProcessConstructor
ResonantProcessConstructor()
The default constructor.
Definition:
ResonantProcessConstructor.h:48
Herwig::ResonantProcessConstructor::outgoing_
vector< PDPtr > outgoing_
Storage for the required intermediate particles.
Definition:
ResonantProcessConstructor.h:196
Herwig::ResonantProcessConstructor::clone
virtual IBPtr clone() const
Make a simple clone of this object.
Herwig::ResonantProcessConstructor::MEClassname
string MEClassname(const tcPDVector &extpart, tcPDPtr inter, string &objname) const
Create the correct classname and objectname for a matrix element.
Herwig::ResonantProcessConstructor::constructVertex2
void constructVertex2(IDPair in, VertexBasePtr vertex, PDPtr partc)
Utility function to help second vertex.
Herwig::ResonantProcessConstructor::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
Herwig::ResonantProcessConstructor::scaleFactor_
double scaleFactor_
Prefactor for the scale calculation.
Definition:
ResonantProcessConstructor.h:181
ThePEG::Exception
ThePEG::PersistentIStream
ThePEG::PersistentOStream
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
Herwig::IDPair
pair< long, long > IDPair
Pair of particle ids.
Definition:
HPDiagram.h:24
Herwig::VBPair
pair< VBPtr, VBPtr > VBPair
Pair of VertexBasePtrs.
Definition:
HPDiagram.h:33
ThePEG
ThePEG::PDVector
vector< PDPtr > PDVector
ThePEG::IBPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::tcPDPtr
ThePEG::Ptr< ParticleData >::transient_const_pointer tcPDPtr
ThePEG::PDPtr
ThePEG::Ptr< ParticleData >::pointer PDPtr
ThePEG::tcPDVector
vector< tcPDPtr > tcPDVector
Herwig::HPDiagram
The HPDiagram struct contains information about a 2->2 hard-process that has been automatically gener...
Definition:
HPDiagram.h:42
Generated on Thu Jun 20 2024 17:50:53 for Herwig by
1.9.6