CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
TPtoRecoTrack Class Reference

#include <TPtoRecoTrack.h>

Public Member Functions

bool allmatched () const
 
bool allmatchedA () const
 
bool allmatchedB () const
 
math::XYZPoint BeamSpot () const
 
float GetSharedA () const
 
float GetSharedB () const
 
bool hasPCA () const
 
bool hasRV () const
 
bool hasRVA () const
 
bool hasRVB () const
 
bool hasTPMother () const
 
bool matched () const
 
bool matchedA () const
 
bool matchedAnotB () const
 
bool matchedB () const
 
bool matchedBnotA () const
 
int numTPMothers () const
 
int numTPSourceTracks () const
 
double rA_d0 () const
 
double rA_d02 () const
 
double rA_dsz () const
 
double rA_dxy () const
 
double rA_dz () const
 
double rA_dz2 () const
 
double rB_d0 () const
 
double rB_d02 () const
 
double rB_dsz () const
 
double rB_dxy () const
 
double rB_dz () const
 
double rB_dz2 () const
 
reco::Track RTA () const
 
reco::Track RTB () const
 
reco::Vertex RVA () const
 
reco::Vertex RVB () const
 
double s_d0 () const
 
double s_dsz () const
 
double s_dxy () const
 
double s_dz () const
 
double s_eta () const
 
double s_lambda () const
 
GlobalVector s_p () const
 
GlobalPoint s_pca () const
 
double s_phi () const
 
double s_qoverp () const
 
double s_theta () const
 
GlobalPoint s_v () const
 
void SetBeamSpot (const math::XYZPoint &bs)
 
void SetRecoTrack_AlgoA (reco::TrackBaseRef track)
 
void SetRecoTrack_AlgoB (reco::TrackBaseRef track)
 
void SetRecoVertex_AlgoA (reco::VertexRef vertex)
 
void SetRecoVertex_AlgoB (reco::VertexRef vertex)
 
void SetShared_AlgoA (const float &mA)
 
void SetShared_AlgoB (const float &mB)
 
void SetTrackingParticle (TrackingParticleRef tp)
 
void SetTrackingParticleMomentumPCA (const GlobalVector &p)
 
void SetTrackingParticlePCA (const GlobalPoint &v)
 
TrackingParticle TP () const
 
TrackingParticle TPMother (unsigned short i) const
 
TrackingParticle TPMother () const
 
 TPtoRecoTrack ()
 
 ~TPtoRecoTrack ()
 

Protected Attributes

math::XYZPoint beamSpot_
 
reco::TrackBaseRef recoTrack_AlgoA_
 
reco::TrackBaseRef recoTrack_AlgoB_
 
reco::VertexRef recoVertex_AlgoA_
 
reco::VertexRef recoVertex_AlgoB_
 
float sharedA_
 
float sharedB_
 
GlobalVector simMomPCA_
 
GlobalPoint simPCA_
 
TrackingParticleRef trackingParticle_
 

Detailed Description

Definition at line 20 of file TPtoRecoTrack.h.

Constructor & Destructor Documentation

◆ TPtoRecoTrack()

TPtoRecoTrack::TPtoRecoTrack ( )

Definition at line 4 of file TPtoRecoTrack.cc.

References SetBeamSpot(), SetTrackingParticleMomentumPCA(), and SetTrackingParticlePCA().

4  {
5  SetBeamSpot(math::XYZPoint(-9999.0, -9999.0, -9999.0));
6  SetTrackingParticlePCA(GlobalPoint(-9999.0, -9999.0, -9999.0));
7  SetTrackingParticleMomentumPCA(GlobalVector(-9999.0, -9999.0, -9999.0));
8 }
void SetTrackingParticleMomentumPCA(const GlobalVector &p)
Definition: TPtoRecoTrack.h:82
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
void SetTrackingParticlePCA(const GlobalPoint &v)
Definition: TPtoRecoTrack.h:83
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
void SetBeamSpot(const math::XYZPoint &bs)
Definition: TPtoRecoTrack.h:36
Global3DVector GlobalVector
Definition: GlobalVector.h:10

◆ ~TPtoRecoTrack()

TPtoRecoTrack::~TPtoRecoTrack ( )

Definition at line 10 of file TPtoRecoTrack.cc.

