CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions

CosDphiCalculator Struct Reference

#include <TwoObjectCalculator.h>

List of all members.

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 ( ) [inline, static]

Definition at line 9 of file TwoObjectCalculator.h.

{ return "CosDphiCalculator";}
static std::string CosDphiCalculator::description ( ) [inline, static]

Definition at line 10 of file TwoObjectCalculator.h.

{ 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().

                                                                                             {
    double cdphi = cos(lhs.phi()-rhs.phi());
    return cdphi;    
  }