CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions
CosDphiCalculator Struct Reference

#include <TwoObjectCalculator.h>

Public Member Functions

template<typename LHS , typename RHS >
double operator() (const LHS &lhs, const RHS &rhs)
 

Static Public Member Functions

static std::string calculationType ()
 
static std::string description ()
 

Detailed Description

Definition at line 4 of file TwoObjectCalculator.h.

Member Function Documentation

static std::string CosDphiCalculator::calculationType ( )
inlinestatic

Definition at line 9 of file TwoObjectCalculator.h.

9 { return "CosDphiCalculator";}
static std::string CosDphiCalculator::description ( )
inlinestatic

Definition at line 10 of file TwoObjectCalculator.h.

10 { return " calculate cos(Delta Phi(Obj1, Obj2))";}
template<typename LHS , typename RHS >
double CosDphiCalculator::operator() ( const LHS &  lhs,
const RHS &  rhs 
)
inline

Definition at line 5 of file TwoObjectCalculator.h.

References funct::cos().

5  {
6  double cdphi = cos(lhs.phi()-rhs.phi());
7  return cdphi;
8  }
Cos< T >::type cos(const T &t)
Definition: Cos.h:22