10 {}

Member Function Documentation

◆ allmatched()

bool TPtoRecoTrack::allmatched ( ) const
inline

Definition at line 61 of file TPtoRecoTrack.h.

References hasRV(), and matched().

61 { return matched() && hasRV(); }
bool matched() const
Definition: TPtoRecoTrack.h:46
bool hasRV() const
Definition: TPtoRecoTrack.h:57

◆ allmatchedA()

bool TPtoRecoTrack::allmatchedA ( ) const
inline

Definition at line 59 of file TPtoRecoTrack.h.

References hasRVA(), and matchedA().

59 { return matchedA() && hasRVA(); }
bool matchedA() const
Definition: TPtoRecoTrack.h:47
bool hasRVA() const
Definition: TPtoRecoTrack.h:51

◆ allmatchedB()

bool TPtoRecoTrack::allmatchedB ( ) const
inline

Definition at line 60 of file TPtoRecoTrack.h.

References hasRVA(), and matchedB().

60 { return matchedB() && hasRVA(); }
bool matchedB() const
Definition: TPtoRecoTrack.h:48
bool hasRVA() const
Definition: TPtoRecoTrack.h:51

◆ BeamSpot()

math::XYZPoint TPtoRecoTrack::BeamSpot ( ) const
inline

Definition at line 44 of file TPtoRecoTrack.h.

References beamSpot_.

Referenced by rA_dsz(), rA_dxy(), rA_dz(), rB_dsz(), rB_dxy(), rB_dz(), and s_v().

44 { return beamSpot_; }
math::XYZPoint beamSpot_

◆ GetSharedA()

float TPtoRecoTrack::GetSharedA ( ) const
inline

Definition at line 62 of file TPtoRecoTrack.h.

References sharedA_.

62 { return sharedA_; }

◆ GetSharedB()

float TPtoRecoTrack::GetSharedB ( ) const
inline

Definition at line 63 of file TPtoRecoTrack.h.

References sharedB_.

63 { return sharedB_; }

◆ hasPCA()

bool TPtoRecoTrack::hasPCA ( ) const
inline

Definition at line 58 of file TPtoRecoTrack.h.

References PV3DBase< T, PVType, FrameType >::mag(), and s_pca().

58 { return s_pca().mag() < 9999.0; }
GlobalPoint s_pca() const
Definition: TPtoRecoTrack.h:86
T mag() const
Definition: PV3DBase.h:64

◆ hasRV()

bool TPtoRecoTrack::hasRV ( ) const
inline

Definition at line 57 of file TPtoRecoTrack.h.

References hasRVA(), and hasRVB().

Referenced by allmatched().

57 { return hasRVA() && hasRVB(); }
bool hasRVB() const
Definition: TPtoRecoTrack.h:54
bool hasRVA() const
Definition: TPtoRecoTrack.h:51

◆ hasRVA()

bool TPtoRecoTrack::hasRVA ( ) const
inline

Definition at line 51 of file TPtoRecoTrack.h.

References edm::Ref< C, T, F >::isNonnull(), and recoVertex_AlgoA_.

Referenced by allmatchedA(), allmatchedB(), and hasRV().

51  {
52  return recoVertex_AlgoA_.isNonnull() && fabs(recoVertex_AlgoA_->position().Mag2()) > 0.0;
53  } // position is ROOT::MATH::Cartesian3D<double>
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:232
reco::VertexRef recoVertex_AlgoA_

◆ hasRVB()

bool TPtoRecoTrack::hasRVB ( ) const
inline

Definition at line 54 of file TPtoRecoTrack.h.

References edm::Ref< C, T, F >::isNonnull(), and recoVertex_AlgoB_.

Referenced by hasRV().

54  {
55  return recoVertex_AlgoB_.isNonnull() && fabs(recoVertex_AlgoB_->position().Mag2()) > 0.0;
56  } // position is ROOT::MATH::Cartesian3D<double>
reco::VertexRef recoVertex_AlgoB_
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:232

◆ hasTPMother()

bool TPtoRecoTrack::hasTPMother ( ) const
inline

Definition at line 112 of file TPtoRecoTrack.h.

References numTPMothers().

112 { return numTPMothers() > 0; }
int numTPMothers() const

◆ matched()

