#include <RecoTracktoTP.h>
Definition at line 21 of file RecoTracktoTP.h.
RecoTracktoTP::RecoTracktoTP | ( | ) |
Definition at line 5 of file RecoTracktoTP.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)); }
RecoTracktoTP::~RecoTracktoTP | ( | ) |
Definition at line 13 of file RecoTracktoTP.cc.
{ }
bool RecoTracktoTP::allmatched | ( | ) | const [inline] |
math::XYZPoint RecoTracktoTP::BeamSpot | ( | ) | const [inline] |
float RecoTracktoTP::GetShared | ( | ) | const [inline] |
bool RecoTracktoTP::hasPCA | ( | ) | const [inline] |
Definition at line 42 of file RecoTracktoTP.h.
References PV3DBase< T, PVType, FrameType >::mag(), and s_pca().
bool RecoTracktoTP::hasRV | ( | ) | const [inline] |
Definition at line 41 of file RecoTracktoTP.h.
References edm::Ref< C, T, F >::isNonnull(), and recoVertex.
Referenced by allmatched().
{return recoVertex.isNonnull() && fabs(recoVertex->position().Mag2())>0.0;} // position is ROOT::MATH::Cartesian3D<double>
bool RecoTracktoTP::hasTPMother | ( | ) | const [inline] |
Definition at line 80 of file RecoTracktoTP.h.
References numTPMothers().
{return numTPMothers()>0;}
bool RecoTracktoTP::matched | ( | ) | const [inline] |
Definition at line 40 of file RecoTracktoTP.h.
References edm::RefToBase< T >::isNonnull(), edm::Ref< C, T, F >::isNonnull(), recoTrack, and trackingParticle_.
Referenced by allmatched().
{return trackingParticle_.isNonnull() && recoTrack.isNonnull();}
int RecoTracktoTP::numTPMothers | ( | ) | const |
Definition at line 55 of file RecoTracktoTP.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 RecoTracktoTP::numTPSourceTracks | ( | ) | const [inline] |
Definition at line 78 of file RecoTracktoTP.h.
References TrackingParticle::parentVertex(), and TP().
{return TP().parentVertex()->nSourceTracks();}
double RecoTracktoTP::r_d0 | ( | ) | const [inline] |
double RecoTracktoTP::r_d02 | ( | ) | const [inline] |
Definition at line 52 of file RecoTracktoTP.h.
References reco::TrackBase::dxy(), position, RT(), and RV().
double RecoTracktoTP::r_dsz | ( | ) | const [inline] |
Definition at line 47 of file RecoTracktoTP.h.
References BeamSpot(), reco::TrackBase::dsz(), and RT().
double RecoTracktoTP::r_dxy | ( | ) | const [inline] |
Definition at line 46 of file RecoTracktoTP.h.
References BeamSpot(), reco::TrackBase::dxy(), and RT().
Referenced by r_d0().
double RecoTracktoTP::r_dz | ( | ) | const [inline] |
Definition at line 49 of file RecoTracktoTP.h.
References BeamSpot(), reco::TrackBase::dz(), and RT().
double RecoTracktoTP::r_dz2 | ( | ) | const [inline] |
Definition at line 53 of file RecoTracktoTP.h.
References reco::TrackBase::dz(), position, RT(), and RV().
reco::Track RecoTracktoTP::RT | ( | ) | const [inline] |
Definition at line 35 of file RecoTracktoTP.h.
References edm::RefToBase< T >::isNonnull(), and recoTrack.
Referenced by r_d02(), r_dsz(), r_dxy(), r_dz(), and r_dz2().
{return recoTrack.isNonnull() ? *recoTrack : reco::Track();}
reco::Vertex RecoTracktoTP::RV | ( | ) | const [inline] |
Definition at line 37 of file RecoTracktoTP.h.
References edm::Ref< C, T, F >::isNonnull(), and recoVertex.
Referenced by r_d02(), and r_dz2().
{return recoVertex.isNonnull() ? *recoVertex : reco::Vertex();}
double RecoTracktoTP::s_d0 | ( | ) | const [inline] |
double RecoTracktoTP::s_dsz | ( | ) | const [inline] |
Definition at line 70 of file RecoTracktoTP.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 RecoTracktoTP::s_dxy | ( | ) | const [inline] |
Definition at line 69 of file RecoTracktoTP.h.
References PV3DBase< T, PVType, FrameType >::perp(), s_p(), s_v(), ExpressReco_HICollisions_FallBack::x, and ExpressReco_HICollisions_FallBack::y.
Referenced by s_d0().
double RecoTracktoTP::s_dz | ( | ) | const [inline] |
Definition at line 72 of file RecoTracktoTP.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 RecoTracktoTP::s_eta | ( | ) | const [inline] |
Definition at line 67 of file RecoTracktoTP.h.
References funct::log(), s_p(), funct::tan(), and theta().
double RecoTracktoTP::s_lambda | ( | ) | const [inline] |
Definition at line 65 of file RecoTracktoTP.h.
References M_PI, s_p(), and PV3DBase< T, PVType, FrameType >::theta().
GlobalVector RecoTracktoTP::s_p | ( | ) | const [inline] |
Definition at line 59 of file RecoTracktoTP.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 RecoTracktoTP::s_pca | ( | ) | const [inline] |
double RecoTracktoTP::s_phi | ( | ) | const [inline] |
Definition at line 66 of file RecoTracktoTP.h.
References PV3DBase< T, PVType, FrameType >::phi(), and s_p().
double RecoTracktoTP::s_qoverp | ( | ) | const [inline] |
Definition at line 63 of file RecoTracktoTP.h.
References ParticleBase::charge(), PV3DBase< T, PVType, FrameType >::mag(), s_p(), and TP().
double RecoTracktoTP::s_theta | ( | ) | const [inline] |
Definition at line 64 of file RecoTracktoTP.h.
References s_p(), and PV3DBase< T, PVType, FrameType >::theta().
GlobalPoint RecoTracktoTP::s_v | ( | ) | const [inline] |
Definition at line 61 of file RecoTracktoTP.h.
References BeamSpot(), s_pca(), ExpressReco_HICollisions_FallBack::x, ExpressReco_HICollisions_FallBack::y, and z.
void RecoTracktoTP::SetBeamSpot | ( | math::XYZPoint | bs | ) | [inline] |
Definition at line 31 of file RecoTracktoTP.h.
References beamSpot_.
Referenced by TrackAlgoCompareUtil::produce(), and RecoTracktoTP().
{beamSpot_ = bs;}
void RecoTracktoTP::SetRecoTrack | ( | reco::TrackBaseRef | track | ) | [inline] |
Definition at line 29 of file RecoTracktoTP.h.
References recoTrack, and ExpressReco_HICollisions_FallBack::track.
Referenced by TrackAlgoCompareUtil::produce().
void RecoTracktoTP::SetRecoVertex | ( | reco::VertexRef | vertex | ) | [inline] |
Definition at line 30 of file RecoTracktoTP.h.
References recoVertex.
Referenced by TrackAlgoCompareUtil::produce().
{recoVertex = vertex;}
void RecoTracktoTP::SetShared | ( | const float & | m | ) | [inline] |
Definition at line 32 of file RecoTracktoTP.h.
Referenced by TrackAlgoCompareUtil::produce().
void RecoTracktoTP::SetTrackingParticle | ( | TrackingParticleRef | tp | ) | [inline] |
Definition at line 28 of file RecoTracktoTP.h.
References trackingParticle_.
Referenced by TrackAlgoCompareUtil::produce().
{trackingParticle_ = tp;}
void RecoTracktoTP::SetTrackingParticleMomentumPCA | ( | const GlobalVector & | p | ) | [inline] |
Definition at line 56 of file RecoTracktoTP.h.
References L1TEmulatorMonitor_cff::p, and simMomPCA_.
Referenced by RecoTracktoTP(), and TrackAlgoCompareUtil::SetTrackingParticleD0Dz().
{simMomPCA_ = p;}
void RecoTracktoTP::SetTrackingParticlePCA | ( | const GlobalPoint & | v | ) | [inline] |
Definition at line 57 of file RecoTracktoTP.h.
Referenced by RecoTracktoTP(), and TrackAlgoCompareUtil::SetTrackingParticleD0Dz().
TrackingParticle RecoTracktoTP::TP | ( | ) | const [inline] |
Definition at line 36 of file RecoTracktoTP.h.
References edm::Ref< C, T, F >::isNonnull(), and trackingParticle_.
Referenced by numTPMothers(), numTPSourceTracks(), s_qoverp(), and TPMother().
{return trackingParticle_.isNonnull() ? *trackingParticle_ : TrackingParticle();}
TrackingParticle RecoTracktoTP::TPMother | ( | ) | const [inline] |
Definition at line 77 of file RecoTracktoTP.h.
References numTPMothers(), and TPMother().
Referenced by TPMother().
{return numTPMothers()==1 ? TPMother(0) : TrackingParticle();}
TrackingParticle RecoTracktoTP::TPMother | ( | unsigned short | i | ) | const |
Definition at line 18 of file RecoTracktoTP.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 RecoTracktoTP::beamSpot_ [protected] |
Definition at line 91 of file RecoTracktoTP.h.
Referenced by BeamSpot(), and SetBeamSpot().
reco::TrackBaseRef RecoTracktoTP::recoTrack [protected] |
Definition at line 84 of file RecoTracktoTP.h.
Referenced by matched(), RT(), and SetRecoTrack().
reco::VertexRef RecoTracktoTP::recoVertex [protected] |
Definition at line 85 of file RecoTracktoTP.h.
Referenced by hasRV(), RV(), and SetRecoVertex().
float RecoTracktoTP::shared_ [protected] |
Definition at line 92 of file RecoTracktoTP.h.
Referenced by GetShared(), and SetShared().
GlobalVector RecoTracktoTP::simMomPCA_ [protected] |
Definition at line 89 of file RecoTracktoTP.h.
Referenced by s_p(), and SetTrackingParticleMomentumPCA().
GlobalPoint RecoTracktoTP::simPCA_ [protected] |
Definition at line 90 of file RecoTracktoTP.h.
Referenced by s_pca(), and SetTrackingParticlePCA().
TrackingParticleRef RecoTracktoTP::trackingParticle_ [protected] |
Definition at line 87 of file RecoTracktoTP.h.
Referenced by matched(), SetTrackingParticle(), and TP().