CMS 3D CMS Logo

TwoObjectCalculator.h
Go to the documentation of this file.
1 #ifndef CommonTools_UtilAlgos_TwoObjectCalculator_H
2 #define CommonTools_UtilAlgos_TwoObjectCalculator_H
3 
4 #include <string>
5 #include <cmath>
6 
8  template <typename LHS, typename RHS > double operator()( const LHS & lhs, const RHS & rhs){
9  double cdphi = cos(lhs.phi()-rhs.phi());
10  return cdphi;
11  }
12  static std::string calculationType(){ return "CosDphiCalculator";}
13  static std::string description() { return " calculate cos(Delta Phi(Obj1, Obj2))";}
14 };
15 
16 #endif
double operator()(const LHS &lhs, const RHS &rhs)
static std::string description()
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
static std::string calculationType()