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

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

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

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

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

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

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

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

Member Function Documentation

◆ dEta()

auto EleRelPointPair::dEta ( )
inline

Definition at line 69 of file ElectronUtilities.h.

69 { return (relP1_.eta() - relP2_.eta()); }

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

◆ dPerp()

auto EleRelPointPair::dPerp ( )
inline

Definition at line 72 of file ElectronUtilities.h.

72 { return (relP1_.perp() - relP2_.perp()); }

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

◆ dPhi()

auto EleRelPointPair::dPhi ( )
inline

◆ dZ()

auto EleRelPointPair::dZ ( )
inline

Definition at line 71 of file ElectronUtilities.h.

71 { return (relP1_.z() - relP2_.z()); }

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

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().

PV3DBase::x
T x() const
Definition: PV3DBase.h:59
PV3DBase::z
T z() const
Definition: PV3DBase.h:61
p2
double p2[4]
Definition: TauolaWrapper.h:90
normalizedPhi
constexpr T normalizedPhi(T phi)
Definition: normalizedPhi.h:8
PV3DBase::barePhi
T barePhi() const
Definition: PV3DBase.h:65
PV3DBase::eta
T eta() const
Definition: PV3DBase.h:73
PV3DBase::y
T y() const
Definition: PV3DBase.h:60
p1
double p1[4]
Definition: TauolaWrapper.h:89
EleRelPointPair::relP2_
GlobalVector relP2_
Definition: ElectronUtilities.h:76
EleRelPointPair::relP1_
GlobalVector relP1_
Definition: ElectronUtilities.h:75
PV3DBase::perp
T perp() const
Definition: PV3DBase.h:69