ThePEG  1.8.0
MEQQ2qq2.h
1 // -*- C++ -*-
2 //
3 // MEQQ2qq2.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2011 Leif Lonnblad
5 //
6 // ThePEG is licenced under version 2 of the GPL, see COPYING for details.
7 // Please respect the MCnet academic guidelines, see GUIDELINES for details.
8 //
9 #ifndef ThePEG_MEQQ2qq_H
10 #define ThePEG_MEQQ2qq_H
11 // This is the declaration of the MEQQ2qq class.
12 
13 #include "ThePEG/MatrixElement/ME2to2QCD.h"
14 
15 namespace ThePEG {
16 
25 class MEQQ2qq: 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 (sqr(uHat()) + sqr(tHat()))/sqr(sHat());
78  }
80 
81 public:
82 
86  static void Init();
87 
88 protected:
89 
96  virtual IBPtr clone() const { return new_ptr(*this); }
97 
102  virtual IBPtr fullclone() const { return new_ptr(*this); }
104 
105 private:
106 
111 
115  MEQQ2qq & operator=(const MEQQ2qq &);
116 
117 };
118 
119 }
120 
121 
122 namespace ThePEG {
123 
128 template <>
129 struct BaseClassTrait<MEQQ2qq,1>: public ClassTraitsType {
131  typedef ME2to2QCD NthBase;
132 };
133 
136 template <>
137 struct ClassTraits<MEQQ2qq>: public ClassTraitsBase<MEQQ2qq> {
139  static string className() { return "ThePEG::MEQQ2qq"; }
143  static string library() { return "MEQCD.so"; }
144 };
145 
148 }
149 
150 #endif /* ThePEG_MEQQ2qq_H */
Ptr< T >::pointer new_ptr()
Simple interface to the PtrTraits<Ptr>::create()
Definition: PtrTraits.h:195
const DiagramVector & diagrams() const
Return all possible diagrams.
Definition: MEBase.h:265
virtual IBPtr clone() const
Make a simple clone of this object.
Definition: MEQQ2qq2.h:96
MEQQ2qq & operator=(const MEQQ2qq &)
Private and non-existent assignment operator.
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:356
ClassTraitsType is an empty, non-polymorphic, base class.
Definition: ClassTraits.h:30
static void Init()
Standard Init function used to initialize the interfaces.
virtual void getDiagrams() const
Add all possible diagrams with the add() function.
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
Definition: MEQQ2qq2.h:102
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
The ME2to2QCD class inherits from the ME2to2Base class and can be used as a sub class for all QCD 2 ...
Definition: ME2to2QCD.h:28
static NoPIOClassDescription< MEQQ2qq > initMEQQ2qq
Describe a concrete class without persistent data.
Definition: MEQQ2qq2.h:110
Energy2 tHat() const
Return the of the last set phase space point.
Definition: ME2to2Base.h:109
double colA() const
Return the matrix element squared (without common pre-factors) for the specific colour configuration...
Definition: MEQQ2qq2.h:75
RCPtr is a reference counted (smart) pointer.
Definition: RCPtr.h:60
virtual double me2() const
The matrix element for the kinematical configuration previously provided by the last call to setKinem...
Selector is a templated class for storing objects associated with probabilities in a way such that...
Definition: Selector.h:46
MEQQ2qq inherits from ME2to2QCD and implements the standard matrix element.
Definition: MEQQ2qq2.h:25
vector< DiagPtr > DiagramVector
A vector of pointers to DiagramBase objects.
Definition: MEBase.h:72
The default concrete implementation of ClassTraitsBase.
Definition: ClassTraits.h:134
BaseClassTraits describes the base classes of the templated class.
Definition: ClassTraits.h:156
The templated ClassTraitsBase class defines a set of default information about classes used by ThePEG...
Definition: ClassTraits.h:52