herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
FIMassiveInvertedTildeKinematics.h
1// -*- C++ -*-
2//
3// FIMassiveInvertedTildeKinematics.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_FIMassiveInvertedTildeKinematics_H
10#define HERWIG_FIMassiveInvertedTildeKinematics_H
11//
12// This is the declaration of the FIMassiveInvertedTildeKinematics class.
13//
14
15#include "Herwig/MatrixElement/Matchbox/Phasespace/InvertedTildeKinematics.h"
16
17namespace Herwig {
18
19using namespace ThePEG;
20
30
31public:
32
41 virtual bool doMap(const double *);
42
46 virtual Energy lastPt() const;
47
51 virtual double lastZ() const;
52
56 virtual Energy ptMax() const;
57
61 virtual pair<double,double> zBounds(Energy pt, Energy hardPt = ZERO) const;
62
63public:
64
68 template <class T>
69 inline T rootOfKallen (T a, T b, T c) const {
70 return sqrt( a*a + b*b + c*c - 2.*( a*b+a*c+b*c ) ); }
71
72public:
73
81
87 void persistentInput(PersistentIStream & is, int version);
89
96 static void Init();
97
98protected:
99
106 virtual IBPtr clone() const;
107
112 virtual IBPtr fullclone() const;
114
115
116// If needed, insert declarations of virtual function defined in the
117// InterfacedBase class here (using ThePEG-interfaced-decl in Emacs).
118
119
120private:
121
127
128};
129
130}
131
132#endif /* HERWIG_FIMassiveInvertedTildeKinematics_H */
FIMassiveInvertedTildeKinematics inverts the final-final tilde kinematics.
virtual pair< double, double > zBounds(Energy pt, Energy hardPt=ZERO) const
Given a pt, return the boundaries on z.
virtual bool doMap(const double *)
Perform the mapping of the tilde kinematics for the last selected process and store all dimensionless...
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
virtual Energy ptMax() const
Return the upper bound on pt.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
static void Init()
The standard Init function used to initialize the interfaces.
virtual IBPtr clone() const
Make a simple clone of this object.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual Energy lastPt() const
Return the pt associated to the last generated splitting.
FIMassiveInvertedTildeKinematics & operator=(const FIMassiveInvertedTildeKinematics &)=delete
The assignment operator is private and must never be called.
virtual double lastZ() const
Return the momentum fraction associated to the last splitting.
T rootOfKallen(T a, T b, T c) const
Triangular / Kallen function.
InvertedTildeKinematics is the base class for the inverted 'tilde' kinematics being used for subtract...
-*- C++ -*-
double sqrt(int x)
ThePEG::Ptr< InterfacedBase >::pointer IBPtr
constexpr ZeroUnit ZERO