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)
 
TransientTrackoperator= (TransientTrack const &rh)
 
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)
 
double timeExt () const
 
const Tracktrack () const
 
TrackBaseRef trackBaseRef () const
 
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint (const GlobalPoint &point) const
 
 TransientTrack ()
 
 TransientTrack (BasicTransientTrack *btt)
 
 TransientTrack (TransientTrack const &rh)
 
 TransientTrack (TransientTrack &&rh)
 
 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 ()
 

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

Referenced by swap().

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

Definition at line 29 of file TransientTrack.h.

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

Definition at line 31 of file TransientTrack.h.

31 {}
reco::TransientTrack::TransientTrack ( TransientTrack const &  rh)
inline

Definition at line 34 of file TransientTrack.h.

34  :
35  Base(rh){}
BasicTransientTrack::Proxy Base
reco::TransientTrack::TransientTrack ( TransientTrack &&  rh)
inline

Definition at line 38 of file TransientTrack.h.

38  :
39  Base(std::move(rh)){}
BasicTransientTrack::Proxy Base
def move(src, dest)
Definition: eostools.py:510
TransientTrack::TransientTrack ( const Track tk,
const MagneticField field 
)

Definition at line 13 of file TransientTrack.cc.

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

Definition at line 21 of file TransientTrack.cc.

21  :
22  Base( new TTT(tk, field)) {}
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT
TransientTrack::TransientTrack ( const CandidatePtr ptr,
const MagneticField field 
)

Definition at line 18 of file TransientTrack.cc.

