herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
MatrixElement
Matchbox
Phasespace
MatchboxReference.h
1
// -*- C++ -*-
2
//
3
// MatchboxReference.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_MatchboxReference_H
10
#define Herwig_MatchboxReference_H
11
//
12
// This is the declaration of the MatchboxReference class.
13
//
14
15
#include "Herwig/MatrixElement/Matchbox/Phasespace/MatchboxPhasespace.h"
16
17
namespace
Herwig
{
18
19
using namespace
ThePEG
;
20
28
class
MatchboxReference
:
public
MatchboxPhasespace
{
29
30
public
:
31
35
virtual
double
generateTwoToNKinematics
(
const
double
*,
36
vector<Lorentz5Momentum>& momenta);
37
42
virtual
int
nDimPhasespace
(
int
nFinal)
const
{
43
if
( nFinal == 1 )
44
return
1;
45
return
4*nFinal + 2;
46
}
47
52
virtual
bool
haveX1X2
()
const
{
return
true
; }
53
58
virtual
bool
wantCMS
()
const
{
return
false
; }
59
60
public
:
61
68
void
persistentOutput
(
PersistentOStream
& os)
const
;
69
75
void
persistentInput
(
PersistentIStream
& is,
int
version);
77
84
static
void
Init
();
85
86
protected
:
87
94
virtual
IBPtr
clone
()
const
;
95
100
virtual
IBPtr
fullclone
()
const
;
102
103
104
// If needed, insert declarations of virtual function defined in the
105
// InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
106
107
108
private
:
109
114
MatchboxReference
&
operator=
(
const
MatchboxReference
&) =
delete
;
115
119
map<cPDVector,ifstream*>
referenceSamples
;
120
121
};
122
123
}
124
125
#endif
/* Herwig_MatchboxReference_H */
Herwig::MatchboxPhasespace
MatchboxPhasespace defines an abstract interface to a phase space generator.
Definition:
MatchboxPhasespace.h:82
Herwig::MatchboxReference
MatchboxReference implements reference sample phase space generation.
Definition:
MatchboxReference.h:28
Herwig::MatchboxReference::generateTwoToNKinematics
virtual double generateTwoToNKinematics(const double *, vector< Lorentz5Momentum > &momenta)
Generate a phase space point and return its weight.
Herwig::MatchboxReference::nDimPhasespace
virtual int nDimPhasespace(int nFinal) const
Return the number of random numbers required to produce a given multiplicity final state.
Definition:
MatchboxReference.h:42
Herwig::MatchboxReference::operator=
MatchboxReference & operator=(const MatchboxReference &)=delete
The assignment operator is private and must never be called.
Herwig::MatchboxReference::haveX1X2
virtual bool haveX1X2() const
Return true, if this phase space generator will generate incoming partons itself.
Definition:
MatchboxReference.h:52
Herwig::MatchboxReference::clone
virtual IBPtr clone() const
Make a simple clone of this object.
Herwig::MatchboxReference::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
Herwig::MatchboxReference::referenceSamples
map< cPDVector, ifstream * > referenceSamples
Stream to read the reference samples.
Definition:
MatchboxReference.h:119
Herwig::MatchboxReference::wantCMS
virtual bool wantCMS() const
Return true, if this phase space generator expects the incoming partons in their center-of-mass syste...
Definition:
MatchboxReference.h:58
Herwig::MatchboxReference::Init
static void Init()
The standard Init function used to initialize the interfaces.
Herwig::MatchboxReference::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
Herwig::MatchboxReference::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
ThePEG::PersistentIStream
ThePEG::PersistentOStream
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG
ThePEG::IBPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
Generated on Thu Jun 20 2024 17:50:53 for Herwig by
1.9.6