thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
MEQQ2GG.h
1 // -*- C++ -*-
2 //
3 // MEQQ2GG.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2019 Leif Lonnblad
5 //
6 // ThePEG 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 ThePEG_MEQQ2GG_H
10 #define ThePEG_MEQQ2GG_H
11 // This is the declaration of the MEQQ2GG class.
12 
13 #include "ThePEG/MatrixElement/ME2to2QCD.h"
14 
15 namespace ThePEG {
16 
25 class MEQQ2GG: public ME2to2QCD {
26 
27 public:
28 
38  virtual double me2() const;
39 
43  virtual void getDiagrams() const;
44 
53  colourGeometries(tcDiagPtr diag) const;
54 
63  virtual Selector<DiagramIndex> diagrams(const DiagramVector & dv) const;
65 
66 protected:
67 
75  double colA() const
76  {
77  return uHat()/tHat() - 2.0*sqr(uHat()/sHat());
78  }
79 
80 
85  double colB() const
86  {
87  return tHat()/uHat() - 2.0*sqr(tHat()/sHat());
88  }
89 
91 
92 public:
93 
97  static void Init();
98 
99 protected:
100 
107  virtual IBPtr clone() const;
108 
113  virtual IBPtr fullclone() const;
115 
116 private:
117 
122 
126  MEQQ2GG & operator=(const MEQQ2GG &) = delete;
127 
128 };
129 
130 }
131 
132 
133 namespace ThePEG {
134 
139 template <>
140 struct BaseClassTrait<MEQQ2GG,1>: public ClassTraitsType {
142  typedef ME2to2QCD NthBase;
143 };
144 
147 template <>
148 struct ClassTraits<MEQQ2GG>: public ClassTraitsBase<MEQQ2GG> {
150  static string className() { return "ThePEG::MEQQ2GG"; }
154  static string library() { return "MEQCD.so"; }
155 };
156 
159 }
160 
161 #endif /* ThePEG_MEQQ2GG_H */
const DiagramVector & diagrams() const
Return all possible diagrams.
Definition: MEBase.h:284
MEQQ2GG inherits from ME2to2QCD and implements the standard matrix element.
Definition: MEQQ2GG.h:25
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual Selector< const ColourLines * > colourGeometries(tcDiagPtr diag) const
Return a Selector with possible colour geometries for the selected diagram weighted by their relative...
Energy2 sHat() const
Return the last set invariant mass squared.
Definition: MEBase.h:375
ClassTraitsType is an empty, non-polymorphic, base class.
Definition: ClassTraits.h:30
virtual double me2() const
The matrix element for the kinematical configuration previously provided by the last call to setKinem...
MEQQ2GG & operator=(const MEQQ2GG &)=delete
Private and non-existent assignment operator.
constexpr auto sqr(const T &x) -> decltype(x *x)
The square function should really have been included in the standard C++ library. ...
Definition: ThePEG.h:117
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
A concreate implementation of ClassDescriptionBase describing a concrete class without persistent dat...
Energy2 uHat() const
Return the of the last set phase space point.
Definition: ME2to2Base.h:114
static NoPIOClassDescription< MEQQ2GG > initMEQQ2GG
Describe a concrete class without persistent data.
Definition: MEQQ2GG.h:121
virtual void getDiagrams() const
Add all possible diagrams with the add() function.
The ME2to2QCD class inherits from the ME2to2Base class and can be used as a sub class for all QCD 2 ...
Definition: ME2to2QCD.h:28
Energy2 tHat() const
Return the of the last set phase space point.
Definition: ME2to2Base.h:109
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
Selector is a templated class for storing objects associated with probabilities in a way such that...
Definition: Selector.h:46
vector< DiagPtr > DiagramVector
A vector of pointers to DiagramBase objects.
Definition: MEBase.h:77
virtual IBPtr clone() const
Make a simple clone of this object.
The default concrete implementation of ClassTraitsBase.
Definition: ClassTraits.h:134
double colB() const
Return the matrix element squared (without common pre-factors) for the specific colour configuration...
Definition: MEQQ2GG.h:85
double colA() const
Return the matrix element squared (without common pre-factors) for the specific colour configuration...
Definition: MEQQ2GG.h:75
BaseClassTraits describes the base classes of the templated class.
Definition: ClassTraits.h:156
static void Init()
Standard Init function used to initialize the interfaces.
The templated ClassTraitsBase class defines a set of default information about classes used by ThePEG...
Definition: ClassTraits.h:52