test
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 Attributes
reco::TrackExtraBase Class Reference

#include <DataFormats/TrackReco/interface/TrackExtraBase.h>

Inheritance diagram for reco::TrackExtraBase:
reco::TrackExtra

Public Member Functions

void add (const TrackingRecHitRef &r)
 add a reference to a RecHit More...
 
TrackingRecHitRef recHit (size_t i) const
 get i-th recHit More...
 
TrackingRecHitRefVector recHits () const
 
trackingRecHit_iterator recHitsBegin () const
 first iterator over RecHits More...
 
trackingRecHit_iterator recHitsEnd () const
 last iterator over RecHits More...
 
size_t recHitsSize () const
 number of RecHits More...
 
 TrackExtraBase ()
 default constructor More...
 

Private Attributes

TrackingRecHitRefVector recHits_
 references to the hit assigned to the track. More...
 

Detailed Description

Basic extension of a reconstructed Track. Contains references to the hits assigned to the track.

If you access the hits, check if they are valid or not. (Invalid hits are dummy hits created in layers crossed by the track, where no physical hit was found).

Author
Luca Lista, INFN

Definition at line 18 of file TrackExtraBase.h.

Constructor & Destructor Documentation

reco::TrackExtraBase::TrackExtraBase ( )
inline

default constructor

Definition at line 21 of file TrackExtraBase.h.

21 { }

Member Function Documentation

void reco::TrackExtraBase::add ( const TrackingRecHitRef r)
inline
TrackingRecHitRef reco::TrackExtraBase::recHit ( size_t  i) const
inline

get i-th recHit

Definition at line 31 of file TrackExtraBase.h.

References i, and recHits_.

31 { return recHits_[ i ]; }
int i
Definition: DBlmapReader.cc:9
TrackingRecHitRefVector recHits_
references to the hit assigned to the track.
TrackingRecHitRefVector reco::TrackExtraBase::recHits ( void  ) const
inline

Definition at line 32 of file TrackExtraBase.h.

References recHits_.

32 {return recHits_;}
TrackingRecHitRefVector recHits_
references to the hit assigned to the track.
trackingRecHit_iterator reco::TrackExtraBase::recHitsBegin ( ) const
inline

first iterator over RecHits

Definition at line 25 of file TrackExtraBase.h.

References edm::RefVector< C, T, F >::begin(), and recHits_.

25 { return recHits_.begin(); }
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:244
TrackingRecHitRefVector recHits_
references to the hit assigned to the track.
trackingRecHit_iterator reco::TrackExtraBase::recHitsEnd ( ) const
inline

last iterator over RecHits

Definition at line 27 of file TrackExtraBase.h.

References edm::RefVector< C, T, F >::end(), and recHits_.

27 { return recHits_.end(); }
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:249
TrackingRecHitRefVector recHits_
references to the hit assigned to the track.
size_t reco::TrackExtraBase::recHitsSize ( ) const
inline

number of RecHits

Definition at line 29 of file TrackExtraBase.h.

References recHits_, and edm::RefVector< C, T, F >::size().

29 { return recHits_.size(); }
TrackingRecHitRefVector recHits_
references to the hit assigned to the track.
size_type size() const
Size of the RefVector.
Definition: RefVector.h:89

Member Data Documentation

TrackingRecHitRefVector reco::TrackExtraBase::recHits_
private

references to the hit assigned to the track.

Definition at line 36 of file TrackExtraBase.h.

Referenced by add(), recHit(), recHits(), recHitsBegin(), recHitsEnd(), and recHitsSize().