18  :
19  Base( new CTT(ptr, field)) {}
CandidatePtrTransientTrack CTT
BasicTransientTrack::Proxy Base
TransientTrack::TransientTrack ( const TrackRef tk,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 36 of file TransientTrack.cc.

37  :
38  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 27 of file TransientTrack.cc.

28  :
29  Base( new TTT(tk, field, tg)) {}
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT
TransientTrack::TransientTrack ( const CandidatePtr ptr,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 45 of file TransientTrack.cc.

46  :
47  Base( new CTT(tk, field, tg)) {}
CandidatePtrTransientTrack CTT
BasicTransientTrack::Proxy Base
TransientTrack::TransientTrack ( const Track tk,
const double  time,
const double  dtime,
const MagneticField field 
)

Definition at line 15 of file TransientTrack.cc.

15  :
16  Base( new TTT(tk, time, dtime, field)) {}
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT
TransientTrack::TransientTrack ( const TrackRef tk,
const double  time,
const double  dtime,
const MagneticField field 
)

Definition at line 24 of file TransientTrack.cc.

24  :
25  Base( new TTT(tk, time, dtime, field)) {}
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT
reco::TransientTrack::TransientTrack ( const CandidatePtr ptr,
const double  time,
const double  dtime,
const MagneticField field 
)
TransientTrack::TransientTrack ( const TrackRef tk,
const double  time,
const double  dtime,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 39 of file TransientTrack.cc.

42  :
43  Base( new TTT(tk, time, dtime, field, tg)) {}
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT
TransientTrack::TransientTrack ( const Track tk,
const double  time,
const double  dtime,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 30 of file TransientTrack.cc.

33  :
34  Base( new TTT(tk, time, dtime, field, tg)) {}
BasicTransientTrack::Proxy Base
TrackTransientTrack TTT
TransientTrack::TransientTrack ( const CandidatePtr ptr,
const double  time,
const double  dtime,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 49 of file TransientTrack.cc.

52  :
53  Base( new CTT(tk, time, dtime, field, tg) ) {}
CandidatePtrTransientTrack CTT
BasicTransientTrack::Proxy Base

Member Function Documentation

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

Definition at line 115 of file TransientTrack.h.

References ProxyBase11< T >::data().

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

115 {return &(data());}
const T & data() const
Definition: ProxyBase11.h:54
TrackCharge reco::TransientTrack::charge ( void  ) const
inline

Definition at line 103 of file TransientTrack.h.

References ProxyBase11< T >::data().

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

103 {return data().charge();}
const T & data() const
Definition: ProxyBase11.h:54
double reco::TransientTrack::chi2 ( void  ) const
inline

chi-squared of the fit

Definition at line 144 of file TransientTrack.h.

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

Referenced by MuonTrackAnalyzer::fillPlots().

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

Definition at line 138 of file TransientTrack.h.

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

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

138 { 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:446
TrajectoryStateOnSurface reco::TransientTrack::impactPointState ( ) const
inline

Definition at line 97 of file TransientTrack.h.

References ProxyBase11< T >::data().

Referenced by IPTools::absoluteImpactParameter3D(), IPTools::absoluteTransverseImpactParameter(), MuonEnergyDepositAnalyzer::analyze(), BDHadronTrackMonitoringAnalyzer::analyze(), HIPTwoBodyDecayAnalyzer::analyzeTrackCollection(), SignedImpactParameter3D::apply(), SignedTransverseImpactParameter::apply(), SignedDecayLength3D::apply(), SingleTrackVertexConstraint::constrain(), SignedImpactParameter3D::distanceWithJetAxis(), dqm::TrackAnalyzer::fillHistosForState(), CrossingPtBasedLinearizationPointFinder::getLinearizationPoint(), IPTools::jetTrackDistance(), IPTools::linearizedSignedImpactParameter3D(), LinearizedTrackStateFactory::linearizedTrackState(), TracksClusteringFromDisplacedSeed::nearTracks(), TrackFilterForPVFinding::operator()(), TransientTrackKinematicStateBuilder::operator()(), CompareTwoTracks::operator()(), PFTauTransverseImpactParameters::produce(), BoostedDoubleSVProducer::produce(), IPProducer< Container, Base, Helper >::produce(), IPTools::signedDecayLength3D(), IPTools::signedImpactParameter3D(), IPTools::signedTransverseImpactParameter(), TrackEfficiencyMonitor::testSTATracks(), TrackEfficiencyMonitor::testTrackerTracks(), TrackVertexArbitration< VTX >::trackVertexArbitrator(), reco::JetSignalVertexCompatibilityAlgo::trackVertexCompat(), trackVertexCompat(), and SignedTransverseImpactParameter::zImpactParameter().

98  {return data().impactPointState();}
const T & data() const
Definition: ProxyBase11.h:54
bool reco::TransientTrack::impactPointStateAvailable ( ) const
inline

Definition at line 100 of file TransientTrack.h.

References ProxyBase11< T >::data().

101  {return data().impactPointStateAvailable();}
const T & data() const
Definition: ProxyBase11.h:54
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
double reco::TransientTrack::ndof ( void  ) const
inline

number of degrees of freedom of the fit

Definition at line 146 of file TransientTrack.h.

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

Referenced by MuonTrackAnalyzer::fillPlots().

146 { return track().ndof(); }
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:555
const Track & track() const
double reco::TransientTrack::normalizedChi2 ( ) const
inline

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

Definition at line 148 of file TransientTrack.h.

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

Referenced by MuonTrackAnalyzer::fillPlots(), TrackFilterForPVFinding::operator()(), and ConversionTrackPairFinder::ByNumOfHits::operator()().

148 { return track().chi2() / track().ndof(); }
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:549
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:555
const Track & track() const
unsigned short reco::TransientTrack::numberOfLostHits ( ) const
inline

number of hits lost

Definition at line 142 of file TransientTrack.h.

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

const Track & track() const
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:446
int numberOfLostHits(HitCategory category) const
Definition: HitPattern.h:903
unsigned short reco::TransientTrack::numberOfValidHits ( ) const
inline

number of hits found

Definition at line 140 of file TransientTrack.h.

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

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

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

Definition at line 109 of file TransientTrack.h.

References ProxyBase11< T >::data().

110  {return &(data()) < &(other.data());}
const T & data() const
Definition: ProxyBase11.h:54
TransientTrack& reco::TransientTrack::operator= ( TransientTrack &&  rh)
inline

Definition at line 41 of file TransientTrack.h.

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

41  {
43  return *this;
44  }
ProxyBase11 & operator=(std::shared_ptr< U > p)
Definition: ProxyBase11.h:37
def move(src, dest)
Definition: eostools.py:510
TransientTrack& reco::TransientTrack::operator= ( TransientTrack const &  rh)
inline

Definition at line 46 of file TransientTrack.h.

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

46  {
47  Base::operator=(rh);
48  return *this;
49  }
ProxyBase11 & operator=(std::shared_ptr< U > p)
Definition: ProxyBase11.h:37
bool reco::TransientTrack::operator== ( const TransientTrack other) const
inline

Definition at line 105 of file TransientTrack.h.

References ProxyBase11< T >::data().

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

get n-th recHit

Definition at line 134 of file TransientTrack.h.

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

Referenced by DTChamberEfficiency::chamberSelection().

134 { return track().recHit( i ); }
const Track & track() const
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
Definition: Track.h:114
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 136 of file TransientTrack.h.

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

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

136 { return track().recHitsSize(); }
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
Definition: Track.h:119
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 73 of file TransientTrack.h.

References ProxyBase11< T >::sharedData().

74  {sharedData().setTrackingGeometry(tg);}
T & sharedData()
Definition: ProxyBase11.h:64
TrajectoryStateClosestToBeamLine reco::TransientTrack::stateAtBeamLine ( ) const
inline

Definition at line 124 of file TransientTrack.h.

References ProxyBase11< T >::data().

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

125  {return data().stateAtBeamLine();}
const T & data() const
Definition: ProxyBase11.h:54
TrajectoryStateOnSurface reco::TransientTrack::stateOnSurface ( const GlobalPoint point) const
inline

Definition at line 91 of file TransientTrack.h.

References ProxyBase11< T >::data().

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

92  {return data().stateOnSurface(point);}
const T & data() const
Definition: ProxyBase11.h:54
void reco::TransientTrack::swap ( TransientTrack rh)
inline

Definition at line 51 of file TransientTrack.h.

References field(), ProxyBase11< T >::swap(), ntuplemaker::time, and TransientTrack().

51  {
52  Base::swap(rh);
53  }
void swap(ProxyBase11 &other) noexcept
Definition: ProxyBase11.h:43
double reco::TransientTrack::timeExt ( ) const
inline
const Track& reco::TransientTrack::track ( ) const
inline
TrackBaseRef reco::TransientTrack::trackBaseRef ( ) const
inline
TrajectoryStateClosestToPoint reco::TransientTrack::trajectoryStateClosestToPoint ( const GlobalPoint point) const
inline