herwig
is hosted by
Hepforge
,
IPPP Durham
Herwig
7.3.0
MatrixElement
Matchbox
Phasespace
PhasespaceCouplings.h
1
// -*- C++ -*-
2
//
3
// PhasespaceCouplings.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_PhasespaceCouplings_H
10
#define Herwig_PhasespaceCouplings_H
11
//
12
// This is the declaration of the PhasespaceCouplings class.
13
//
14
15
#include "ThePEG/Handlers/HandlerBase.h"
16
#include "ThePEG/Persistency/PersistentOStream.h"
17
#include "ThePEG/Persistency/PersistentIStream.h"
18
19
namespace
Herwig
{
20
21
using namespace
ThePEG
;
22
23
typedef
std::tuple<long,long,long> LTriple;
24
25
inline
PersistentOStream
&
operator<<
(
PersistentOStream
& os,
const
LTriple& t) {
26
os << std::get<0>(t) << std::get<1>(t) << std::get<2>(t);
27
return
os;
28
}
29
30
inline
PersistentIStream
&
operator>>
(
PersistentIStream
& is, LTriple& t) {
31
is >> std::get<0>(t) >> std::get<1>(t) >> std::get<2>(t);
32
return
is;
33
}
34
45
class
PhasespaceCouplings
:
public
HandlerBase
{
46
47
public
:
48
52
map<LTriple,double>&
couplings
() {
return
theCouplings
; }
53
57
const
map<LTriple,double>&
couplings
()
const
{
return
theCouplings
; }
58
59
public
:
60
67
void
persistentOutput
(
PersistentOStream
& os)
const
;
68
74
void
persistentInput
(
PersistentIStream
& is,
int
version);
76
83
static
void
Init
();
84
85
protected
:
86
93
virtual
IBPtr
clone
()
const
;
94
99
virtual
IBPtr
fullclone
()
const
;
101
102
103
// If needed, insert declarations of virtual function defined in the
104
// InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
105
106
107
private
:
108
112
map<LTriple,double>
theCouplings
;
113
118
PhasespaceCouplings
&
operator=
(
const
PhasespaceCouplings
&) =
delete
;
119
120
};
121
122
}
123
124
#endif
/* Herwig_PhasespaceCouplings_H */
Herwig::PhasespaceCouplings
Store couplings for the phase space generator.
Definition:
PhasespaceCouplings.h:45
Herwig::PhasespaceCouplings::Init
static void Init()
The standard Init function used to initialize the interfaces.
Herwig::PhasespaceCouplings::theCouplings
map< LTriple, double > theCouplings
Couplings to be used in diagram weighting.
Definition:
PhasespaceCouplings.h:112
Herwig::PhasespaceCouplings::couplings
map< LTriple, double > & couplings()
Couplings to be used in diagram weighting.
Definition:
PhasespaceCouplings.h:52
Herwig::PhasespaceCouplings::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
Herwig::PhasespaceCouplings::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Herwig::PhasespaceCouplings::couplings
const map< LTriple, double > & couplings() const
Couplings to be used in diagram weighting.
Definition:
PhasespaceCouplings.h:57
Herwig::PhasespaceCouplings::clone
virtual IBPtr clone() const
Make a simple clone of this object.
Herwig::PhasespaceCouplings::operator=
PhasespaceCouplings & operator=(const PhasespaceCouplings &)=delete
The assignment operator is private and must never be called.
Herwig::PhasespaceCouplings::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
ThePEG::HandlerBase
ThePEG::PersistentIStream
ThePEG::PersistentOStream
Herwig
-*- C++ -*-
Definition:
BasicConsistency.h:17
ThePEG
ThePEG::operator>>
PersistentIStream & operator>>(PersistentIStream &is, HandlerGroup< HDLR > &hg)
ThePEG::IBPtr
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ThePEG::operator<<
ostream & operator<<(ostream &, const Collision &)
Generated on Thu Jun 20 2024 17:50:53 for Herwig by
1.9.6