CMS 3D CMS Logo

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

#include <ElectronUtilities.h>

Public Member Functions

auto dEta ()
 
auto dPerp ()
 
auto dPhi ()
 
auto dZ ()
 
 EleRelPointPair (const math::XYZPoint &p1, const math::XYZPoint &p2, const math::XYZPoint &origin)
 
 EleRelPointPair (const GlobalPoint &p1, const math::XYZPoint &p2, const math::XYZPoint &origin)
 
 EleRelPointPair (const math::XYZPoint &p1, const GlobalPoint &p2, const math::XYZPoint &origin)
 
 EleRelPointPair (const math::XYZPoint &p1, const math::XYZPoint &p2, const GlobalPoint &origin)
 
 EleRelPointPair (const GlobalPoint &p1, const GlobalPoint &p2, const math::XYZPoint &origin)
 
 EleRelPointPair (const math::XYZPoint &p1, const GlobalPoint &p2, const GlobalPoint &origin)
 
 EleRelPointPair (const GlobalPoint &p1, const math::XYZPoint &p2, const GlobalPoint &origin)
 
 EleRelPointPair (const GlobalPoint &p1, const GlobalPoint &p2, const GlobalPoint &origin)
 

Private Attributes

GlobalVector relP1_
 
GlobalVector relP2_
 

Detailed Description

Definition at line 43 of file ElectronUtilities.h.

Constructor & Destructor Documentation

◆ EleRelPointPair() [1/8]

EleRelPointPair::EleRelPointPair ( const math::XYZPoint p1,
const math::XYZPoint p2,
const math::XYZPoint origin 
)
inline

Definition at line 45 of file ElectronUtilities.h.

46  : relP1_(p1.x() - origin.x(), p1.y() - origin.y(), p1.z() - origin.z()),
47  relP2_(p2.x() - origin.x(), p2.y() - origin.y(), p2.z() - origin.z()) {}
GlobalVector relP1_
GlobalVector relP2_

◆ EleRelPointPair() [2/8]

EleRelPointPair::EleRelPointPair ( const GlobalPoint p1,
const math::XYZPoint p2,
const math::XYZPoint origin 
)
inline

Definition at line 48 of file ElectronUtilities.h.

49  : relP1_(p1.x() - origin.x(), p1.y() - origin.y(), p1.z() - origin.z()),
50  relP2_(p2.x() - origin.x(), p2.y() - origin.y(), p2.z() - origin.z()) {}
GlobalVector relP1_
GlobalVector relP2_

◆ EleRelPointPair() [3/8]

EleRelPointPair::EleRelPointPair ( const math::XYZPoint p1,
const GlobalPoint p2,
const math::XYZPoint origin 
)
inline

Definition at line 51 of file ElectronUtilities.h.

52  : relP1_(p1.x() - origin.x(), p1.y() - origin.y(), p1.z() - origin.z()),
53  relP2_(p2.x() - origin.x(), p2.y() - origin.y(), p2.z() - origin.z()) {}
GlobalVector relP1_
GlobalVector relP2_

◆ EleRelPointPair() [4/8]

EleRelPointPair::EleRelPointPair ( const math::XYZPoint p1,
const math::XYZPoint p2,
const GlobalPoint origin 
)
inline

Definition at line 54 of file ElectronUtilities.h.

55  : relP1_(p1.x() - origin.x(), p1.y() - origin.y(), p1.z() - origin.z()),
56  relP2_(p2.x() - origin.x(), p2.y() - origin.y(), p2.z() - origin.z()) {}
T z() const
Definition: PV3DBase.h:61
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
GlobalVector relP1_
GlobalVector relP2_

◆ EleRelPointPair() [5/8]

EleRelPointPair::EleRelPointPair ( const GlobalPoint p1,
const GlobalPoint p2,
const math::XYZPoint origin 
)
inline

Definition at line 57 of file ElectronUtilities.h.

58  : relP1_(p1.x() - origin.x(), p1.y() - origin.y(), p1.z() - origin.z()),
59  relP2_(p2.x() - origin.x(), p2.y() - origin.y(), p2.z() - origin.z()) {}
GlobalVector relP1_
GlobalVector relP2_

