CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::TrackExtraBase Class Reference

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

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

List of all members.

Public Member Functions

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

Private Attributes

TrackingRecHitRefVector recHits_
 references to the hit assigned to the track.

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
Version:
Id:
TrackExtraBase.h,v 1.6 2007/09/20 16:55:38 tomalini Exp

Definition at line 19 of file TrackExtraBase.h.


Constructor & Destructor Documentation

reco::TrackExtraBase::TrackExtraBase ( ) [inline]

default constructor

Definition at line 22 of file TrackExtraBase.h.

{ }

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 32 of file TrackExtraBase.h.

References i, and recHits_.

{ return recHits_[ i ]; }
TrackingRecHitRefVector reco::TrackExtraBase::recHits ( void  ) const [inline]

Definition at line 33 of file TrackExtraBase.h.

References recHits_.

{return recHits_;}
trackingRecHit_iterator reco::TrackExtraBase::recHitsBegin ( ) const [inline]

first iterator over RecHits

Definition at line 26 of file TrackExtraBase.h.

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

{ return recHits_.begin(); }
trackingRecHit_iterator reco::TrackExtraBase::recHitsEnd ( ) const [inline]

last iterator over RecHits

Definition at line 28 of file TrackExtraBase.h.

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

{ return recHits_.end(); }
size_t reco::TrackExtraBase::recHitsSize ( ) const [inline]

number of RecHits

Definition at line 30 of file TrackExtraBase.h.

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

{ return recHits_.size(); }

Member Data Documentation

references to the hit assigned to the track.

Definition at line 37 of file TrackExtraBase.h.

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