PhysicsTools
UtilAlgos
interface
TwoObjectCalculator.h
Go to the documentation of this file.
1
#ifndef CommonTools_UtilAlgos_TwoObjectCalculator_H
2
#define CommonTools_UtilAlgos_TwoObjectCalculator_H
3
4
#include <string>
5
#include <cmath>
6
7
struct
CosDphiCalculator
{
8
template
<
typename
LHS,
typename
RHS >
double
operator()
(
const
LHS & lhs,
const
RHS & rhs){
9
double
cdphi =
cos
(lhs.phi()-rhs.phi());
10
return
cdphi;
11
}
12
static
std::string
calculationType
(){
return
"CosDphiCalculator"
;}
13
static
std::string
description
() {
return
" calculate cos(Delta Phi(Obj1, Obj2))"
;}
14
};
15
16
#endif
CosDphiCalculator::calculationType
static std::string calculationType()
Definition:
TwoObjectCalculator.h:12
CosDphiCalculator::description
static std::string description()
Definition:
TwoObjectCalculator.h:13
funct::cos
Cos< T >::type cos(const T &t)
Definition:
Cos.h:22
CosDphiCalculator::operator()
double operator()(const LHS &lhs, const RHS &rhs)
Definition:
TwoObjectCalculator.h:8
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CosDphiCalculator
Definition:
TwoObjectCalculator.h:7
Generated for CMSSW Reference Manual by
1.8.16