CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TwoObjectCalculator.h
Go to the documentation of this file.
1 #ifndef CommonTools_UtilAlgos_TwoObjectCalculator_H
2 #define CommonTools_UtilAlgos_TwoObjectCalculator_H
3 
5  template <typename LHS, typename RHS > double operator()( const LHS & lhs, const RHS & rhs){
6  double cdphi = cos(lhs.phi()-rhs.phi());
7  return cdphi;
8  }
9  static std::string calculationType(){ return "CosDphiCalculator";}
10  static std::string description() { return " calculate cos(Delta Phi(Obj1, Obj2))";}
11 };
12 
13 #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()