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
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::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()) {}
const TString p2
Definition: fwPaths.cc:13
const TString p1
Definition: fwPaths.cc:12
GlobalVector relP1_
GlobalVector relP2_
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()) {}
const TString p2
Definition: fwPaths.cc:13
T y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
GlobalVector relP1_
GlobalVector relP2_
T x() const
Definition: PV3DBase.h:59
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()) {}
T y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
const TString p1
Definition: fwPaths.cc:12
GlobalVector relP1_
GlobalVector relP2_
T x() const
Definition: PV3DBase.h:59
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()) {}
const TString p2
Definition: fwPaths.cc:13
T y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
const TString p1
Definition: fwPaths.cc:12
GlobalVector relP1_
GlobalVector relP2_
T x() const
Definition: PV3DBase.h:59
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()) {}
T y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
GlobalVector relP1_
GlobalVector relP2_
T x() const
Definition: PV3DBase.h:59
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 y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
const TString p1
Definition: fwPaths.cc:12
GlobalVector relP1_
GlobalVector relP2_
T x() const
Definition: PV3DBase.h:59
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()) {}
const TString p2
Definition: fwPaths.cc:13
T y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
GlobalVector relP1_
GlobalVector relP2_
T x() const
Definition: PV3DBase.h:59
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 y() const
Definition: PV3DBase.h:60
T z() const
Definition: PV3DBase.h:61
GlobalVector relP1_
GlobalVector relP2_
T x() const
Definition: PV3DBase.h:59

Member Function Documentation

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()); }
GlobalVector relP1_
GlobalVector relP2_
T eta() const
Definition: PV3DBase.h:73
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_
auto EleRelPointPair::dPhi ( )
inline

Definition at line 70 of file ElectronUtilities.h.

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

Referenced by PixelHitMatcher::operator()().

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_
auto EleRelPointPair::dZ ( )
inline

Definition at line 71 of file ElectronUtilities.h.

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

Referenced by PixelHitMatcher::operator()().

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

Member Data Documentation

GlobalVector EleRelPointPair::relP1_
private

Definition at line 75 of file ElectronUtilities.h.

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

GlobalVector EleRelPointPair::relP2_
private

Definition at line 76 of file ElectronUtilities.h.

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