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 <>
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 */
void setRightSigma(const complex< InvEnergy > &in)
Set the right coupling for the term.
complex< InvEnergy > _leftSigma
Left coupling.
const Complex & getRight()
Get the right coupling.
std::complex< double > Complex
ThePEG code should use Complex for all complex scalars.
Definition: Complex.h:23
void setRight(const Complex &in)
Set the right coupling.
TransientConstRCPtr is a simple wrapper around a bare const pointer which can be assigned to and from...
Definition: RCPtr.h:681
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
The AbstractFFVVertex class provides a base class for all fermion-fermion-vector vertices in ThePEG...
virtual void setCoupling(Energy2 q2, tcPDPtr part1, tcPDPtr part2, tcPDPtr part3)=0
Calculate the couplings.
A concreate implementation of ClassDescriptionBase describing an abstract class without persistent da...
void setLeft(const Complex &in)
Set the couplings.
Complex evaluate(Energy2 q2, const SpinorWaveFunction &sp1, const SpinorBarWaveFunction &sbar2, const VectorWaveFunction &vec3)
Members to calculate the helicity amplitude expressions for vertices and off-shell particles...
const complex< InvEnergy > getLeftSigma()
Get the left coupling for the term.
void setLeftSigma(const complex< InvEnergy > &in)
Set the left coupling for the term.
static string className()
Return the name of class T.
Definition: ClassTraits.h:66
int NthBase
The type of the BaseN'th base class (int means there are no further base classes).
Definition: ClassTraits.h:161
const complex< InvEnergy > getRightSigma()
Get the right coupling for the term.
complex< InvEnergy > _rightSigma
Right coupling.
static void Init()
Standard Init function used to initialize the interfaces.
BaseClassTraits describes the base classes of the templated class.
Definition: ClassTraits.h:156
The GeneralFFVVertex class is the base class for all helicity amplitude vertices which use a general ...
static AbstractNoPIOClassDescription< GeneralFFVVertex > initGeneralFFVVertex
Describe an abstract class with persistent data.
GeneralFFVVertex & operator=(const GeneralFFVVertex &)
Private and non-existent assignment operator.
const Complex & getLeft()
Get the Couplings.