Main Page
Namespaces
Classes
Package Documentation
RecoTauTag
TauTagTools
interface
Ellipse.h
Go to the documentation of this file.
1
#ifndef Ellipse_h
2
#define Ellipse_h
3
4
#include "
DataFormats/Math/interface/deltaPhi.h
"
5
6
namespace
reco
{
7
8
template
<
typename
T1,
typename
T2>
9
inline
double
ellipse
(
const
T1& t1,
const
T2& t2,
double
rPhi,
double
rEta){
10
double
dEta
= t1.eta()-t2.eta();
11
double
dPhi
=
deltaPhi
(t1.phi(), t2.phi());
12
double
distance
= (dEta*
dEta
)/(rEta*rEta) + (dPhi*
dPhi
)/(rPhi*rPhi);
13
return
distance
;
14
}
15
16
}
17
#endif
18
reco::deltaPhi
constexpr double deltaPhi(double phi1, double phi2)
Definition:
deltaPhi.h:22
SoftLeptonByDistance_cfi.distance
distance
Definition:
SoftLeptonByDistance_cfi.py:6
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:44
particleFlow_cfi.dPhi
dPhi
Definition:
particleFlow_cfi.py:80
deltaPhi.h
reco::ellipse
double ellipse(const T1 &t1, const T2 &t2, double rPhi, double rEta)
Definition:
Ellipse.h:9
particleFlow_cfi.dEta
dEta
Definition:
particleFlow_cfi.py:79
Generated for CMSSW Reference Manual by
1.8.11