bool TPtoRecoTrack::matched ( ) const
inline

Definition at line 46 of file TPtoRecoTrack.h.

References matchedA(), and matchedB().

Referenced by allmatched().

46 { return matchedA() && matchedB(); }
bool matchedA() const
Definition: TPtoRecoTrack.h:47
bool matchedB() const
Definition: TPtoRecoTrack.h:48

◆ matchedA()

bool TPtoRecoTrack::matchedA ( ) const
inline

Definition at line 47 of file TPtoRecoTrack.h.

References edm::RefToBase< T >::isNonnull(), edm::Ref< C, T, F >::isNonnull(), recoTrack_AlgoA_, and trackingParticle_.

Referenced by allmatchedA(), matched(), matchedAnotB(), and matchedBnotA().

bool isNonnull() const
Checks for non-null.
Definition: RefToBase.h:290
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:232
TrackingParticleRef trackingParticle_
reco::TrackBaseRef recoTrack_AlgoA_

◆ matchedAnotB()

bool TPtoRecoTrack::matchedAnotB ( ) const
inline

Definition at line 49 of file TPtoRecoTrack.h.

References matchedA(), and matchedB().

49 { return matchedA() && !matchedB(); }
bool matchedA() const
Definition: TPtoRecoTrack.h:47
bool matchedB() const
Definition: TPtoRecoTrack.h:48

◆ matchedB()

bool TPtoRecoTrack::matchedB ( ) const
inline

Definition at line 48 of file TPtoRecoTrack.h.

References edm::RefToBase< T >::isNonnull(), edm::Ref< C, T, F >::isNonnull(), recoTrack_AlgoB_, and trackingParticle_.

Referenced by allmatchedB(), matched(), matchedAnotB(), and matchedBnotA().

bool isNonnull() const
Checks for non-null.
Definition: RefToBase.h:290
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:232
reco::TrackBaseRef recoTrack_AlgoB_
TrackingParticleRef trackingParticle_

◆ matchedBnotA()

bool TPtoRecoTrack::matchedBnotA ( ) const
inline

Definition at line 50 of file TPtoRecoTrack.h.

References matchedA(), and matchedB().

50 { return matchedB() && !matchedA(); }
bool matchedA() const
Definition: TPtoRecoTrack.h:47
bool matchedB() const
Definition: TPtoRecoTrack.h:48

◆ numTPMothers()

int TPtoRecoTrack::numTPMothers ( ) const

Definition at line 41 of file TPtoRecoTrack.cc.

References submitPVResolutionJobs::count, TrackingParticle::parentVertex(), and TP().

Referenced by hasTPMother(), and TPMother().

41  {
42  int count = 0;
43  for (TrackingParticleRefVector::iterator si = TP().parentVertex()->sourceTracks_begin();
44  si != TP().parentVertex()->sourceTracks_end();
45  ++si) {
46  for (TrackingParticleRefVector::iterator di = TP().parentVertex()->daughterTracks_begin();
47  di != TP().parentVertex()->daughterTracks_end();
48  ++di) {
49  if (si != di)
50  count++;
51  break;
52  }
53  if (count > 0)
54  break;
55  }
56  return count;
57 }
TrackingParticle TP() const
Definition: TPtoRecoTrack.h:41
const TrackingVertexRef & parentVertex() const

◆ numTPSourceTracks()

int TPtoRecoTrack::numTPSourceTracks ( ) const
inline

Definition at line 110 of file TPtoRecoTrack.h.

References TrackingParticle::parentVertex(), and TP().

110 { return TP().parentVertex()->nSourceTracks(); }
TrackingParticle TP() const
Definition: TPtoRecoTrack.h:41
const TrackingVertexRef & parentVertex() const

◆ rA_d0()

double TPtoRecoTrack::rA_d0 ( ) const
inline

Definition at line 70 of file TPtoRecoTrack.h.

References rA_dxy().

70 { return -1.0 * rA_dxy(); }
double rA_dxy() const
Definition: TPtoRecoTrack.h:66

◆ rA_d02()

double TPtoRecoTrack::rA_d02 ( ) const
inline

Definition at line 76 of file TPtoRecoTrack.h.

References reco::TrackBase::dxy(), position, RTA(), and RVA().

