CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 25 of file ElectronUtilities.h.

Constructor & Destructor Documentation

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

Definition at line 27 of file ElectronUtilities.h.

28  : 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 29 of file ElectronUtilities.h.

30  : relP_(p.x() - origin.x(), p.y() - origin.y(), p.z() - origin.z()) {}
T y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
math::XYZVector relP_
T x() const
Definition: PV3DBase.h:59
EleRelPoint::EleRelPoint ( const math::XYZPoint p,
const GlobalPoint origin 
)
inline

Definition at line 31 of file ElectronUtilities.h.

32  : relP_(p.x() - origin.x(), p.y() - origin.y(), p.z() - origin.z()) {}
T y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
math::XYZVector relP_
T x() const
Definition: PV3DBase.h:59
EleRelPoint::EleRelPoint ( const GlobalPoint p,
const GlobalPoint origin 
)
inline

Definition at line 33 of file ElectronUtilities.h.

34  : relP_(p.x() - origin.x(), p.y() - origin.y(), p.z() - origin.z()) {}
T y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
math::XYZVector relP_
T x() const
Definition: PV3DBase.h:59

Member Function Documentation

double EleRelPoint::eta ( void  )
inline

Definition at line 35 of file ElectronUtilities.h.

References relP_.

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

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

Definition at line 37 of file ElectronUtilities.h.

References relP_, and mathSSE::sqrt().

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

Definition at line 36 of file ElectronUtilities.h.

References normalizedPhi(), and relP_.

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

36 { return normalizedPhi(relP_.phi()); }
constexpr T normalizedPhi(T phi)
Definition: normalizedPhi.h:8
math::XYZVector relP_

Member Data Documentation

math::XYZVector EleRelPoint::relP_
private

Definition at line 40 of file ElectronUtilities.h.

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