ThePEG  1.8.0
VVVVVertex.h
1 // -*- C++ -*-
2 //
3 // VVVVVertex.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 2003-2011 Peter Richardson, 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_VVVVVertex_H
10 #define ThePEG_VVVVVertex_H
11 //
12 // This is the declaration of the VVVVVertex class.
13 
14 #include "ThePEG/Helicity/Vertex/AbstractVVVVVertex.h"
15 #include "ThePEG/Helicity/WaveFunction/VectorWaveFunction.h"
16 #include "VVVVVertex.fh"
17 
18 namespace ThePEG {
19 namespace Helicity{
20 
40 
41 public:
42 
46  static void Init();
47 
48 public:
49 
65  Complex evaluate(Energy2 q2, int iopt,
66  const VectorWaveFunction & vec1, const VectorWaveFunction & vec2,
67  const VectorWaveFunction & vec3, const VectorWaveFunction & vec4);
69 
79  virtual void setCoupling(Energy2 q2,tcPDPtr part1,tcPDPtr part2,tcPDPtr part3,
80  tcPDPtr part4)=0;
81 
82 protected:
83 
91  void setOrder(int id1,int id2,int id3,int id4) {
92  _iorder[0]=id1;
93  _iorder[1]=id2;
94  _iorder[2]=id3;
95  _iorder[3]=id4;
96  }
97 
102  void setType(int itype) {
103  _itype=itype;
104  }
105 
113  void setIntermediate(tcPDPtr part1,tcPDPtr part2,Complex c1,Complex c2) {
114  _inter[0]=part1;
115  _inter[1]=part2;
116  _coup[0]=c1;
117  _coup[1]=c2;
118  }
119 
120 private:
121 
126 
130  VVVVVertex & operator=(const VVVVVertex &);
131 
132 private:
133 
137  int _itype;
138 
142  int _iorder[4];
143 
148 
153 
154 };
155 }
156 }
157 
158 namespace ThePEG {
159 
166 template <>
167 struct BaseClassTrait<ThePEG::Helicity::VVVVVertex,1> {
169  typedef ThePEG::Helicity::AbstractVVVVVertex NthBase;
170 };
171 
176 template <>
177 struct ClassTraits<ThePEG::Helicity::VVVVVertex>
178  : public ClassTraitsBase<ThePEG::Helicity::VVVVVertex> {
179 
183  static string className() { return "ThePEG::VVVVVertex"; }
184 };
185 
188 }
189 
190 #endif /* ThePEG_VVVVVertex_H */
static void Init()
Standard Init function used to initialize the interfaces.
Complex _coup[2]
Couplings of the intermediate particles.
Definition: VVVVVertex.h:152
std::complex< double > Complex
ThePEG code should use Complex for all complex scalars.
Definition: Complex.h:23
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
Definition: RCPtr.h:681
static AbstractNoPIOClassDescription< VVVVVertex > initVVVVVertex
Describe an abstract base class with persistent data.
Definition: VVVVVertex.h:125
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
virtual void setCoupling(Energy2 q2, tcPDPtr part1, tcPDPtr part2, tcPDPtr part3, tcPDPtr part4)=0
Calculate the couplings.
Complex evaluate(Energy2 q2, int iopt, const VectorWaveFunction &vec1, const VectorWaveFunction &vec2, const VectorWaveFunction &vec3, const VectorWaveFunction &vec4)
Members to calculate the helicity amplitude expressions for vertices and off-shell particles...
This is the implementation of the four vector vertex.
Definition: VVVVVertex.h:39
void setOrder(int id1, int id2, int id3, int id4)
Set the order of the particles.
Definition: VVVVVertex.h:91
VVVVVertex & operator=(const VVVVVertex &)
Private and non-existent assignment operator.
A concreate implementation of ClassDescriptionBase describing an abstract class without persistent da...
int _iorder[4]
Order of the particles.
Definition: VVVVVertex.h:142
void setIntermediate(tcPDPtr part1, tcPDPtr part2, Complex c1, Complex c2)
Set the intermediate particles if including s/u/t channel terms.
Definition: VVVVVertex.h:113
int _itype
Type of vertex 1=QCD 2=EW.
Definition: VVVVVertex.h:137
The AbstractVVVVVertex class is the base class for vector-vector-vector-vector interactions in ThePEG...
The default concrete implementation of ClassTraitsBase.
Definition: ClassTraits.h:134
BaseClassTraits describes the base classes of the templated class.
Definition: ClassTraits.h:156
tcPDPtr _inter[2]
Intermediate particles.
Definition: VVVVVertex.h:147
void setType(int itype)
Set the type of the vertex.
Definition: VVVVVertex.h:102
The templated ClassTraitsBase class defines a set of default information about classes used by ThePEG...
Definition: ClassTraits.h:52