CMS 3D CMS Logo

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() [1/4]

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() [2/4]

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()) {}
math::XYZVector relP_

◆ EleRelPoint() [3/4]

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 z() const
Definition: PV3DBase.h:61
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
math::XYZVector relP_

◆ EleRelPoint() [4/4]

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 z() const
Definition: PV3DBase.h:61
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
math::XYZVector relP_

Member Function Documentation

◆ eta()

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_

◆ perp()

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_

◆ phi()

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

◆ relP_

math::XYZVector EleRelPoint::relP_
private

Definition at line 40 of file ElectronUtilities.h.

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