1 #ifndef RecoEgamma_EgammaElectronAlgos_ElectronUtilities_H 2 #define RecoEgamma_EgammaElectronAlgos_ElectronUtilities_H 8 #include <CLHEP/Units/GlobalPhysicalConstants.h> 16 template <
typename StlColType>
23 typename StlColType::const_iterator it ;
34 template <
typename RealType>
39 if (phi>pi) { phi -=
pi2 ; }
40 if (phi<-pi) { phi +=
pi2; }
50 template <
typename Type1,
typename Type2>
52 { obj2 = Type2(obj1.x(),obj1.y(),obj1.z()) ; }
67 double eta() {
return relP_.eta() ; }
69 double perp() {
return std::sqrt(relP_.x()*relP_.x()+relP_.y()*relP_.y()) ; }
85 auto dEta() {
return (relP1_.eta()-relP2_.eta()) ; }
87 auto dZ() {
return (relP1_.z()-relP2_.z()) ; }
88 auto dPerp() {
return (relP1_.perp()-relP2_.perp()) ; }
102 template <
typename Po
intType>
104 {
return (p-origin).eta() ; }
106 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)
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)
RealType normalized_phi(RealType phi)
EleRelPointPair(const math::XYZPoint &p1, const GlobalPoint &p2, const GlobalPoint &origin)
~ExceptionSafeStlPtrCol()
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)