CMS 3D CMS Logo

CosDphiCalculator Struct Reference

#include <PhysicsTools/UtilAlgos/interface/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.

00009 { return "CosDphiCalculator";}

static std::string CosDphiCalculator::description (  )  [inline, static]

Definition at line 10 of file TwoObjectCalculator.h.

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

00005                                                                                              {
00006     double cdphi = cos(lhs.phi()-rhs.phi());
00007     return cdphi;    
00008   }  


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:16:50 2009 for CMSSW by  doxygen 1.5.4