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 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
 
double timeExt () const
 
const Tracktrack () const
 
TrackBaseRef trackBaseRef () const
 
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint (const GlobalPoint &point) const
 
 TransientTrack () noexcept
 
 TransientTrack (BasicTransientTrack *btt) noexcept
 
 TransientTrack (const CandidatePtr &ptr, const double time, const double dtime, const MagneticField *field)
 
 TransientTrack (const CandidatePtr &ptr, const double time, const double dtime, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TransientTrack (const CandidatePtr &ptr, const MagneticField *field)
 
 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 Track &tk, const double time, const double dtime, 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 (const TrackRef &tk, 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 TrackRef &tk, const MagneticField *field)
 
 TransientTrack (const TrackRef &tk, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TransientTrack (TransientTrack &&rh) noexcept
 
 TransientTrack (TransientTrack const &rh) noexcept
 
 ~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
 
ProxyBase11operator= (const ProxyBase11 &other)=default
 
ProxyBase11operator= (ProxyBase11 &&other) noexcept=default
 
template<typename U >
ProxyBase11operator= (std::shared_ptr< U > p)
 
 ProxyBase11 ()
 
 ProxyBase11 (ProxyBase11 &&other) noexcept=default
 
 ProxyBase11 (ProxyBase11 const &other)=default
 
template<typename U >
 ProxyBase11 (std::shared_ptr< U > p)
 
 ProxyBase11 (T *p)
 
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) {}

◆ ~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) {}

◆ TransientTrack() [4/16]

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

Definition at line 31 of file TransientTrack.h.

31 : Base(std::move(rh)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

◆ 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)) {}

Member Function Documentation

◆ basicTransientTrack()

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

Definition at line 112 of file TransientTrack.h.

112 { return &(data()); }

References ProxyBase11< T >::data().

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

◆ charge()

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

Definition at line 102 of file TransientTrack.h.

102 { return data().charge(); }

References ProxyBase11< T >::data().

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

◆ chi2()

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

chi-squared of the fit

Definition at line 140 of file TransientTrack.h.

140 { return track().chi2(); }

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

◆ dtErrorExt()

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

Definition at line 115 of file TransientTrack.h.

115 { return data().dtErrorExt(); }

References ProxyBase11< T >::data().

◆ field()

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

◆ hitPattern()

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

Definition at line 134 of file TransientTrack.h.

134 { return track().hitPattern(); }

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

Referenced by TrackFilterForPVFinding::operator()().

◆ impactPointState()

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

◆ impactPointStateAvailable()

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

Definition at line 100 of file TransientTrack.h.

100 { return data().impactPointStateAvailable(); }

References ProxyBase11< T >::data().

◆ 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 147 of file TransientTrack.h.

147 { return Base::isValid(); }

References ProxyBase11< T >::isValid().

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

◆ ndof()

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

number of degrees of freedom of the fit

Definition at line 142 of file TransientTrack.h.

142 { return track().ndof(); }

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

◆ normalizedChi2()

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

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

Definition at line 144 of file TransientTrack.h.

144 { return track().chi2() / track().ndof(); }

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

Referenced by TrackFilterForPVFinding::operator()().

◆ numberOfLostHits()

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

◆ numberOfValidHits()

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

number of hits found

Definition at line 136 of file TransientTrack.h.

136 { return track().hitPattern().numberOfValidHits(); }

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

◆ operator<()

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

Definition at line 107 of file TransientTrack.h.

107 { return &(data()) < &(other.data()); }

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

◆ operator=() [1/2]

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

Definition at line 33 of file TransientTrack.h.

33  {
35  return *this;
36  }

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

◆ operator=() [2/2]

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

Definition at line 38 of file TransientTrack.h.

38  {
39  Base::operator=(rh);
40  return *this;
41  }

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

◆ operator==()

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

Definition at line 104 of file TransientTrack.h.

