1 #ifndef RecoEgamma_EgammaElectronAlgos_ElectronUtilities_H
2 #define RecoEgamma_EgammaElectronAlgos_ElectronUtilities_H
15 template <
typename Type1,
typename Type2>
17 obj2 = Type2(obj1.x(), obj1.y(), obj1.z());
28 :
relP_(p.
x() - origin.
x(), p.
y() - origin.
y(), p.
z() - origin.
z()) {}
30 :
relP_(p.
x() - origin.
x(), p.
y() - origin.
y(), p.
z() - origin.
z()) {}
32 :
relP_(p.
x() - origin.
x(), p.
y() - origin.
y(), p.
z() - origin.
z()) {}
34 :
relP_(p.
x() - origin.
x(), p.
y() - origin.
y(), p.
z() - origin.
z()) {}
46 :
relP1_(p1.
x() - origin.
x(), p1.
y() - origin.
y(), p1.
z() - origin.
z()),
47 relP2_(p2.
x() - origin.
x(), p2.
y() - origin.
y(), p2.
z() - origin.
z()) {}
49 :
relP1_(p1.
x() - origin.
x(), p1.
y() - origin.
y(), p1.
z() - origin.
z()),
50 relP2_(p2.
x() - origin.
x(), p2.
y() - origin.
y(), p2.
z() - origin.
z()) {}
52 :
relP1_(p1.
x() - origin.
x(), p1.
y() - origin.
y(), p1.
z() - origin.
z()),
53 relP2_(p2.
x() - origin.
x(), p2.
y() - origin.
y(), p2.
z() - origin.
z()) {}
55 :
relP1_(p1.
x() - origin.
x(), p1.
y() - origin.
y(), p1.
z() - origin.
z()),
56 relP2_(p2.
x() - origin.
x(), p2.
y() - origin.
y(), p2.
z() - origin.
z()) {}
58 :
relP1_(p1.
x() - origin.
x(), p1.
y() - origin.
y(), p1.
z() - origin.
z()),
59 relP2_(p2.
x() - origin.
x(), p2.
y() - origin.
y(), p2.
z() - origin.
z()) {}
61 :
relP1_(p1.
x() - origin.
x(), p1.
y() - origin.
y(), p1.
z() - origin.
z()),
62 relP2_(p2.
x() - origin.
x(), p2.
y() - origin.
y(), p2.
z() - origin.
z()) {}
64 :
relP1_(p1.
x() - origin.
x(), p1.
y() - origin.
y(), p1.
z() - origin.
z()),
65 relP2_(p2.
x() - origin.
x(), p2.
y() - origin.
y(), p2.
z() - origin.
z()) {}
67 :
relP1_(p1.
x() - origin.
x(), p1.
y() - origin.
y(), p1.
z() - origin.
z()),
68 relP2_(p2.
x() - origin.
x(), p2.
y() - origin.
y(), p2.
z() - origin.
z()) {}
86 template <
typename Po
intType>
88 return (p - origin).eta();
91 template <
typename Po
intType>
EleRelPointPair(const GlobalPoint &p1, const math::XYZPoint &p2, const GlobalPoint &origin)
EleRelPointPair(const math::XYZPoint &p1, const GlobalPoint &p2, const math::XYZPoint &origin)
EleRelPoint(const GlobalPoint &p, const math::XYZPoint &origin)
constexpr T normalizedPhi(T phi)
EleRelPointPair(const GlobalPoint &p1, const GlobalPoint &p2, const math::XYZPoint &origin)
EleRelPointPair(const GlobalPoint &p1, const math::XYZPoint &p2, const math::XYZPoint &origin)
EleRelPoint(const math::XYZPoint &p, const math::XYZPoint &origin)
EleRelPointPair(const math::XYZPoint &p1, const math::XYZPoint &p2, const math::XYZPoint &origin)
EleRelPointPair(const math::XYZPoint &p1, const math::XYZPoint &p2, const GlobalPoint &origin)
EleRelPointPair(const math::XYZPoint &p1, const GlobalPoint &p2, const GlobalPoint &origin)
EleRelPointPair(const GlobalPoint &p1, const GlobalPoint &p2, const GlobalPoint &origin)
EleRelPoint(const GlobalPoint &p, const GlobalPoint &origin)
EleRelPoint(const math::XYZPoint &p, const GlobalPoint &origin)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
XYZPointD XYZPoint
point in space with cartesian internal representation
double relative_eta(const PointType &p, const PointType &origin)
double relative_phi(const PointType &p, const PointType &origin)
void ele_convert(const Type1 &obj1, Type2 &obj2)