◆ EleRelPointPair() [6/8]

EleRelPointPair::EleRelPointPair ( const math::XYZPoint p1,
const GlobalPoint p2,
const GlobalPoint origin 
)
inline

Definition at line 60 of file ElectronUtilities.h.

61  : relP1_(p1.x() - origin.x(), p1.y() - origin.y(), p1.z() - origin.z()),
62  relP2_(p2.x() - origin.x(), p2.y() - origin.y(), p2.z() - origin.z()) {}
T z() const
Definition: PV3DBase.h:61
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
GlobalVector relP1_
GlobalVector relP2_

◆ EleRelPointPair() [7/8]

EleRelPointPair::EleRelPointPair ( const GlobalPoint p1,
const math::XYZPoint p2,
const GlobalPoint origin 
)
inline

Definition at line 63 of file ElectronUtilities.h.

64  : relP1_(p1.x() - origin.x(), p1.y() - origin.y(), p1.z() - origin.z()),
65  relP2_(p2.x() - origin.x(), p2.y() - origin.y(), p2.z() - origin.z()) {}
T z() const
Definition: PV3DBase.h:61
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
GlobalVector relP1_
GlobalVector relP2_

◆ EleRelPointPair() [8/8]

EleRelPointPair::EleRelPointPair ( const GlobalPoint p1,
const GlobalPoint p2,
const GlobalPoint origin 
)
inline

Definition at line 66 of file ElectronUtilities.h.

67  : relP1_(p1.x() - origin.x(), p1.y() - origin.y(), p1.z() - origin.z()),
68  relP2_(p2.x() - origin.x(), p2.y() - origin.y(), p2.z() - origin.z()) {}
T z() const
Definition: PV3DBase.h:61
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
GlobalVector relP1_
GlobalVector relP2_

Member Function Documentation

◆ dEta()

auto EleRelPointPair::dEta ( )
inline

Definition at line 69 of file ElectronUtilities.h.

References PV3DBase< T, PVType, FrameType >::eta(), relP1_, and relP2_.

69 { return (relP1_.eta() - relP2_.eta()); }
T eta() const
Definition: PV3DBase.h:73
GlobalVector relP1_
GlobalVector relP2_

◆ dPerp()

auto EleRelPointPair::dPerp ( )
inline

Definition at line 72 of file ElectronUtilities.h.

References PV3DBase< T, PVType, FrameType >::perp(), relP1_, and relP2_.

72 { return (relP1_.perp() - relP2_.perp()); }
T perp() const
Definition: PV3DBase.h:69
GlobalVector relP1_
GlobalVector relP2_

◆ dPhi()

auto EleRelPointPair::dPhi ( )
inline

Definition at line 70 of file ElectronUtilities.h.

References PV3DBase< T, PVType, FrameType >::barePhi(), normalizedPhi(), relP1_, and relP2_.

70 { return normalizedPhi(relP1_.barePhi() - relP2_.barePhi()); }
constexpr T normalizedPhi(T phi)
Definition: normalizedPhi.h:8
T barePhi() const
Definition: PV3DBase.h:65
GlobalVector relP1_
GlobalVector relP2_

◆ dZ()

auto EleRelPointPair::dZ ( )
inline

Definition at line 71 of file ElectronUtilities.h.

References relP1_, relP2_, and PV3DBase< T, PVType, FrameType >::z().

71 { return (relP1_.z() - relP2_.z()); }
T z() const
Definition: PV3DBase.h:61
GlobalVector relP1_
GlobalVector relP2_

Member Data Documentation

◆ relP1_

GlobalVector EleRelPointPair::relP1_
private

Definition at line 75 of file ElectronUtilities.h.

Referenced by dEta(), dPerp(), dPhi(), and dZ().

◆ relP2_

GlobalVector EleRelPointPair::relP2_
private

Definition at line 76 of file ElectronUtilities.h.

Referenced by dEta(), dPerp(), dPhi(), and dZ().