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()) {}
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)