herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
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
19namespace Herwig {
20
21using namespace ThePEG;
22
23typedef std::tuple<long,long,long> LTriple;
24
25inline 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
30inline 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
46
47public:
48
52 map<LTriple,double>& couplings() { return theCouplings; }
53
57 const map<LTriple,double>& couplings() const { return theCouplings; }
58
59public:
60
68
74 void persistentInput(PersistentIStream & is, int version);
76
83 static void Init();
84
85protected:
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
107private:
108
112 map<LTriple,double> theCouplings;
113
119
120};
121
122}
123
124#endif /* Herwig_PhasespaceCouplings_H */
Store couplings for the phase space generator.
static void Init()
The standard Init function used to initialize the interfaces.
map< LTriple, double > theCouplings
Couplings to be used in diagram weighting.
map< LTriple, double > & couplings()
Couplings to be used in diagram weighting.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
const map< LTriple, double > & couplings() const
Couplings to be used in diagram weighting.
virtual IBPtr clone() const
Make a simple clone of this object.
PhasespaceCouplings & operator=(const PhasespaceCouplings &)=delete
The assignment operator is private and must never be called.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
-*- C++ -*-
PersistentIStream & operator>>(PersistentIStream &is, HandlerGroup< HDLR > &hg)
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
ostream & operator<<(ostream &, const Collision &)