CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types
reco::TransientTrack Class Reference

#include <TransientTrack.h>

Inheritance diagram for reco::TransientTrack:
ProxyBase11< T >

Public Member Functions

const BasicTransientTrackbasicTransientTrack () const
 
TrackCharge charge () const
 
double chi2 () const
 chi-squared of the fit More...
 
double dtErrorExt () const
 
const MagneticFieldfield () const
 
const HitPatternhitPattern () const
 
TrajectoryStateOnSurface impactPointState () const
 
bool impactPointStateAvailable () const
 
TrajectoryStateClosestToPoint impactPointTSCP () const
 
FreeTrajectoryState initialFreeState () const
 
TrajectoryStateOnSurface innermostMeasurementState () const
 
bool isValid () const
 Make the ReferenceCountingProxy method to check validity public. More...
 
double ndof () const
 number of degrees of freedom of the fit More...
 
double normalizedChi2 () const
 chi-squared divided by n.d.o.f. More...
 
unsigned short numberOfLostHits () const
 number of hits lost More...
 
unsigned short numberOfValidHits () const
 number of hits found More...
 
bool operator< (const TransientTrack &other) const
 
TransientTrackoperator= (TransientTrack &&rh) noexcept
 
TransientTrackoperator= (TransientTrack const &rh) noexcept
 
bool operator== (const TransientTrack &other) const
 
TrajectoryStateOnSurface outermostMeasurementState () const
 
TrackingRecHitRef recHit (size_t i) const
 get n-th recHit More...
 
trackingRecHit_iterator recHitsBegin () const
 first iterator to RecHits More...
 
trackingRecHit_iterator recHitsEnd () const
 last iterator to RecHits More...
 
size_t recHitsSize () const
 number of RecHits More...
 
void setBeamSpot (const reco::BeamSpot &beamSpot)
 
void setTrackingGeometry (const edm::ESHandle< GlobalTrackingGeometry > &tg)
 
TrajectoryStateClosestToBeamLine stateAtBeamLine () const
 
TrajectoryStateOnSurface stateOnSurface (const GlobalPoint &point) const
 
void swap (TransientTrack &rh) noexcept
 
double timeExt () const
 
const Tracktrack () const
 
