8 inline double deltaEta2(
double eta1,
double eta2){
9 double deltaEta = eta1 - eta2;
10 return deltaEta*deltaEta;
13 template <
typename T1,
typename T2>
14 inline double deltaEta2(
const T1& t1,
const T2& t2){
18 template <
typename T1,
typename T2>
19 inline double ellipse (
const T1& t1,
const T2& t2,
double rPhi,
double rEta){
20 double dEta2 =
deltaEta2(t1.eta(), t2.eta());
22 double distance = dEta2/(rEta*rEta) + (dPhi*dPhi)/(rPhi*rPhi);
double dPhi(double phi1, double phi2)
double deltaPhi(double phi1, double phi2)
double ellipse(const T1 &t1, const T2 &t2, double rPhi, double rEta)
double deltaEta2(double eta1, double eta2)