76 { return -1.0 * RTA().dxy(RVA().position()); }
reco::Track RTA() const
Definition: TPtoRecoTrack.h:39
reco::Vertex RVA() const
Definition: TPtoRecoTrack.h:42
static int position[264][3]
Definition: ReadPGInfo.cc:289
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:608

◆ rA_dsz()

double TPtoRecoTrack::rA_dsz ( ) const
inline

Definition at line 68 of file TPtoRecoTrack.h.

References BeamSpot(), reco::TrackBase::dsz(), and RTA().

68 { return RTA().dsz(BeamSpot()); }
reco::Track RTA() const
Definition: TPtoRecoTrack.h:39
math::XYZPoint BeamSpot() const
Definition: TPtoRecoTrack.h:44
double dsz() const
dsz parameter (THIS IS NOT the SZ impact parameter to (0,0,0) if refPoint is far from (0...
Definition: TrackBase.h:614

◆ rA_dxy()

double TPtoRecoTrack::rA_dxy ( ) const
inline

Definition at line 66 of file TPtoRecoTrack.h.

References BeamSpot(), reco::TrackBase::dxy(), and RTA().

Referenced by rA_d0().

66 { return RTA().dxy(BeamSpot()); }
reco::Track RTA() const
Definition: TPtoRecoTrack.h:39
math::XYZPoint BeamSpot() const
Definition: TPtoRecoTrack.h:44
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:608

◆ rA_dz()

double TPtoRecoTrack::rA_dz ( ) const
inline

Definition at line 72 of file TPtoRecoTrack.h.

References BeamSpot(), reco::TrackBase::dz(), and RTA().

72 { return RTA().dz(BeamSpot()); }
reco::Track RTA() const
Definition: TPtoRecoTrack.h:39
math::XYZPoint BeamSpot() const
Definition: TPtoRecoTrack.h:44
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
Definition: TrackBase.h:622

◆ rA_dz2()

double TPtoRecoTrack::rA_dz2 ( ) const
inline

Definition at line 77 of file TPtoRecoTrack.h.

References reco::TrackBase::dz(), position, RTA(), and RVA().

77 { return RTA().dz(RVA().position()); }
reco::Track RTA() const
Definition: TPtoRecoTrack.h:39
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
Definition: TrackBase.h:622
reco::Vertex RVA() const
Definition: TPtoRecoTrack.h:42
static int position[264][3]
Definition: ReadPGInfo.cc:289

◆ rB_d0()

double TPtoRecoTrack::rB_d0 ( ) const
inline

Definition at line 71 of file TPtoRecoTrack.h.

References rB_dxy().

71 { return -1.0 * rB_dxy(); }
double rB_dxy() const
Definition: TPtoRecoTrack.h:67

◆ rB_d02()

double TPtoRecoTrack::rB_d02 ( ) const
inline

Definition at line 78 of file TPtoRecoTrack.h.

References reco::TrackBase::dxy(), position, RTB(), and RVB().

78 { return -1.0 * RTB().dxy(RVB().position()); }
reco::Vertex RVB() const
Definition: TPtoRecoTrack.h:43
reco::Track RTB() const
Definition: TPtoRecoTrack.h:40
static int position[264][3]
Definition: ReadPGInfo.cc:289
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:608

◆ rB_dsz()

double TPtoRecoTrack::rB_dsz ( ) const
inline

Definition at line 69 of file TPtoRecoTrack.h.

References BeamSpot(), reco::TrackBase::dsz(), and RTB().

69 { return RTB().dsz(BeamSpot()); }
math::XYZPoint BeamSpot() const
Definition: TPtoRecoTrack.h:44
double dsz() const
dsz parameter (THIS IS NOT the SZ impact parameter to (0,0,0) if refPoint is far from (0...
Definition: TrackBase.h:614
reco::Track RTB() const
Definition: TPtoRecoTrack.h:40

◆ rB_dxy()

double TPtoRecoTrack::rB_dxy ( ) const
inline

Definition at line 67 of file TPtoRecoTrack.h.

References BeamSpot(), reco::TrackBase::dxy(), and RTB().

Referenced by rB_d0().

67 { return RTB().dxy(BeamSpot()); }
math::XYZPoint BeamSpot() const
Definition: TPtoRecoTrack.h:44
reco::Track RTB() const
Definition: TPtoRecoTrack.h:40
double dxy() const
dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close t...
Definition: TrackBase.h:608

◆ rB_dz()

double TPtoRecoTrack::rB_dz ( ) const
inline

Definition at line 73 of file TPtoRecoTrack.h.

References BeamSpot(), reco::TrackBase::dz(), and RTB().

73 { return RTB().dz(BeamSpot()); }
math::XYZPoint BeamSpot() const
Definition: TPtoRecoTrack.h:44
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
Definition: TrackBase.h:622
reco::Track RTB() const
Definition: TPtoRecoTrack.h:40

◆ rB_dz2()

double TPtoRecoTrack::rB_dz2 ( ) const
inline

Definition at line 79 of file TPtoRecoTrack.h.

References reco::TrackBase::dz(), position, RTB(), and RVB().

79 { return RTB().dz(RVB().position()); }
reco::Vertex RVB() const
Definition: TPtoRecoTrack.h:43
double dz() const
dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to...
Definition: TrackBase.h:622
reco::Track RTB() const
Definition: TPtoRecoTrack.h:40
static int position[264][3]
Definition: ReadPGInfo.cc:289

◆ RTA()

reco::Track TPtoRecoTrack::RTA ( ) const
inline

Definition at line 39 of file TPtoRecoTrack.h.

References edm::RefToBase< T >::isNonnull(), and recoTrack_AlgoA_.

Referenced by rA_d02(), rA_dsz(), rA_dxy(), rA_dz(), and rA_dz2().

bool isNonnull() const
Checks for non-null.
Definition: RefToBase.h:290
reco::TrackBaseRef recoTrack_AlgoA_

◆ RTB()

reco::Track TPtoRecoTrack::RTB ( ) const
inline

Definition at line 40 of file TPtoRecoTrack.h.

References edm::RefToBase< T >::isNonnull(), and recoTrack_AlgoB_.

Referenced by rB_d02(), rB_dsz(), rB_dxy(), rB_dz(), and rB_dz2().

bool isNonnull() const
Checks for non-null.
Definition: RefToBase.h:290
reco::TrackBaseRef recoTrack_AlgoB_

◆ RVA()

reco::Vertex TPtoRecoTrack::RVA ( ) const
inline

Definition at line 42 of file TPtoRecoTrack.h.

References edm::Ref< C, T, F >::isNonnull(), recoVertex_AlgoA_, and HltBtagValidation_cff::Vertex.

Referenced by rA_d02(), and rA_dz2().

bool isNonnull() const
Checks for non-null.
Definition: Ref.h:232
reco::VertexRef recoVertex_AlgoA_

◆ RVB()

reco::Vertex TPtoRecoTrack::RVB ( ) const
inline

Definition at line 43 of file TPtoRecoTrack.h.

References edm::Ref< C, T, F >::isNonnull(), recoVertex_AlgoB_, and HltBtagValidation_cff::Vertex.

Referenced by rB_d02(), and rB_dz2().

reco::VertexRef recoVertex_AlgoB_
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:232

◆ s_d0()

double TPtoRecoTrack::s_d0 ( ) const
inline

Definition at line 102 of file TPtoRecoTrack.h.

References s_dxy().

102 { return -1.0 * s_dxy(); }
double s_dxy() const
Definition: TPtoRecoTrack.h:97

◆ s_dsz()

double TPtoRecoTrack::s_dsz ( ) const
inline

Definition at line 98 of file TPtoRecoTrack.h.

References PV3DBase< T, PVType, FrameType >::mag(), PV3DBase< T, PVType, FrameType >::perp(), s_p(), s_v(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

98  {
99  return s_v().z() * s_p().perp() / s_p().mag() -
100  ((s_v().x() * s_p().x() + s_v().y() * s_p().y()) / s_p().perp()) * s_p().z() / s_p().mag();
101  }
T perp() const
Definition: PV3DBase.h:69
T z() const
Definition: PV3DBase.h:61
GlobalVector s_p() const
Definition: TPtoRecoTrack.h:85
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
T mag() const
Definition: PV3DBase.h:64
GlobalPoint s_v() const
Definition: TPtoRecoTrack.h:87

◆ s_dxy()

double TPtoRecoTrack::s_dxy ( ) const
inline

Definition at line 97 of file TPtoRecoTrack.h.

References PV3DBase< T, PVType, FrameType >::perp(), s_p(), s_v(), x, and y.

Referenced by s_d0().

97 { return (-s_v().x() * s_p().y() + s_v().y() * s_p().x()) / s_p().perp(); }
T perp() const
Definition: PV3DBase.h:69
GlobalVector s_p() const
Definition: TPtoRecoTrack.h:85
GlobalPoint s_v() const
Definition: TPtoRecoTrack.h:87

◆ s_dz()

double TPtoRecoTrack::s_dz ( ) const
inline

Definition at line 103 of file TPtoRecoTrack.h.

References PV3DBase< T, PVType, FrameType >::perp(), s_p(), s_v(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().

103  {
104  return s_v().z() - (s_v().x() * s_p().x() + s_v().y() * s_p().y()) / s_p().perp() * s_p().z() / s_p().perp();
105  }
T perp() const
Definition: PV3DBase.h:69
T z() const
Definition: PV3DBase.h:61
GlobalVector s_p() const
Definition: TPtoRecoTrack.h:85
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
GlobalPoint s_v() const
Definition: TPtoRecoTrack.h:87

◆ s_eta()

double TPtoRecoTrack::s_eta ( ) const
inline

Definition at line 95 of file TPtoRecoTrack.h.

References CrabHelper::log, s_p(), funct::tan(), and tauSpinnerTable_cfi::theta.

95 { return -1.0 * log(tan(0.5 * s_p().theta())); }
GlobalVector s_p() const
Definition: TPtoRecoTrack.h:85
Tan< T >::type tan(const T &t)
Definition: Tan.h:22

◆ s_lambda()

double TPtoRecoTrack::s_lambda ( ) const
inline

Definition at line 93 of file TPtoRecoTrack.h.

References M_PI, s_p(), and PV3DBase< T, PVType, FrameType >::theta().

93 { return M_PI / 2 - s_p().theta(); }
GlobalVector s_p() const
Definition: TPtoRecoTrack.h:85
#define M_PI
Geom::Theta< T > theta() const
Definition: PV3DBase.h:72

◆ s_p()

GlobalVector TPtoRecoTrack::s_p ( ) const
inline

Definition at line 85 of file TPtoRecoTrack.h.

References simMomPCA_.

Referenced by s_dsz(), s_dxy(), s_dz(), s_eta(), s_lambda(), s_phi(), s_qoverp(), and s_theta().

85 { return simMomPCA_; }
GlobalVector simMomPCA_

◆ s_pca()

GlobalPoint TPtoRecoTrack::s_pca ( ) const
inline

Definition at line 86 of file TPtoRecoTrack.h.

References simPCA_.

Referenced by hasPCA(), and s_v().

86 { return simPCA_; }
GlobalPoint simPCA_

◆ s_phi()

double TPtoRecoTrack::s_phi ( ) const
inline

Definition at line 94 of file TPtoRecoTrack.h.

References PV3DBase< T, PVType, FrameType >::phi(), and s_p().

94 { return s_p().phi(); }
Geom::Phi< T > phi() const
Definition: PV3DBase.h:66
GlobalVector s_p() const
Definition: TPtoRecoTrack.h:85

◆ s_qoverp()

double TPtoRecoTrack::s_qoverp ( ) const
inline

Definition at line 91 of file TPtoRecoTrack.h.

References TrackingParticle::charge(), PV3DBase< T, PVType, FrameType >::mag(), s_p(), and TP().

91 { return TP().charge() / s_p().mag(); }
TrackingParticle TP() const
Definition: TPtoRecoTrack.h:41
GlobalVector s_p() const
Definition: TPtoRecoTrack.h:85
T mag() const
Definition: PV3DBase.h:64
float charge() const
Electric charge. Note this is taken from the first SimTrack only.

◆ s_theta()

double TPtoRecoTrack::s_theta ( ) const
inline

Definition at line 92 of file TPtoRecoTrack.h.

References s_p(), and PV3DBase< T, PVType, FrameType >::theta().

92 { return s_p().theta(); }
GlobalVector s_p() const
Definition: TPtoRecoTrack.h:85
Geom::Theta< T > theta() const
Definition: PV3DBase.h:72

◆ s_v()

GlobalPoint TPtoRecoTrack::s_v ( ) const
inline

Definition at line 87 of file TPtoRecoTrack.h.

References BeamSpot(), s_pca(), x, y, and z.

Referenced by s_dsz(), s_dxy(), and s_dz().

87  {
88  return GlobalPoint(s_pca().x() - BeamSpot().x(), s_pca().y() - BeamSpot().y(), s_pca().z() - BeamSpot().z());
89  }
GlobalPoint s_pca() const
Definition: TPtoRecoTrack.h:86
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
math::XYZPoint BeamSpot() const
Definition: TPtoRecoTrack.h:44

◆ SetBeamSpot()

void TPtoRecoTrack::SetBeamSpot ( const math::XYZPoint bs)
inline

Definition at line 36 of file TPtoRecoTrack.h.

References beamSpot_, and cms::cuda::bs.

Referenced by TrackAlgoCompareUtil::produce(), and TPtoRecoTrack().

36 { beamSpot_ = bs; }
math::XYZPoint beamSpot_

◆ SetRecoTrack_AlgoA()

void TPtoRecoTrack::SetRecoTrack_AlgoA ( reco::TrackBaseRef  track)
inline

Definition at line 27 of file TPtoRecoTrack.h.

References recoTrack_AlgoA_, and HLT_2024v14_cff::track.

Referenced by TrackAlgoCompareUtil::produce().

reco::TrackBaseRef recoTrack_AlgoA_

◆ SetRecoTrack_AlgoB()

void TPtoRecoTrack::SetRecoTrack_AlgoB ( reco::TrackBaseRef  track)
inline

Definition at line 28 of file TPtoRecoTrack.h.

References recoTrack_AlgoB_, and HLT_2024v14_cff::track.

Referenced by TrackAlgoCompareUtil::produce().

reco::TrackBaseRef recoTrack_AlgoB_

◆ SetRecoVertex_AlgoA()

void TPtoRecoTrack::SetRecoVertex_AlgoA ( reco::VertexRef  vertex)
inline

◆ SetRecoVertex_AlgoB()

void TPtoRecoTrack::SetRecoVertex_AlgoB ( reco::VertexRef  vertex)
inline

◆ SetShared_AlgoA()

void TPtoRecoTrack::SetShared_AlgoA ( const float &  mA)
inline

Definition at line 30 of file TPtoRecoTrack.h.

References sharedA_.

Referenced by TrackAlgoCompareUtil::produce().

30 { sharedA_ = mA; }

◆ SetShared_AlgoB()

void TPtoRecoTrack::SetShared_AlgoB ( const float &  mB)
inline

Definition at line 31 of file TPtoRecoTrack.h.

References sharedB_.

Referenced by TrackAlgoCompareUtil::produce().

31 { sharedB_ = mB; }

◆ SetTrackingParticle()

void TPtoRecoTrack::SetTrackingParticle ( TrackingParticleRef  tp)
inline

Definition at line 25 of file TPtoRecoTrack.h.

References cmsswSequenceInfo::tp, and trackingParticle_.

Referenced by TrackAlgoCompareUtil::produce().

25 { trackingParticle_ = tp; }
TrackingParticleRef trackingParticle_

◆ SetTrackingParticleMomentumPCA()

void TPtoRecoTrack::SetTrackingParticleMomentumPCA ( const GlobalVector p)
inline

◆ SetTrackingParticlePCA()

void TPtoRecoTrack::SetTrackingParticlePCA ( const GlobalPoint v)
inline

Definition at line 83 of file TPtoRecoTrack.h.

References simPCA_, and findQualityFiles::v.

Referenced by TrackAlgoCompareUtil::SetTrackingParticleD0Dz(), and TPtoRecoTrack().

◆ TP()

TrackingParticle TPtoRecoTrack::TP ( ) const
inline

Definition at line 41 of file TPtoRecoTrack.h.

References edm::Ref< C, T, F >::isNonnull(), ProducerSetup_cfi::TrackingParticle, and trackingParticle_.

Referenced by numTPMothers(), numTPSourceTracks(), s_qoverp(), and TPMother().

bool isNonnull() const
Checks for non-null.
Definition: Ref.h:232
TrackingParticleRef trackingParticle_

◆ TPMother() [1/2]

TrackingParticle TPtoRecoTrack::TPMother ( unsigned short  i) const

Definition at line 12 of file TPtoRecoTrack.cc.

References mps_fire::i, TrackingParticle::parentVertex(), mps_fire::result, TP(), and ProducerSetup_cfi::TrackingParticle.

12  {
13  std::vector<TrackingParticle> result;
14 
15  if (TP().parentVertex().isNonnull()) {
16  if (TP().parentVertex()->nSourceTracks() > 0) {
17  for (TrackingParticleRefVector::iterator si = TP().parentVertex()->sourceTracks_begin();
18  si != TP().parentVertex()->sourceTracks_end();
19  ++si) {
20  for (TrackingParticleRefVector::iterator di = TP().parentVertex()->daughterTracks_begin();
21  di != TP().parentVertex()->daughterTracks_end();
22  ++di) {
23  if (si != di) {
24  result.push_back(**si);
25  break;
26  }
27  }
28  if (!result.empty())
29  break;
30  }
31  } else {
32  return TrackingParticle();
33  }
34  } else {
35  return TrackingParticle();
36  }
37 
38  return i < result.size() ? result[i] : TrackingParticle();
39 }
TrackingParticle TP() const
Definition: TPtoRecoTrack.h:41
const TrackingVertexRef & parentVertex() const

◆ TPMother() [2/2]

TrackingParticle TPtoRecoTrack::TPMother ( ) const
inline

Definition at line 109 of file TPtoRecoTrack.h.

References numTPMothers(), TPMother(), and ProducerSetup_cfi::TrackingParticle.

Referenced by TPMother().

109 { return numTPMothers() == 1 ? TPMother(0) : TrackingParticle(); }
int numTPMothers() const
TrackingParticle TPMother() const
Monte Carlo truth information used for tracking validation.

Member Data Documentation

◆ beamSpot_

math::XYZPoint TPtoRecoTrack::beamSpot_
protected

Definition at line 125 of file TPtoRecoTrack.h.

Referenced by BeamSpot(), and SetBeamSpot().

◆ recoTrack_AlgoA_

reco::TrackBaseRef TPtoRecoTrack::recoTrack_AlgoA_
protected

Definition at line 115 of file TPtoRecoTrack.h.

Referenced by matchedA(), RTA(), and SetRecoTrack_AlgoA().

◆ recoTrack_AlgoB_

reco::TrackBaseRef TPtoRecoTrack::recoTrack_AlgoB_
protected

Definition at line 118 of file TPtoRecoTrack.h.

Referenced by matchedB(), RTB(), and SetRecoTrack_AlgoB().

◆ recoVertex_AlgoA_

reco::VertexRef TPtoRecoTrack::recoVertex_AlgoA_
protected

Definition at line 116 of file TPtoRecoTrack.h.

Referenced by hasRVA(), RVA(), and SetRecoVertex_AlgoA().

◆ recoVertex_AlgoB_

reco::VertexRef TPtoRecoTrack::recoVertex_AlgoB_
protected

Definition at line 119 of file TPtoRecoTrack.h.

Referenced by hasRVB(), RVB(), and SetRecoVertex_AlgoB().

◆ sharedA_

float TPtoRecoTrack::sharedA_
protected

Definition at line 126 of file TPtoRecoTrack.h.

Referenced by GetSharedA(), and SetShared_AlgoA().

◆ sharedB_

float TPtoRecoTrack::sharedB_
protected

Definition at line 127 of file TPtoRecoTrack.h.

Referenced by GetSharedB(), and SetShared_AlgoB().

◆ simMomPCA_

GlobalVector TPtoRecoTrack::simMomPCA_
protected

Definition at line 123 of file TPtoRecoTrack.h.

Referenced by s_p(), and SetTrackingParticleMomentumPCA().

◆ simPCA_

GlobalPoint TPtoRecoTrack::simPCA_
protected

Definition at line 124 of file TPtoRecoTrack.h.

Referenced by s_pca(), and SetTrackingParticlePCA().

◆ trackingParticle_

TrackingParticleRef TPtoRecoTrack::trackingParticle_
protected

Definition at line 121 of file TPtoRecoTrack.h.

Referenced by matchedA(), matchedB(), SetTrackingParticle(), and TP().