CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackExtraBase.h
Go to the documentation of this file.
1 #ifndef TrackReco_TrackExtraBase_h
2 #define TrackReco_TrackExtraBase_h
3 
16 
17 namespace reco {
19  public:
23  void add( const TrackingRecHitRef & r ) { recHits_.push_back( r ); }
29  size_t recHitsSize() const { return recHits_.size(); }
31  TrackingRecHitRef recHit( size_t i ) const { return recHits_[ i ]; }
33 
34  private:
37  };
38 
39 }
40 
41 #endif
int i
Definition: DBlmapReader.cc:9
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:249
trackingRecHit_iterator recHitsEnd() const
last iterator over RecHits
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:244
size_t recHitsSize() const
number of RecHits
TrackingRecHitRefVector recHits() const
TrackingRecHitRefVector recHits_
references to the hit assigned to the track.
TrackExtraBase()
default constructor
trackingRecHit_iterator recHitsBegin() const
first iterator over RecHits
void add(const TrackingRecHitRef &r)
add a reference to a RecHit
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
Definition: RefVector.h:64
size_type size() const
Size of the RefVector.
Definition: RefVector.h:89
TrackingRecHitRef recHit(size_t i) const
get i-th recHit