CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/PhysicsTools/UtilAlgos/interface/TwoObjectCalculator.h

Go to the documentation of this file.
00001 #ifndef CommonTools_UtilAlgos_TwoObjectCalculator_H
00002 #define CommonTools_UtilAlgos_TwoObjectCalculator_H
00003 
00004 struct CosDphiCalculator {
00005   template <typename LHS, typename RHS > double operator()( const LHS & lhs, const RHS & rhs){
00006     double cdphi = cos(lhs.phi()-rhs.phi());
00007     return cdphi;    
00008   }  
00009   static std::string calculationType(){ return "CosDphiCalculator";}
00010   static std::string description() { return " calculate cos(Delta Phi(Obj1, Obj2))";}
00011 };
00012 
00013 #endif