ThePEG  1.8.0
FFSVertex.h
1 // -*- C++ -*-
2 //
3 // FFSVertex.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_FFSVertex_H
10 #define ThePEG_FFSVertex_H
11 //
12 // This is the declaration of the FFSVertex class.
13 
14 #include "ThePEG/Helicity/Vertex/AbstractFFSVertex.h"
15 #include "ThePEG/Helicity/WaveFunction/ScalarWaveFunction.h"
16 #include "ThePEG/Helicity/WaveFunction/SpinorWaveFunction.h"
17 #include "ThePEG/Helicity/WaveFunction/SpinorBarWaveFunction.h"
18 #include "FFSVertex.fh"
19 
20 namespace ThePEG {
21 
22 namespace Helicity{
23 
42 
43 public:
44 
48  static void Init();
49 
50 public:
51 
64  Complex evaluate(Energy2 q2,const SpinorWaveFunction & sp1,
65  const SpinorBarWaveFunction & sbar2,
66  const ScalarWaveFunction & sca3);
67 
80  SpinorWaveFunction evaluate(Energy2 q2,int iopt,tcPDPtr out,
81  const SpinorWaveFunction & sp1,
82  const ScalarWaveFunction & sca3,
83  complex<Energy> mass=-GeV, complex<Energy> width=-GeV);
84 
97  SpinorBarWaveFunction evaluate(Energy2 q2,int iopt,tcPDPtr out,
98  const SpinorBarWaveFunction & sbar2,
99  const ScalarWaveFunction & sca3,
100  complex<Energy> mass=-GeV, complex<Energy> width=-GeV);
101 
114  ScalarWaveFunction evaluate(Energy2 q2,int iopt,tcPDPtr out,
115  const SpinorWaveFunction & sp1,
116  const SpinorBarWaveFunction & sbar2,
117  complex<Energy> mass=-GeV, complex<Energy> width=-GeV);
119 
128  virtual void setCoupling(Energy2 q2,tcPDPtr part1,
129  tcPDPtr part2,tcPDPtr part3)=0;
130 
138  Complex left() { return _left; }
139 
143  Complex right() { return _right; }
145 
146 protected:
147 
155  void left(Complex in) { _left = in; }
156 
160  void right(Complex in) { _right = in; }
162 
163 private:
164 
169 
173  FFSVertex & operator=(const FFSVertex &);
174 
175 private:
176 
181 
186 
187 };
188 }
189 
196 template <>
200 };
201 
206 template <>
207 struct ClassTraits<ThePEG::Helicity::FFSVertex>
208  : public ClassTraitsBase<ThePEG::Helicity::FFSVertex> {
209 
213  static string className() { return "ThePEG::FFSVertex"; }
214 };
215 
218 }
219 
220 
221 #endif /* ThePEG_FFSVertex_H */
static AbstractNoPIOClassDescription< FFSVertex > initFFSVertex
Describe an abstract base class with persistent data.
Definition: FFSVertex.h:168
Complex evaluate(Energy2 q2, const SpinorWaveFunction &sp1, const SpinorBarWaveFunction &sbar2, const ScalarWaveFunction &sca3)
Members to calculate the helicity amplitude expressions for vertices and off-shell particles...
void right(Complex in)
Set the right coupling.
Definition: FFSVertex.h:160
static void Init()
Standard Init function used to initialize the interfaces.
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
FFSVertex & operator=(const FFSVertex &)
Private and non-existent assignment operator.
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
Complex _left
Storage of the left coupling.
Definition: FFSVertex.h:180
A concreate implementation of ClassDescriptionBase describing an abstract class without persistent da...
virtual void setCoupling(Energy2 q2, tcPDPtr part1, tcPDPtr part2, tcPDPtr part3)=0
Calculate the couplings.
The AbstractFFSVertex class provides a base class for all fermion-fermion-scalar vertices in ThePEG...
Complex right()
Get the right coupling.
Definition: FFSVertex.h:143
The FFSVertex class is the implementation of the interact of a scalar boson and a fermion-antifermion...
Definition: FFSVertex.h:41
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
Complex left()
Get the couplings.
Definition: FFSVertex.h:138
BaseClassTraits describes the base classes of the templated class.
Definition: ClassTraits.h:156
void left(Complex in)
Set the couplings.
Definition: FFSVertex.h:155
Complex _right
Storage of the right coupling.
Definition: FFSVertex.h:185