#include "METOOLS/Explicit/Lorentz_Calculator.H" #include "METOOLS/Currents/C_Scalar.H" #include "METOOLS/Explicit/Vertex.H" #include "MODEL/Main/Single_Vertex.H" using namespace ATOOLS; namespace METOOLS { template class SSS_Calculator: public Lorentz_Calculator { public: typedef CScalar CScalarType; SSS_Calculator(const Vertex_Key &key): Lorentz_Calculator(key) {} std::string Label() const { return "SSS"; } CObject *Evaluate(const CObject_Vector &jj) { const CScalarType &a(*jj[0]->Get()); const CScalarType &b(*jj[1]->Get()); CScalarType *j(CScalarType::New(a*b)); j->SetS(a.S()|b.S()); return j; } };// end of class SSS_Calculator template class SSS_Calculator; }// end of namespace METOOLS using namespace METOOLS; DECLARE_GETTER(SSS_Calculator,"DSSS", Lorentz_Calculator,Vertex_Key); Lorentz_Calculator *ATOOLS::Getter >:: operator()(const Vertex_Key &key) const { return new SSS_Calculator(key); } void ATOOLS::Getter >:: PrintInfo(std::ostream &str,const size_t width) const { str<<"SSS vertex"; }