104 { return &(data()) == &(other.data()); }

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

◆ outermostMeasurementState()

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

◆ recHit()

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

get n-th recHit

Definition at line 130 of file TransientTrack.h.

130 { return track().recHit(i); }

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

Referenced by DTChamberEfficiency::chamberSelection().

◆ recHitsBegin()

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

◆ recHitsEnd()

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

◆ recHitsSize()

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

number of RecHits

Definition at line 132 of file TransientTrack.h.

132 { return track().recHitsSize(); }

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

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

◆ setBeamSpot()

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

◆ setES()

void reco::TransientTrack::setES ( const edm::EventSetup es)
inline

◆ setTrackingGeometry()

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

Definition at line 80 of file TransientTrack.h.

80 { sharedData().setTrackingGeometry(tg); }

References ProxyBase11< T >::sharedData().

◆ stateAtBeamLine()

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

Definition at line 121 of file TransientTrack.h.

121 { return data().stateAtBeamLine(); }

References ProxyBase11< T >::data().

Referenced by TrackFilterForPVFinding::operator()().

◆ stateOnSurface()

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

Definition at line 94 of file TransientTrack.h.

94 { return data().stateOnSurface(point); }

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

◆ swap()

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

Definition at line 43 of file TransientTrack.h.

43 { Base::swap(rh); }

References ProxyBase11< T >::swap().

◆ timeExt()

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

Definition at line 114 of file TransientTrack.h.

114 { return data().timeExt(); }

References ProxyBase11< T >::data().

◆ track()

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

◆ trackBaseRef()

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

Definition at line 119 of file TransientTrack.h.

119 { return data().trackBaseRef(); }

References ProxyBase11< T >::data().

◆ trajectoryStateClosestToPoint()

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

Definition at line 90 of file TransientTrack.h.

90  {
91  return data().trajectoryStateClosestToPoint(point);
92  }

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

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

mps_fire.i
i
Definition: mps_fire.py:355
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
reco::Track::recHitsBegin
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
Definition: Track.h:88
CTT
CandidatePtrTransientTrack CTT
Definition: TransientTrack.cc:10
reco::TrackBase::ndof
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:575
reco::HitPattern::numberOfLostHits
int numberOfLostHits(HitCategory category) const
Definition: HitPattern.h:860
ProxyBase11::operator=
ProxyBase11 & operator=(std::shared_ptr< U > p)
Definition: ProxyBase11.h:35
reco::Track::recHitsSize
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits).
Definition: Track.h:97
reco::Track::recHitsEnd
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
Definition: Track.h:91
trackingPlots.other
other
Definition: trackingPlots.py:1465
ProxyBase11::swap
void swap(ProxyBase11 &other) noexcept
Definition: ProxyBase11.h:42
ProxyBase11::sharedData
T & sharedData()
Definition: ProxyBase11.h:64
ProxyBase11::isValid
bool isValid() const
Definition: ProxyBase11.h:69
reco::TrackBase::chi2
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:572
reco::Track::recHit
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
Definition: Track.h:94
reco::TransientTrack::field
const MagneticField * field() const
Definition: TransientTrack.h:110
reco::HitPattern::TRACK_HITS
Definition: HitPattern.h:155
reco::TrackBase::hitPattern
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:489
eostools.move
def move(src, dest)
Definition: eostools.py:511
reco::TransientTrack::Base
BasicTransientTrack::Proxy Base
Definition: TransientTrack.h:20
reco::TransientTrack::track
const Track & track() const
Definition: TransientTrack.h:117
ProxyBase11::data
const T & data() const
Definition: ProxyBase11.h:51
TTT
TrackTransientTrack TTT
Definition: TransientTrack.cc:9
reco::HitPattern::numberOfValidHits
int numberOfValidHits() const
Definition: HitPattern.h:786
point
*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
ntuplemaker.time
time
Definition: ntuplemaker.py:310