herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
FIqgxDipole.h
1// -*- C++ -*-
2//
3// FIqgxDipole.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_FIqgxDipole_H
10#define HERWIG_FIqgxDipole_H
11//
12// This is the declaration of the FIqgxDipole class.
13//
14
15#include "Herwig/MatrixElement/Matchbox/Dipoles/SubtractionDipole.h"
16
17namespace Herwig {
18
19using namespace ThePEG;
20
29
30public:
31
36
37public:
38
43 virtual bool canHandleEmitter(const cPDVector& partons, int emitter) const {
44 return emitter > 1 && abs(partons[emitter]->id()) < 7;
45 }
46
51 virtual bool canHandleSplitting(const cPDVector& partons, int emitter, int emission) const {
52 return canHandleEmitter(partons,emitter) && partons[emission]->id() == ParticleID::g;
53 }
54
59 virtual bool canHandleSpectator(const cPDVector& partons, int spectator) const {
60 return spectator < 2 && partons[spectator]->coloured();
61 }
62
67 virtual bool canHandle(const cPDVector& partons,
68 int emitter, int emission, int spectator) const;
69
70
79 virtual int samplingZ() const {return 3;}
85 virtual double me2() const;
86
90 virtual double me2Avg(double ccme2) const;
91
92public:
93
101
107 void persistentInput(PersistentIStream & is, int version);
109
116 static void Init();
117
118protected:
119
126 virtual IBPtr clone() const;
127
132 virtual IBPtr fullclone() const;
134
135
136// If needed, insert declarations of virtual function defined in the
137// InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
138
139
140private:
141
146 FIqgxDipole & operator=(const FIqgxDipole &) = delete;
147
148};
149
150}
151
152#endif /* HERWIG_FIqgxDipole_H */
FIqgxDipole implements the D_{q,g}^a subtraction dipole.
Definition: FIqgxDipole.h:28
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
virtual IBPtr clone() const
Make a simple clone of this object.
virtual bool canHandle(const cPDVector &partons, int emitter, int emission, int spectator) const
Return true, if this dipole applies to the selected configuration.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
virtual int samplingZ() const
How to sample the z-distribution.
Definition: FIqgxDipole.h:79
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual double me2Avg(double ccme2) const
Return the matrix element averaged over spin correlations.
virtual bool canHandleSpectator(const cPDVector &partons, int spectator) const
Return true, if this dipole can possibly handle the indicated spectator.
Definition: FIqgxDipole.h:59
FIqgxDipole()
The default constructor.
FIqgxDipole & operator=(const FIqgxDipole &)=delete
The assignment operator is private and must never be called.
virtual bool canHandleSplitting(const cPDVector &partons, int emitter, int emission) const
Return true, if this dipole can possibly handle the indicated splitting.
Definition: FIqgxDipole.h:51
virtual bool canHandleEmitter(const cPDVector &partons, int emitter) const
Return true, if this dipole can possibly handle the indicated emitter.
Definition: FIqgxDipole.h:43
static void Init()
The standard Init function used to initialize the interfaces.
virtual double me2() const
Return the matrix element for the kinematical configuation previously provided by the last call to se...
SubtractionDipole represents a dipole subtraction term in the formalism of Catani and Seymour.
static int emission(const RealEmissionKey &key)
Return the emission id of a real emission key.
static int emitter(const RealEmissionKey &key)
Return the emitter id of a real emission key.
static int spectator(const RealEmissionKey &key)
Return the spectator id of a real emission key.
-*- C++ -*-
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
vector< cPDPtr > cPDVector