CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
EleRelPoint Class Reference

#include <ElectronUtilities.h>

Public Member Functions

 EleRelPoint (const GlobalPoint &p, const GlobalPoint &origin)
 
 EleRelPoint (const GlobalPoint &p, const math::XYZPoint &origin)
 
 EleRelPoint (const math::XYZPoint &p, const GlobalPoint &origin)
 
 EleRelPoint (const math::XYZPoint &p, const math::XYZPoint &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()) {}

◆ 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()) {}

◆ 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()) {}

◆ 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()) {}

Member Function Documentation

◆ eta()

double EleRelPoint::eta ( void  )
inline

Definition at line 35 of file ElectronUtilities.h.

35 { return relP_.eta(); }

References relP_.

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

◆ perp()

double EleRelPoint::perp ( )
inline

Definition at line 37 of file ElectronUtilities.h.

37 { return std::sqrt(relP_.x() * relP_.x() + relP_.y() * relP_.y()); }

References relP_, and mathSSE::sqrt().

◆ phi()

double EleRelPoint::phi ( void  )
inline

Definition at line 36 of file ElectronUtilities.h.

36 { return normalizedPhi(relP_.phi()); }

References normalizedPhi(), and relP_.

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

Member Data Documentation

◆ relP_

math::XYZVector EleRelPoint::relP_
private

Definition at line 40 of file ElectronUtilities.h.

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

EleRelPoint::relP_
math::XYZVector relP_
Definition: ElectronUtilities.h:40
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
normalizedPhi
constexpr T normalizedPhi(T phi)
Definition: normalizedPhi.h:8
PV3DBase::y
T y() const
Definition: PV3DBase.h:60