ThePEG  1.8.0
GeneralFFVVertex.h
1 // -*- C++ -*-
2 //
3 // GeneralFFVVertex.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_GeneralFFVVertex_H
10 #define ThePEG_GeneralFFVVertex_H
11 //
12 // This is the declaration of the GeneralFFVVertex class.
13 
14 #include <ThePEG/Helicity/Vertex/AbstractFFVVertex.h>
15 #include <ThePEG/Helicity/WaveFunction/VectorWaveFunction.h>
16 #include <ThePEG/Helicity/WaveFunction/SpinorWaveFunction.h>
17 #include <ThePEG/Helicity/WaveFunction/SpinorBarWaveFunction.h>
18 #include "GeneralFFVVertex.fh"
19 
20 namespace ThePEG {
21 
22 namespace Helicity{
23 
39 
40 public:
41 
45  static void Init();
46 
59  Complex evaluate(Energy2 q2,const SpinorWaveFunction & sp1,
60  const SpinorBarWaveFunction & sbar2,const VectorWaveFunction & vec3);
61 
74  SpinorBarWaveFunction evaluate(Energy2 q2,int iopt,tcPDPtr out,
75  const SpinorBarWaveFunction & sbar2,
76  const VectorWaveFunction & vec3,
77  complex<Energy> mass=-GeV, complex<Energy> width=-GeV);
78 
91  VectorWaveFunction evaluate(Energy2 q2,int iopt,tcPDPtr out,
92  const SpinorWaveFunction & sp1,
93  const SpinorBarWaveFunction & sbar2,
94  complex<Energy> mass=-GeV, complex<Energy> width=-GeV);
95 
108  SpinorWaveFunction evaluate(Energy2 q2,int iopt,tcPDPtr out,
109  const SpinorWaveFunction & sp1,
110  const VectorWaveFunction & vec3,
111  complex<Energy> mass=-GeV, complex<Energy> width=-GeV);
113 
122  virtual void setCoupling(Energy2 q2,tcPDPtr part1,tcPDPtr part2,tcPDPtr part3)=0;
130  const Complex & getLeft() { return _left; }
131 
135  const Complex & getRight() { return _right; }
136 
140  const complex<InvEnergy> getLeftSigma() { return _leftSigma; }
141 
145  const complex<InvEnergy> getRightSigma() { return _rightSigma; }
147 
148 protected:
149 
157  void setLeft(const Complex & in) { _left = in; }
158 
162  void setRight(const Complex & in) { _right = in; }
163 
167  void setLeftSigma(const complex<InvEnergy> & in) { _leftSigma = in; }
168 
172  void setRightSigma(const complex<InvEnergy> & in) { _rightSigma = in; }
174 
175 private:
176 
181 
186 
187 private:
188 
193 
198 
202  complex<InvEnergy> _leftSigma;
203 
207  complex<InvEnergy> _rightSigma;
208 
209 };
210 }
211 
218 template <>
219 struct BaseClassTrait<ThePEG::Helicity::GeneralFFVVertex,1> {
222 };
223 
228 template <>
229 struct ClassTraits<ThePEG::Helicity::GeneralFFVVertex>
230  : public ClassTraitsBase<ThePEG::Helicity::GeneralFFVVertex> {
231 
235  static string className() { return "ThePEG::GeneralFFVVertex"; }
236 };
237 
240 }
241 
242 
243 #endif /* ThePEG_GeneralFFVVertex_H */