CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types
reco::TransientTrack Class Reference

#include <TransientTrack.h>

Inheritance diagram for reco::TransientTrack:
ProxyBase< T, Cloner >

Public Member Functions

const BasicTransientTrackbasicTransientTrack () const
 
TrackCharge charge () const
 
double chi2 () const
 chi-squared of the fit More...
 
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
 
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 setES (const edm::EventSetup &es)
 
void setTrackingGeometry (const edm::ESHandle< GlobalTrackingGeometry > &tg)
 
TrajectoryStateClosestToBeamLine stateAtBeamLine () const
 
TrajectoryStateOnSurface stateOnSurface (const GlobalPoint &point) const
 
void swap (TransientTrack &rh) noexcept
 
const Tracktrack () const
 
TrackBaseRef trackBaseRef () const
 
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint (const GlobalPoint &point) const
 
 TransientTrack () noexcept
 
 TransientTrack (BasicTransientTrack *btt) noexcept
 
 TransientTrack (const Track &tk, const MagneticField *field)
 
 TransientTrack (const TrackRef &tk, 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 () noexcept
 

Private Types

typedef BasicTransientTrack::Proxy Base
 

Additional Inherited Members

- Private Member Functions inherited from ProxyBase< T, Cloner >
void check () const
 
const Tdata () const
 
void destroy () noexcept
 
bool isValid () const
 
ProxyBaseoperator= (const ProxyBase &other) noexcept
 
 ProxyBase () noexcept
 
 ProxyBase (T *p) noexcept
 
 ProxyBase (const ProxyBase &other) noexcept
 
int references () const
 
TsharedData ()
 
void swap (ProxyBase &other) noexcept
 
TunsharedData ()
 
 ~ProxyBase () noexcept
 

Detailed Description

Definition at line 21 of file TransientTrack.h.

Member Typedef Documentation

Definition at line 23 of file TransientTrack.h.

Constructor & Destructor Documentation

reco::TransientTrack::TransientTrack ( )
inlinenoexcept

Definition at line 27 of file TransientTrack.h.

27 {}
reco::TransientTrack::TransientTrack ( BasicTransientTrack btt)
inlineexplicitnoexcept

Definition at line 29 of file TransientTrack.h.

29 : Base(btt) {}
BasicTransientTrack::Proxy Base
reco::TransientTrack::~TransientTrack ( )
inlinenoexcept

Definition at line 31 of file TransientTrack.h.

31 {}
TransientTrack::TransientTrack ( const Track tk,
const MagneticField field 
)

Definition at line 11 of file TransientTrack.cc.

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

Definition at line 15 of file TransientTrack.cc.

15  :
16  Base( new TTT(tk, field)) {}
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT
TransientTrack::TransientTrack ( const TrackRef tk,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 22 of file TransientTrack.cc.

23  :
24  Base( new TTT(tk, field, tg)) {}
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT
TransientTrack::TransientTrack ( const Track tk,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 18 of file TransientTrack.cc.

19  :
20  Base( new TTT(tk, field, tg)) {}
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT

Member Function Documentation

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

Definition at line 112 of file TransientTrack.h.

References ProxyBase< T, Cloner >::data().

Referenced by KinematicVertex::operator reco::Vertex().

112 {return &(data());}
const T & data() const
Definition: ProxyBase.h:67
TrackCharge reco::TransientTrack::charge ( void  ) const
inline

Definition at line 100 of file TransientTrack.h.

References ProxyBase< T, Cloner >::data().

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

100 {return data().charge();}
const T & data() const
Definition: ProxyBase.h:67
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().

Referenced by MuonTrackAnalyzer::fillPlots().

138 { return track().chi2(); }
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:105
const Track & track() const
const MagneticField* reco::TransientTrack::field ( ) const
inline
const HitPattern& reco::TransientTrack::hitPattern ( ) const
inline

Definition at line 132 of file TransientTrack.h.

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

Referenced by PrimaryVertexValidation::hasFirstLayerPixelHits(), and TrackFilterForPVFinding::operator()().

132 { return track().hitPattern(); }
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:221
const Track & track() const
TrajectoryStateOnSurface reco::TransientTrack::impactPointState ( ) const
inline
bool reco::TransientTrack::impactPointStateAvailable ( ) const
inline

Definition at line 97 of file TransientTrack.h.

References ProxyBase< T, Cloner >::data().

98  {return data().impactPointStateAvailable();}
const T & data() const
Definition: ProxyBase.h:67
TrajectoryStateClosestToPoint reco::TransientTrack::impactPointTSCP ( ) const
inline
FreeTrajectoryState reco::TransientTrack::initialFreeState ( ) const
inline
TrajectoryStateOnSurface reco::TransientTrack::innermostMeasurementState ( ) const
inline
bool reco::TransientTrack::isValid ( void  ) const
inline

Make the ReferenceCountingProxy method to check validity public.

Definition at line 145 of file TransientTrack.h.

References ProxyBase< T, Cloner >::isValid().

145 {return Base::isValid() ;}
bool isValid() const
Definition: ProxyBase.h:81
double reco::TransientTrack::ndof ( ) const
inline

number of degrees of freedom of the fit

Definition at line 140 of file TransientTrack.h.

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

Referenced by MuonTrackAnalyzer::fillPlots().

140 { return track().ndof(); }
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:107
const Track & track() const
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 MuonTrackAnalyzer::fillPlots(), TrackFilterForPVFinding::operator()(), and ConversionTrackPairFinder::ByNumOfHits::operator()().

142 { return track().chi2() / track().ndof(); }
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:105
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:107
const Track & track() const
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(), and track().

136 { return track().hitPattern().numberOfLostHits(); }
int numberOfLostHits() const
Definition: HitPattern.h:646
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:221
const Track & track() const
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().

Referenced by ConversionTrackPairFinder::ByNumOfHits::operator()().

134 { return track().hitPattern().numberOfValidHits(); }
int numberOfValidHits() const
Definition: HitPattern.h:589
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:221
const Track & track() const
bool reco::TransientTrack::operator< ( const TransientTrack other) const
inline

Definition at line 106 of file TransientTrack.h.

References ProxyBase< T, Cloner >::data().

107  {return &(data()) < &(other.data());}
const T & data() const
Definition: ProxyBase.h:67
bool reco::TransientTrack::operator== ( const TransientTrack other) const
inline

Definition at line 102 of file TransientTrack.h.

References ProxyBase< T, Cloner >::data().

103  {return &(data()) == &(other.data());}
const T & data() const
Definition: ProxyBase.h:67
TrajectoryStateOnSurface reco::TransientTrack::outermostMeasurementState ( ) const
inline
TrackingRecHitRef reco::TransientTrack::recHit ( size_t  i) const
inline

get n-th recHit

Definition at line 128 of file TransientTrack.h.

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

Referenced by DTChamberEfficiency::chamberSelection().

128 { return track().recHit( i ); }
int i
Definition: DBlmapReader.cc:9
const Track & track() const
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
Definition: Track.h:67
trackingRecHit_iterator reco::TransientTrack::recHitsBegin ( ) const
inline
trackingRecHit_iterator reco::TransientTrack::recHitsEnd ( ) const
inline
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(), DTChamberEfficiency::chamberSelection(), and MuonTrackAnalyzer::fillPlots().

130 { return track().recHitsSize(); }
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
Definition: Track.h:69
const Track & track() const
void reco::TransientTrack::setBeamSpot ( const reco::BeamSpot beamSpot)
inline
void reco::TransientTrack::setES ( const edm::EventSetup es)
inline
void reco::TransientTrack::setTrackingGeometry ( const edm::ESHandle< GlobalTrackingGeometry > &  tg)
inline

Definition at line 70 of file TransientTrack.h.

References ProxyBase< T, Cloner >::sharedData().

71  {sharedData().setTrackingGeometry(tg);}
T & sharedData()
Definition: ProxyBase.h:79
TrajectoryStateClosestToBeamLine reco::TransientTrack::stateAtBeamLine ( ) const
inline

Definition at line 118 of file TransientTrack.h.

References ProxyBase< T, Cloner >::data().

Referenced by PrimaryVertexAnalyzer4PU::fillTrackHistos(), TrackFilterForPVFinding::operator()(), and PrimaryVertexAnalyzer4PU::printRecTrks().

119  {return data().stateAtBeamLine();}
const T & data() const
Definition: ProxyBase.h:67
TrajectoryStateOnSurface reco::TransientTrack::stateOnSurface ( const GlobalPoint point) const
inline

Definition at line 88 of file TransientTrack.h.

References ProxyBase< T, Cloner >::data().

Referenced by EgammaHLTElectronDetaDphiProducer::calDEtaDPhiSCTrk(), MultiPerigeeLTSFactory::linearizedTrackState(), and TCTauAlgorithm::trackEcalHitPoint().

89  {return data().stateOnSurface(point);}
const T & data() const
Definition: ProxyBase.h:67
void reco::TransientTrack::swap ( TransientTrack rh)
inlinenoexcept

Definition at line 55 of file TransientTrack.h.

References ProxyBase< T, Cloner >::swap().

55  {
56  Base::swap(rh);
57  }
void swap(ProxyBase &other) noexcept
Definition: ProxyBase.h:46
const Track& reco::TransientTrack::track ( void  ) const
inline
TrackBaseRef reco::TransientTrack::trackBaseRef ( ) const
inline

Definition at line 116 of file TransientTrack.h.

References ProxyBase< T, Cloner >::data().

Referenced by GsfVertexTrackCompatibilityEstimator::estimate(), and KalmanVertexTrackCompatibilityEstimator< N >::estimate().

116 {return data().trackBaseRef();}
const T & data() const
Definition: ProxyBase.h:67
TrajectoryStateClosestToPoint reco::TransientTrack::trajectoryStateClosestToPoint ( const GlobalPoint point) const
inline