CMS 3D CMS Logo

Public Member Functions | Private Types

reco::TransientTrack Class Reference

#include <TransientTrack.h>

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

List of all members.

Public Member Functions

const BasicTransientTrackbasicTransientTrack () const
TrackCharge charge () const
double chi2 () const
 chi-squared of the fit
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.
double ndof () const
 number of degrees of freedom of the fit
double normalizedChi2 () const
 chi-squared divided by n.d.o.f.
unsigned short numberOfLostHits () const
 number of hits lost
unsigned short numberOfValidHits () const
 number of hits found
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
trackingRecHit_iterator recHitsBegin () const
 first iterator to RecHits
trackingRecHit_iterator recHitsEnd () const
 last iterator to RecHits
size_t recHitsSize () const
 number of RecHits
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 (const TrackRef &tk, const MagneticField *field)
 TransientTrack () noexcept
 TransientTrack (const TrackRef &tk, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 TransientTrack (const Track &tk, const MagneticField *field)
 TransientTrack (const Track &tk, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 TransientTrack (BasicTransientTrack *btt) noexcept
 ~TransientTrack () noexcept

Private Types

typedef BasicTransientTrack::Proxy Base

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 ( ) [inline]

Definition at line 27 of file TransientTrack.h.

{}
reco::TransientTrack::TransientTrack ( BasicTransientTrack btt) [inline, explicit]

Definition at line 29 of file TransientTrack.h.

: Base(btt) {}
reco::TransientTrack::~TransientTrack ( ) [inline]

Definition at line 31 of file TransientTrack.h.

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

Definition at line 11 of file TransientTrack.cc.

                                                                             : 
  Base( new TTT(tk, field)) {}
TransientTrack::TransientTrack ( const TrackRef tk,
const MagneticField field 
)

Definition at line 15 of file TransientTrack.cc.

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

Definition at line 22 of file TransientTrack.cc.

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

Definition at line 18 of file TransientTrack.cc.

                                                                               :
  Base( new TTT(tk, field, tg)) {}

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().

{return &(data());}
TrackCharge reco::TransientTrack::charge ( void  ) const [inline]

Definition at line 100 of file TransientTrack.h.

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

{return data().charge();}
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().

{ return track().chi2(); }
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 TrackFilterForPVFinding::operator()().

{ return track().hitPattern(); }
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().

        {return data().impactPointStateAvailable();}
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.

Reimplemented from ProxyBase< T, Cloner >.

Definition at line 145 of file TransientTrack.h.

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

{return Base::isValid() ;}
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().

{ return track().ndof(); }
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(), ConversionTrackPairFinder::ByNumOfHits::operator()(), and TrackFilterForPVFinding::operator()().

{ return track().chi2() / track().ndof(); }
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().

{ return track().hitPattern().numberOfLostHits(); }
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()().

{ return track().hitPattern().numberOfValidHits(); }
bool reco::TransientTrack::operator< ( const TransientTrack other) const [inline]

Definition at line 106 of file TransientTrack.h.

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

        {return &(data()) < &(other.data());}
bool reco::TransientTrack::operator== ( const TransientTrack other) const [inline]

Definition at line 102 of file TransientTrack.h.

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

        {return &(data()) == &(other.data());}
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().

{ return track().recHit( i ); }
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().

{ return track().recHitsSize(); }
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().

        {sharedData().setTrackingGeometry(tg);}
TrajectoryStateClosestToBeamLine reco::TransientTrack::stateAtBeamLine ( ) const [inline]
TrajectoryStateOnSurface reco::TransientTrack::stateOnSurface ( const GlobalPoint point) const [inline]
void reco::TransientTrack::swap ( TransientTrack rh) [inline]

Definition at line 55 of file TransientTrack.h.

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

                                            {
      Base::swap(rh);
    }
const Track& reco::TransientTrack::track ( void  ) const [inline]
TrackBaseRef reco::TransientTrack::trackBaseRef ( ) const [inline]
TrajectoryStateClosestToPoint reco::TransientTrack::trajectoryStateClosestToPoint ( const GlobalPoint point) const [inline]