#include <TPtoRecoTrack.h>
Definition at line 21 of file TPtoRecoTrack.h.
TPtoRecoTrack::TPtoRecoTrack | ( | ) |
Definition at line 5 of file TPtoRecoTrack.cc.
References SetBeamSpot(), SetTrackingParticleMomentumPCA(), and SetTrackingParticlePCA().
{ SetBeamSpot(math::XYZPoint(-9999.0, -9999.0, -9999.0)); SetTrackingParticlePCA(GlobalPoint(-9999.0, -9999.0, -9999.0)); SetTrackingParticleMomentumPCA(GlobalVector(-9999.0, -9999.0, -9999.0)); }
TPtoRecoTrack::~TPtoRecoTrack | ( | ) |
Definition at line 13 of file TPtoRecoTrack.cc.
{ }
bool TPtoRecoTrack::allmatched | ( | ) | const [inline] |
bool TPtoRecoTrack::allmatchedA | ( | ) | const [inline] |
Definition at line 58 of file TPtoRecoTrack.h.
References hasRVA(), and matchedA().
bool TPtoRecoTrack::allmatchedB | ( | ) | const [inline] |
Definition at line 59 of file TPtoRecoTrack.h.
References hasRVA(), and matchedB().
math::XYZPoint TPtoRecoTrack::BeamSpot | ( | ) | const [inline] |
float TPtoRecoTrack::GetSharedA | ( | ) | const [inline] |
float TPtoRecoTrack::GetSharedB | ( | ) | const [inline] |
bool TPtoRecoTrack::hasPCA | ( | ) | const [inline] |
Definition at line 57 of file TPtoRecoTrack.h.
References PV3DBase< T, PVType, FrameType >::mag(), and s_pca().
bool TPtoRecoTrack::hasRV | ( | ) | const [inline] |
Definition at line 56 of file TPtoRecoTrack.h.
References hasRVA(), and hasRVB().
Referenced by allmatched().
bool TPtoRecoTrack::hasRVA | ( | ) | const [inline] |
Definition at line 54 of file TPtoRecoTrack.h.
References edm::Ref< C, T, F >::isNonnull(), and recoVertex_AlgoA_.
Referenced by allmatchedA(), allmatchedB(), and hasRV().
{return recoVertex_AlgoA_.isNonnull() && fabs(recoVertex_AlgoA_->position().Mag2())>0.0;} // position is ROOT::MATH::Cartesian3D<double>
bool TPtoRecoTrack::hasRVB | ( | ) | const [inline] |
Definition at line 55 of file TPtoRecoTrack.h.
References edm::Ref< C, T, F >::isNonnull(), and recoVertex_AlgoB_.
Referenced by hasRV().
{return recoVertex_AlgoB_.isNonnull() && fabs(recoVertex_AlgoB_->position().Mag2())>0.0;} // position is ROOT::MATH::Cartesian3D<double>
bool TPtoRecoTrack::hasTPMother | ( | ) | const [inline] |
Definition at line 104 of file TPtoRecoTrack.h.
References numTPMothers().
{return numTPMothers()>0;}
bool TPtoRecoTrack::matched | ( | ) | const [inline] |
Definition at line 49 of file TPtoRecoTrack.h.
References matchedA(), and matchedB().
Referenced by allmatched().
bool TPtoRecoTrack::matchedA | ( | ) | const [inline] |
Definition at line 50 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().
{return trackingParticle_.isNonnull() && recoTrack_AlgoA_.isNonnull();}
bool TPtoRecoTrack::matchedAnotB | ( | ) | const [inline] |
Definition at line 52 of file TPtoRecoTrack.h.
References matchedA(), and matchedB().
bool TPtoRecoTrack::matchedB | ( | ) | const [inline] |
Definition at line 51 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().
{return trackingParticle_.isNonnull() && recoTrack_AlgoB_.isNonnull();}
bool TPtoRecoTrack::matchedBnotA | ( | ) | const [inline] |
Definition at line 53 of file TPtoRecoTrack.h.
References matchedA(), and matchedB().
int TPtoRecoTrack::numTPMothers | ( | ) | const |
Definition at line 55 of file TPtoRecoTrack.cc.
References prof2calltree::count, TrackingParticle::parentVertex(), and TP().
Referenced by hasTPMother(), and TPMother().
{ int count = 0; for(TrackingParticleRefVector::iterator si = TP().parentVertex()->sourceTracks_begin(); si != TP().parentVertex()->sourceTracks_end(); si++) { for(TrackingParticleRefVector::iterator di = TP().parentVertex()->daughterTracks_begin(); di != TP().parentVertex()->daughterTracks_end(); di++) { if(si != di) count++; break; } if(count>0) break; } return count; }
int TPtoRecoTrack::numTPSourceTracks | ( | ) | const [inline] |
Definition at line 102 of file TPtoRecoTrack.h.
References TrackingParticle::parentVertex(), and TP().
{return TP().parentVertex()->nSourceTracks();}
double TPtoRecoTrack::rA_d0 | ( | ) | const [inline] |
double TPtoRecoTrack::rA_d02 | ( | ) | const [inline] |
Definition at line 75 of file TPtoRecoTrack.h.
References reco::TrackBase::dxy(), position, RTA(), and RVA().
double TPtoRecoTrack::rA_dsz | ( | ) | const [inline] |
Definition at line 67 of file TPtoRecoTrack.h.
References BeamSpot(), reco::TrackBase::dsz(), and RTA().
double TPtoRecoTrack::rA_dxy | ( | ) | const [inline] |
Definition at line 65 of file TPtoRecoTrack.h.
References BeamSpot(), reco::TrackBase::dxy(), and RTA().
Referenced by rA_d0().
double TPtoRecoTrack::rA_dz | ( | ) | const [inline] |
Definition at line 71 of file TPtoRecoTrack.h.
References BeamSpot(), reco::TrackBase::dz(), and RTA().
double TPtoRecoTrack::rA_dz2 | ( | ) | const [inline] |
Definition at line 76 of file TPtoRecoTrack.h.
References reco::TrackBase::dz(), position, RTA(), and RVA().
double TPtoRecoTrack::rB_d0 | ( | ) | const [inline] |
double TPtoRecoTrack::rB_d02 | ( | ) | const [inline] |
Definition at line 77 of file TPtoRecoTrack.h.
References reco::TrackBase::dxy(), position, RTB(), and RVB().
double TPtoRecoTrack::rB_dsz | ( | ) | const [inline] |
Definition at line 68 of file TPtoRecoTrack.h.
References BeamSpot(), reco::TrackBase::dsz(), and RTB().
double TPtoRecoTrack::rB_dxy | ( | ) | const [inline] |
Definition at line 66 of file TPtoRecoTrack.h.
References BeamSpot(), reco::TrackBase::dxy(), and RTB().
Referenced by rB_d0().
double TPtoRecoTrack::rB_dz | ( | ) | const [inline] |
Definition at line 72 of file TPtoRecoTrack.h.
References BeamSpot(), reco::TrackBase::dz(), and RTB().
double TPtoRecoTrack::rB_dz2 | ( | ) | const [inline] |
Definition at line 78 of file TPtoRecoTrack.h.
References reco::TrackBase::dz(), position, RTB(), and RVB().
reco::Track TPtoRecoTrack::RTA | ( | ) | const [inline] |
Definition at line 42 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().
{return recoTrack_AlgoA_.isNonnull() ? *recoTrack_AlgoA_ : reco::Track();}
reco::Track TPtoRecoTrack::RTB | ( | ) | const [inline] |
Definition at line 43 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().
{return recoTrack_AlgoB_.isNonnull() ? *recoTrack_AlgoB_ : reco::Track();}
reco::Vertex TPtoRecoTrack::RVA | ( | ) | const [inline] |
Definition at line 45 of file TPtoRecoTrack.h.
References edm::Ref< C, T, F >::isNonnull(), and recoVertex_AlgoA_.
Referenced by rA_d02(), and rA_dz2().
{return recoVertex_AlgoA_.isNonnull() ? *recoVertex_AlgoA_ : reco::Vertex();}
reco::Vertex TPtoRecoTrack::RVB | ( | ) | const [inline] |
Definition at line 46 of file TPtoRecoTrack.h.
References edm::Ref< C, T, F >::isNonnull(), and recoVertex_AlgoB_.
Referenced by rB_d02(), and rB_dz2().
{return recoVertex_AlgoB_.isNonnull() ? *recoVertex_AlgoB_ : reco::Vertex();}
double TPtoRecoTrack::s_d0 | ( | ) | const [inline] |
double TPtoRecoTrack::s_dsz | ( | ) | const [inline] |
Definition at line 95 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().
double TPtoRecoTrack::s_dxy | ( | ) | const [inline] |
double TPtoRecoTrack::s_dz | ( | ) | const [inline] |
Definition at line 97 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().
double TPtoRecoTrack::s_eta | ( | ) | const [inline] |
Definition at line 92 of file TPtoRecoTrack.h.
References create_public_lumi_plots::log, s_p(), funct::tan(), and theta().
double TPtoRecoTrack::s_lambda | ( | ) | const [inline] |
Definition at line 90 of file TPtoRecoTrack.h.
References M_PI, s_p(), and PV3DBase< T, PVType, FrameType >::theta().
GlobalVector TPtoRecoTrack::s_p | ( | ) | const [inline] |
Definition at line 84 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().
{return simMomPCA_;}
GlobalPoint TPtoRecoTrack::s_pca | ( | ) | const [inline] |
double TPtoRecoTrack::s_phi | ( | ) | const [inline] |
Definition at line 91 of file TPtoRecoTrack.h.
References PV3DBase< T, PVType, FrameType >::phi(), and s_p().
double TPtoRecoTrack::s_qoverp | ( | ) | const [inline] |
Definition at line 88 of file TPtoRecoTrack.h.
References ParticleBase::charge(), PV3DBase< T, PVType, FrameType >::mag(), s_p(), and TP().
double TPtoRecoTrack::s_theta | ( | ) | const [inline] |
Definition at line 89 of file TPtoRecoTrack.h.
References s_p(), and PV3DBase< T, PVType, FrameType >::theta().
GlobalPoint TPtoRecoTrack::s_v | ( | ) | const [inline] |
void TPtoRecoTrack::SetBeamSpot | ( | math::XYZPoint | bs | ) | [inline] |
Definition at line 39 of file TPtoRecoTrack.h.
References beamSpot_.
Referenced by TrackAlgoCompareUtil::produce(), and TPtoRecoTrack().
{beamSpot_ = bs;}
void TPtoRecoTrack::SetRecoTrack_AlgoA | ( | reco::TrackBaseRef | track | ) | [inline] |
Definition at line 30 of file TPtoRecoTrack.h.
References recoTrack_AlgoA_.
Referenced by TrackAlgoCompareUtil::produce().
{recoTrack_AlgoA_ = track;}
void TPtoRecoTrack::SetRecoTrack_AlgoB | ( | reco::TrackBaseRef | track | ) | [inline] |
Definition at line 31 of file TPtoRecoTrack.h.
References recoTrack_AlgoB_.
Referenced by TrackAlgoCompareUtil::produce().
{recoTrack_AlgoB_ = track;}
void TPtoRecoTrack::SetRecoVertex_AlgoA | ( | reco::VertexRef | vertex | ) | [inline] |
Definition at line 36 of file TPtoRecoTrack.h.
References recoVertex_AlgoA_.
Referenced by TrackAlgoCompareUtil::produce().
{recoVertex_AlgoA_ = vertex;}
void TPtoRecoTrack::SetRecoVertex_AlgoB | ( | reco::VertexRef | vertex | ) | [inline] |
Definition at line 37 of file TPtoRecoTrack.h.
References recoVertex_AlgoB_.
Referenced by TrackAlgoCompareUtil::produce().
{recoVertex_AlgoB_ = vertex;}
void TPtoRecoTrack::SetShared_AlgoA | ( | const float & | mA | ) | [inline] |
Definition at line 33 of file TPtoRecoTrack.h.
References sharedA_.
Referenced by TrackAlgoCompareUtil::produce().
{sharedA_= mA;}
void TPtoRecoTrack::SetShared_AlgoB | ( | const float & | mB | ) | [inline] |
Definition at line 34 of file TPtoRecoTrack.h.
References sharedB_.
Referenced by TrackAlgoCompareUtil::produce().
{sharedB_= mB;}
void TPtoRecoTrack::SetTrackingParticle | ( | TrackingParticleRef | tp | ) | [inline] |
Definition at line 28 of file TPtoRecoTrack.h.
References trackingParticle_.
Referenced by TrackAlgoCompareUtil::produce().
{trackingParticle_ = tp;}
void TPtoRecoTrack::SetTrackingParticleMomentumPCA | ( | const GlobalVector & | p | ) | [inline] |
Definition at line 81 of file TPtoRecoTrack.h.
References AlCaHLTBitMon_ParallelJobs::p, and simMomPCA_.
Referenced by TrackAlgoCompareUtil::SetTrackingParticleD0Dz(), and TPtoRecoTrack().
{simMomPCA_ = p;}
void TPtoRecoTrack::SetTrackingParticlePCA | ( | const GlobalPoint & | v | ) | [inline] |
Definition at line 82 of file TPtoRecoTrack.h.
Referenced by TrackAlgoCompareUtil::SetTrackingParticleD0Dz(), and TPtoRecoTrack().
TrackingParticle TPtoRecoTrack::TP | ( | ) | const [inline] |
Definition at line 44 of file TPtoRecoTrack.h.
References edm::Ref< C, T, F >::isNonnull(), and trackingParticle_.
Referenced by numTPMothers(), numTPSourceTracks(), s_qoverp(), and TPMother().
{return trackingParticle_.isNonnull() ? *trackingParticle_ : TrackingParticle();}
TrackingParticle TPtoRecoTrack::TPMother | ( | ) | const [inline] |
Definition at line 101 of file TPtoRecoTrack.h.
References numTPMothers(), and TPMother().
Referenced by TPMother().
{return numTPMothers()==1 ? TPMother(0) : TrackingParticle();}
TrackingParticle TPtoRecoTrack::TPMother | ( | unsigned short | i | ) | const |
Definition at line 18 of file TPtoRecoTrack.cc.
References i, TrackingParticle::parentVertex(), query::result, and TP().
{ std::vector<TrackingParticle> result; if( TP().parentVertex().isNonnull()) { if(TP().parentVertex()->nSourceTracks() > 0) { for(TrackingParticleRefVector::iterator si = TP().parentVertex()->sourceTracks_begin(); si != TP().parentVertex()->sourceTracks_end(); si++) { for(TrackingParticleRefVector::iterator di = TP().parentVertex()->daughterTracks_begin(); di != TP().parentVertex()->daughterTracks_end(); di++) { if(si != di) { result.push_back(**si); break; } } if(result.size()) break; } } else { return TrackingParticle(); } } else { return TrackingParticle(); } return i < result.size() ? result[i] : TrackingParticle(); }
math::XYZPoint TPtoRecoTrack::beamSpot_ [protected] |
Definition at line 118 of file TPtoRecoTrack.h.
Referenced by BeamSpot(), and SetBeamSpot().
reco::TrackBaseRef TPtoRecoTrack::recoTrack_AlgoA_ [protected] |
Definition at line 108 of file TPtoRecoTrack.h.
Referenced by matchedA(), RTA(), and SetRecoTrack_AlgoA().
reco::TrackBaseRef TPtoRecoTrack::recoTrack_AlgoB_ [protected] |
Definition at line 111 of file TPtoRecoTrack.h.
Referenced by matchedB(), RTB(), and SetRecoTrack_AlgoB().
reco::VertexRef TPtoRecoTrack::recoVertex_AlgoA_ [protected] |
Definition at line 109 of file TPtoRecoTrack.h.
Referenced by hasRVA(), RVA(), and SetRecoVertex_AlgoA().
reco::VertexRef TPtoRecoTrack::recoVertex_AlgoB_ [protected] |
Definition at line 112 of file TPtoRecoTrack.h.
Referenced by hasRVB(), RVB(), and SetRecoVertex_AlgoB().
float TPtoRecoTrack::sharedA_ [protected] |
Definition at line 119 of file TPtoRecoTrack.h.
Referenced by GetSharedA(), and SetShared_AlgoA().
float TPtoRecoTrack::sharedB_ [protected] |
Definition at line 120 of file TPtoRecoTrack.h.
Referenced by GetSharedB(), and SetShared_AlgoB().
GlobalVector TPtoRecoTrack::simMomPCA_ [protected] |
Definition at line 116 of file TPtoRecoTrack.h.
Referenced by s_p(), and SetTrackingParticleMomentumPCA().
GlobalPoint TPtoRecoTrack::simPCA_ [protected] |
Definition at line 117 of file TPtoRecoTrack.h.
Referenced by s_pca(), and SetTrackingParticlePCA().
TrackingParticleRef TPtoRecoTrack::trackingParticle_ [protected] |
Definition at line 114 of file TPtoRecoTrack.h.
Referenced by matchedA(), matchedB(), SetTrackingParticle(), and TP().