CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/DataFormats/TrackReco/interface/TrackExtraBase.h

Go to the documentation of this file.
00001 #ifndef TrackReco_TrackExtraBase_h
00002 #define TrackReco_TrackExtraBase_h
00003 
00016 #include "DataFormats/TrackingRecHit/interface/TrackingRecHitFwd.h"
00017 
00018 namespace reco {
00019   class TrackExtraBase {
00020   public:
00022     TrackExtraBase() { }
00024     void add( const TrackingRecHitRef & r ) { recHits_.push_back( r ); }
00026     trackingRecHit_iterator recHitsBegin() const { return recHits_.begin(); }
00028     trackingRecHit_iterator recHitsEnd() const { return recHits_.end(); }
00030     size_t recHitsSize() const { return recHits_.size(); }
00032     TrackingRecHitRef recHit( size_t i ) const { return recHits_[ i ]; }
00033     TrackingRecHitRefVector recHits() const {return recHits_;}
00034 
00035   private:
00037     TrackingRecHitRefVector recHits_;
00038   };
00039 
00040 }
00041 
00042 #endif