CMS 3D CMS Logo

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 7 of file TwoObjectCalculator.h.

Member Function Documentation

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

Definition at line 12 of file TwoObjectCalculator.h.

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

Definition at line 13 of file TwoObjectCalculator.h.

13 { 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 8 of file TwoObjectCalculator.h.

References funct::cos().

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