CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
EleRelPoint Class Reference

#include <ElectronUtilities.h>

Public Member Functions

 EleRelPoint (const math::XYZPoint &p, const math::XYZPoint &origin)
 
 EleRelPoint (const GlobalPoint &p, const math::XYZPoint &origin)
 
 EleRelPoint (const math::XYZPoint &p, const GlobalPoint &origin)
 
 EleRelPoint (const GlobalPoint &p, const GlobalPoint &origin)
 
double eta ()
 
double perp ()
 
double phi ()
 

Private Attributes

math::XYZVector relP_
 

Detailed Description

Definition at line 60 of file ElectronUtilities.h.

Constructor & Destructor Documentation

EleRelPoint::EleRelPoint ( const math::XYZPoint p,
const math::XYZPoint origin 
)
inline

Definition at line 63 of file ElectronUtilities.h.

63 : relP_(p.x()-origin.x(),p.y()-origin.y(),p.z()-origin.z()) {}
math::XYZVector relP_
EleRelPoint::EleRelPoint ( const GlobalPoint p,
const math::XYZPoint origin 
)
inline

Definition at line 64 of file ElectronUtilities.h.

64 : relP_(p.x()-origin.x(),p.y()-origin.y(),p.z()-origin.z()) {}
T y() const
Definition: PV3DBase.h:63
T z() const
Definition: PV3DBase.h:64
math::XYZVector relP_
T x() const
Definition: PV3DBase.h:62
EleRelPoint::EleRelPoint ( const math::XYZPoint p,
const GlobalPoint origin 
)
inline

Definition at line 65 of file ElectronUtilities.h.

65 : relP_(p.x()-origin.x(),p.y()-origin.y(),p.z()-origin.z()) {}
T y() const
Definition: PV3DBase.h:63
T z() const
Definition: PV3DBase.h:64
math::XYZVector relP_
T x() const
Definition: PV3DBase.h:62
EleRelPoint::EleRelPoint ( const GlobalPoint p,
const GlobalPoint origin 
)
inline

Definition at line 66 of file ElectronUtilities.h.

66 : relP_(p.x()-origin.x(),p.y()-origin.y(),p.z()-origin.z()) {}
T y() const
Definition: PV3DBase.h:63
T z() const
Definition: PV3DBase.h:64
math::XYZVector relP_
T x() const
Definition: PV3DBase.h:62

Member Function Documentation

double EleRelPoint::eta ( void  )
inline

Definition at line 67 of file ElectronUtilities.h.

References relP_.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

67 { return relP_.eta() ; }
math::XYZVector relP_
double EleRelPoint::perp ( )
inline

Definition at line 69 of file ElectronUtilities.h.

References relP_, and mathSSE::sqrt().

69 { return sqrt(relP_.x()*relP_.x()+relP_.y()*relP_.y()) ; }
T sqrt(T t)
Definition: SSEVec.h:18
math::XYZVector relP_
double EleRelPoint::phi ( void  )
inline

Definition at line 68 of file ElectronUtilities.h.

References normalized_phi(), and relP_.

Referenced by Particle.Particle::__str__().

68 { return normalized_phi(relP_.phi()) ; }
RealType normalized_phi(RealType phi)
math::XYZVector relP_

Member Data Documentation

math::XYZVector EleRelPoint::relP_
private

Definition at line 71 of file ElectronUtilities.h.

Referenced by eta(), perp(), and phi().