TrackBaseRef trackBaseRef () const
 
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint (const GlobalPoint &point) const
 
 TransientTrack () noexcept
 
 TransientTrack (BasicTransientTrack *btt) noexcept
 
 TransientTrack (TransientTrack const &rh) noexcept
 
 TransientTrack (TransientTrack &&rh) noexcept
 
 TransientTrack (const Track &tk, const MagneticField *field)
 
 TransientTrack (const TrackRef &tk, const MagneticField *field)
 
 TransientTrack (const CandidatePtr &ptr, const MagneticField *field)
 
 TransientTrack (const TrackRef &tk, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TransientTrack (const Track &tk, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TransientTrack (const CandidatePtr &ptr, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TransientTrack (const Track &tk, const double time, const double dtime, const MagneticField *field)
 
 TransientTrack (const TrackRef &tk, const double time, const double dtime, const MagneticField *field)
 
 TransientTrack (const CandidatePtr &ptr, const double time, const double dtime, const MagneticField *field)
 
 TransientTrack (const TrackRef &tk, const double time, const double dtime, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TransientTrack (const Track &tk, const double time, const double dtime, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TransientTrack (const CandidatePtr &ptr, const double time, const double dtime, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 ~TransientTrack () noexcept
 

Private Types

typedef BasicTransientTrack::Proxy Base
 
- Private Types inherited from ProxyBase11< T >
using pointer = std::shared_ptr< T >
 

Additional Inherited Members

- Private Member Functions inherited from ProxyBase11< T >
void check () const
 
const Tdata () const
 
void destroy () noexcept
 
bool isValid () const
 
template<typename U >
ProxyBase11operator= (std::shared_ptr< U > p)
 
ProxyBase11operator= (ProxyBase11 &&other) noexcept=default
 
ProxyBase11operator= (const ProxyBase11 &other)=default
 
 ProxyBase11 ()
 
 ProxyBase11 (T *p)
 
template<typename U >
 ProxyBase11 (std::shared_ptr< U > p)
 
 ProxyBase11 (ProxyBase11 &&other) noexcept=default
 
 ProxyBase11 (ProxyBase11 const &other)=default
 
int references () const
 
void reset ()
 
TsharedData ()
 
void swap (ProxyBase11 &other) noexcept
 
TunsharedData ()
 
 ~ProxyBase11 () noexcept
 

Detailed Description

Definition at line 19 of file TransientTrack.h.

Member Typedef Documentation

◆ Base

Definition at line 20 of file TransientTrack.h.

Constructor & Destructor Documentation

◆ TransientTrack() [1/16]

reco::TransientTrack::TransientTrack ( )
inlinenoexcept

Definition at line 23 of file TransientTrack.h.

23 {}

◆ TransientTrack() [2/16]

reco::TransientTrack::TransientTrack ( BasicTransientTrack btt)
inlineexplicitnoexcept

Definition at line 25 of file TransientTrack.h.

25 : Base(btt) {}
BasicTransientTrack::Proxy Base

◆ ~TransientTrack()

reco::TransientTrack::~TransientTrack ( )
inlinenoexcept

Definition at line 27 of file TransientTrack.h.

27 {}

◆ TransientTrack() [3/16]

reco::TransientTrack::TransientTrack ( TransientTrack const &  rh)
inlinenoexcept

Definition at line 29 of file TransientTrack.h.

29 : Base(rh) {}
BasicTransientTrack::Proxy Base

◆ TransientTrack() [4/16]

reco::TransientTrack::TransientTrack ( TransientTrack &&  rh)
inlinenoexcept

Definition at line 31 of file TransientTrack.h.

31 : Base(std::move(rh)) {}
BasicTransientTrack::Proxy Base
def move(src, dest)
Definition: eostools.py:511

◆ TransientTrack() [5/16]

TransientTrack::TransientTrack ( const Track tk,
const MagneticField field 
)

Definition at line 12 of file TransientTrack.cc.

12 : Base(new TTT(tk, field)) {}
const MagneticField * field() const
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT

◆ TransientTrack() [6/16]

TransientTrack::TransientTrack ( const TrackRef tk,
const MagneticField field 
)

Definition at line 18 of file TransientTrack.cc.

18 : Base(new TTT(tk, field)) {}
const MagneticField * field() const
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT

◆ TransientTrack() [7/16]

TransientTrack::TransientTrack ( const CandidatePtr ptr,
const MagneticField field 
)

Definition at line 16 of file TransientTrack.cc.

16 : Base(new CTT(ptr, field)) {}
CandidatePtrTransientTrack CTT
const MagneticField * field() const
BasicTransientTrack::Proxy Base

◆ TransientTrack() [8/16]

TransientTrack::TransientTrack ( const TrackRef tk,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 34 of file TransientTrack.cc.

37  : Base(new TTT(tk, field, tg)) {}
const MagneticField * field() const
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT

◆ TransientTrack() [9/16]

TransientTrack::TransientTrack ( const Track tk,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 23 of file TransientTrack.cc.

26  : Base(new TTT(tk, field, tg)) {}
const MagneticField * field() const
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT

◆ TransientTrack() [10/16]

TransientTrack::TransientTrack ( const CandidatePtr ptr,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 45 of file TransientTrack.cc.

48  : Base(new CTT(tk, field, tg)) {}
CandidatePtrTransientTrack CTT
const MagneticField * field() const
BasicTransientTrack::Proxy Base

◆ TransientTrack() [11/16]

TransientTrack::TransientTrack ( const Track tk,
const double  time,
const double  dtime,
const MagneticField field 
)

Definition at line 13 of file TransientTrack.cc.

14  : Base(new TTT(tk, time, dtime, field)) {}
const MagneticField * field() const
BasicTransientTrack::Proxy Base
double dtime()
TrackTransientTrack TTT

◆ TransientTrack() [12/16]

TransientTrack::TransientTrack ( const TrackRef tk,
const double  time,
const double  dtime,
const MagneticField field 
)

Definition at line 20 of file TransientTrack.cc.

21  : Base(new TTT(tk, time, dtime, field)) {}
const MagneticField * field() const
BasicTransientTrack::Proxy Base
double dtime()
TrackTransientTrack TTT

◆ TransientTrack() [13/16]

reco::TransientTrack::TransientTrack ( const CandidatePtr ptr,
const double  time,
const double  dtime,
const MagneticField field 
)

◆ TransientTrack() [14/16]

TransientTrack::TransientTrack ( const TrackRef tk,
const double  time,
const double  dtime,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 38 of file TransientTrack.cc.

43  : Base(new TTT(tk, time, dtime, field, tg)) {}
const MagneticField * field() const
BasicTransientTrack::Proxy Base
double dtime()
TrackTransientTrack TTT

◆ TransientTrack() [15/16]

TransientTrack::TransientTrack ( const Track tk,
const double  time,
const double  dtime,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 27 of file TransientTrack.cc.

32  : Base(new TTT(tk, time, dtime, field, tg)) {}
const MagneticField * field() const
BasicTransientTrack::Proxy Base
double dtime()
TrackTransientTrack TTT

◆ TransientTrack() [16/16]

TransientTrack::TransientTrack ( const CandidatePtr ptr,
const double  time,
const double  dtime,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 50 of file TransientTrack.cc.

55  : Base(new CTT(tk, time, dtime, field, tg)) {}
CandidatePtrTransientTrack CTT
const MagneticField * field() const
BasicTransientTrack::Proxy Base
double dtime()

Member Function Documentation

◆ basicTransientTrack()

const BasicTransientTrack* reco::TransientTrack::basicTransientTrack ( ) const
inline

Definition at line 110 of file TransientTrack.h.

References ProxyBase11< T >::data().

Referenced by KinematicVertex::operator reco::Vertex(), and TransientVertex::originalTrack().

110 { return &(data()); }
const T & data() const
Definition: ProxyBase11.h:51

◆ charge()

TrackCharge reco::TransientTrack::charge ( void  ) const
inline

Definition at line 100 of file TransientTrack.h.

References ProxyBase11< T >::data().

Referenced by tauImpactParameter::ParticleBuilder::createTrackParticle().

100 { return data().charge(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ chi2()

double reco::TransientTrack::chi2 ( void  ) const
inline

chi-squared of the fit

Definition at line 138 of file TransientTrack.h.

References reco::TrackBase::chi2(), and track().

138 { return track().chi2(); }
const Track & track() const
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:587

◆ dtErrorExt()

double reco::TransientTrack::dtErrorExt ( ) const
inline

Definition at line 113 of file TransientTrack.h.

References ProxyBase11< T >::data().

113 { return data().dtErrorExt(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ field()

const MagneticField* reco::TransientTrack::field ( ) const
inline

◆ hitPattern()

const HitPattern& reco::TransientTrack::hitPattern ( ) const
inline

Definition at line 132 of file TransientTrack.h.

References reco::TrackBase::hitPattern(), and track().

Referenced by TrackFilterForPVFinding::operator()().

132 { return track().hitPattern(); }
const Track & track() const
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:504

◆ impactPointState()

TrajectoryStateOnSurface reco::TransientTrack::impactPointState ( ) const
inline

◆ impactPointStateAvailable()

bool reco::TransientTrack::impactPointStateAvailable ( ) const
inline

Definition at line 98 of file TransientTrack.h.

References ProxyBase11< T >::data().

98 { return data().impactPointStateAvailable(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ impactPointTSCP()

TrajectoryStateClosestToPoint reco::TransientTrack::impactPointTSCP ( ) const
inline

◆ initialFreeState()

FreeTrajectoryState reco::TransientTrack::initialFreeState ( ) const
inline

◆ innermostMeasurementState()

TrajectoryStateOnSurface reco::TransientTrack::innermostMeasurementState ( ) const
inline

◆ isValid()

bool reco::TransientTrack::isValid ( void  ) const
inline

Make the ReferenceCountingProxy method to check validity public.

Definition at line 145 of file TransientTrack.h.

References ProxyBase11< T >::isValid().

Referenced by ntupleDataFormat._Object::_checkIsValid(), GEMEfficiencyAnalyzer::analyze(), and core.AutoHandle.AutoHandle::ReallyLoad().

145 { return Base::isValid(); }
bool isValid() const
Definition: ProxyBase11.h:69

◆ ndof()

double reco::TransientTrack::ndof ( void  ) const
inline

number of degrees of freedom of the fit

Definition at line 140 of file TransientTrack.h.

References reco::TrackBase::ndof(), and track().

140 { return track().ndof(); }
const Track & track() const
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:590

◆ normalizedChi2()

double reco::TransientTrack::normalizedChi2 ( ) const
inline

chi-squared divided by n.d.o.f.

Definition at line 142 of file TransientTrack.h.

References reco::TrackBase::chi2(), reco::TrackBase::ndof(), and track().

Referenced by TrackFilterForPVFinding::operator()().

142 { return track().chi2() / track().ndof(); }
const Track & track() const
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:590
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:587

◆ numberOfLostHits()

unsigned short reco::TransientTrack::numberOfLostHits ( ) const
inline

number of hits lost

Definition at line 136 of file TransientTrack.h.

References reco::TrackBase::hitPattern(), reco::HitPattern::numberOfLostHits(), track(), and reco::HitPattern::TRACK_HITS.

const Track & track() const
int numberOfLostHits(HitCategory category) const
Definition: HitPattern.h:891
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:504

◆ numberOfValidHits()

unsigned short reco::TransientTrack::numberOfValidHits ( ) const
inline

number of hits found

Definition at line 134 of file TransientTrack.h.

References reco::TrackBase::hitPattern(), reco::HitPattern::numberOfValidHits(), and track().

134 { return track().hitPattern().numberOfValidHits(); }
const Track & track() const
int numberOfValidHits() const
Definition: HitPattern.h:817
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:504

◆ operator<()

bool reco::TransientTrack::operator< ( const TransientTrack other) const
inline

Definition at line 105 of file TransientTrack.h.

References ProxyBase11< T >::data(), and trackingPlots::other.

105 { return &(data()) < &(other.data()); }
const T & data() const
Definition: ProxyBase11.h:51

◆ operator=() [1/2]

TransientTrack& reco::TransientTrack::operator= ( TransientTrack &&  rh)
inlinenoexcept

Definition at line 33 of file TransientTrack.h.

References eostools::move(), and ProxyBase11< T >::operator=().

33  {
35  return *this;
36  }
ProxyBase11 & operator=(std::shared_ptr< U > p)
Definition: ProxyBase11.h:35
def move(src, dest)
Definition: eostools.py:511

◆ operator=() [2/2]

TransientTrack& reco::TransientTrack::operator= ( TransientTrack const &  rh)
inlinenoexcept

Definition at line 38 of file TransientTrack.h.

References ProxyBase11< T >::operator=().

38  {
39  Base::operator=(rh);
40  return *this;
41  }
ProxyBase11 & operator=(std::shared_ptr< U > p)
Definition: ProxyBase11.h:35

◆ operator==()

bool reco::TransientTrack::operator== ( const TransientTrack other) const
inline

Definition at line 102 of file TransientTrack.h.

References ProxyBase11< T >::data(), and trackingPlots::other.

102 { return &(data()) == &(other.data()); }
const T & data() const
Definition: ProxyBase11.h:51

◆ outermostMeasurementState()

TrajectoryStateOnSurface reco::TransientTrack::outermostMeasurementState ( ) const
inline

◆ recHit()

TrackingRecHitRef reco::TransientTrack::recHit ( size_t  i) const
inline

get n-th recHit

Definition at line 128 of file TransientTrack.h.

References mps_fire::i, reco::Track::recHit(), and track().

Referenced by DTChamberEfficiency::chamberSelection().

128 { return track().recHit(i); }
const Track & track() const
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
Definition: Track.h:94

◆ recHitsBegin()

trackingRecHit_iterator reco::TransientTrack::recHitsBegin ( ) const
inline

first iterator to RecHits

Definition at line 124 of file TransientTrack.h.

References reco::Track::recHitsBegin(), and track().

Referenced by DTChamberEfficiency::analyze(), GlobalTrackerMuonAlignment::debugTrackHit(), GEMEfficiencyAnalyzer::findCSCSegmentBeam(), and GlobalTrackerMuonAlignment::muonFitter().

124 { return track().recHitsBegin(); }
const Track & track() const
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
Definition: Track.h:88

◆ recHitsEnd()

trackingRecHit_iterator reco::TransientTrack::recHitsEnd ( ) const
inline

last iterator to RecHits

Definition at line 126 of file TransientTrack.h.

References reco::Track::recHitsEnd(), and track().

Referenced by DTChamberEfficiency::analyze(), GlobalTrackerMuonAlignment::debugTrackHit(), GEMEfficiencyAnalyzer::findCSCSegmentBeam(), and GlobalTrackerMuonAlignment::muonFitter().

126 { return track().recHitsEnd(); }
const Track & track() const
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
Definition: Track.h:91

◆ recHitsSize()

size_t reco::TransientTrack::recHitsSize ( ) const
inline

number of RecHits

Definition at line 130 of file TransientTrack.h.

References reco::Track::recHitsSize(), and track().

Referenced by DTChamberEfficiency::analyze(), and DTChamberEfficiency::chamberSelection().

130 { return track().recHitsSize(); }
const Track & track() const
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
Definition: Track.h:97

◆ setBeamSpot()

void reco::TransientTrack::setBeamSpot ( const reco::BeamSpot beamSpot)
inline

◆ setTrackingGeometry()

void reco::TransientTrack::setTrackingGeometry ( const edm::ESHandle< GlobalTrackingGeometry > &  tg)
inline

◆ stateAtBeamLine()

TrajectoryStateClosestToBeamLine reco::TransientTrack::stateAtBeamLine ( ) const
inline

Definition at line 119 of file TransientTrack.h.

References ProxyBase11< T >::data().

Referenced by TrackFilterForPVFinding::operator()().

119 { return data().stateAtBeamLine(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ stateOnSurface()

TrajectoryStateOnSurface reco::TransientTrack::stateOnSurface ( const GlobalPoint point) const
inline

Definition at line 92 of file TransientTrack.h.

References ProxyBase11< T >::data(), and point.

Referenced by GEMEfficiencyAnalyzer::buildStateOnSurfaceWithCSCSegment().

92 { return data().stateOnSurface(point); }
const T & data() const
Definition: ProxyBase11.h:51
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5

◆ swap()

void reco::TransientTrack::swap ( TransientTrack rh)
inlinenoexcept

Definition at line 43 of file TransientTrack.h.

References ProxyBase11< T >::swap().

43 { Base::swap(rh); }
void swap(ProxyBase11 &other) noexcept
Definition: ProxyBase11.h:42

◆ timeExt()

double reco::TransientTrack::timeExt ( ) const
inline

Definition at line 112 of file TransientTrack.h.

References ProxyBase11< T >::data().

112 { return data().timeExt(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ track()

const Track& reco::TransientTrack::track ( ) const
inline

◆ trackBaseRef()

TrackBaseRef reco::TransientTrack::trackBaseRef ( ) const
inline

Definition at line 117 of file TransientTrack.h.

References ProxyBase11< T >::data().

117 { return data().trackBaseRef(); }
const T & data() const
Definition: ProxyBase11.h:51

◆ trajectoryStateClosestToPoint()

TrajectoryStateClosestToPoint reco::TransientTrack::trajectoryStateClosestToPoint ( const GlobalPoint point) const
inline

Definition at line 88 of file TransientTrack.h.

References ProxyBase11< T >::data(), and point.

Referenced by pat::LeptonVertexSignificance::calculate(), tauImpactParameter::ParticleBuilder::createTrackParticle(), V0Fitter::fitAll(), and CheckHitPattern::operator()().

88  {
89  return data().trajectoryStateClosestToPoint(point);
90  }
const T & data() const
Definition: ProxyBase11.h:51
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5