MINT2
SpinFactorTrivial.h
Go to the documentation of this file.
1 #ifndef SPINFACTOR_TRIVIAL_HH
2 #define SPINFACTOR_TRIVIAL_HH
3 // author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
4 // status: Mon 9 Feb 2009 19:18:13 GMT
5 
7 #include "Mint/IDalitzEvent.h"
8 
9 #include "Mint/ISpinFactor.h"
10 
11 // 2-body and trivial spin factor:
12 class SpinFactorTrivial : virtual public ISpinFactor{
13  public:
14  virtual double getVal(){return 1.0;}
15  virtual double getVal(IDalitzEvent& ){return getVal();}
16 
17  virtual double RealVal(){return getVal();}
18  virtual double RealVal(IDalitzEvent& ){return RealVal();}
19 
20  virtual std::complex<double> ComplexVal(){return std::complex<double>(getVal(),0);}
21  virtual std::complex<double> ComplexVal(IDalitzEvent& ){return ComplexVal();}
22 
23  virtual std::string name() const{
24  return "TrivialSpinFactor=1";
25  }
26 
27 };
28 
29 #endif
30 //
virtual double getVal()
virtual double RealVal(IDalitzEvent &)
virtual std::complex< double > ComplexVal()
virtual std::complex< double > ComplexVal(IDalitzEvent &)
virtual std::string name() const
virtual double getVal(IDalitzEvent &)
virtual double RealVal()