1 #ifndef RecoEgamma_EgammaElectronAlgos_ElectronUtilities_H 2 #define RecoEgamma_EgammaElectronAlgos_ElectronUtilities_H 16 template <
typename Type1,
typename Type2>
18 { obj2 = Type2(obj1.x(),obj1.y(),obj1.z()) ; }
51 auto dEta() {
return (relP1_.eta()-relP2_.eta()) ; }
53 auto dZ() {
return (relP1_.z()-relP2_.z()) ; }
54 auto dPerp() {
return (relP1_.perp()-relP2_.perp()) ; }
68 template <
typename Po
intType>
70 {
return (p-origin).eta() ; }
72 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)