CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoTracker/TkSeedingLayers/interface/SeedingHitSet.h

Go to the documentation of this file.
00001 #ifndef TkSeedingLayers_SeedingHitSet_H
00002 #define TkSeedingLayers_SeedingHitSet_H
00003 
00004 #include "TrackingTools/TransientTrackingRecHit/interface/TransientTrackingRecHit.h"
00005 
00006 class SeedingHitSet {
00007 public:
00008 
00009   typedef TransientTrackingRecHit::ConstRecHitContainer RecHits;
00010 
00011   SeedingHitSet(const RecHits & hits=RecHits()) : theRecHits(hits) {}
00012   virtual ~SeedingHitSet(){}
00013 
00014   unsigned int size() const { return theRecHits.size(); }
00015   void add(TransientTrackingRecHit::ConstRecHitPointer pHit) { theRecHits.push_back(pHit); }
00016   TransientTrackingRecHit::ConstRecHitPointer operator[](unsigned int i) const { return theRecHits[i]; }
00017 
00018   const RecHits & container() const  { return theRecHits; }
00019 
00020 protected:
00021   RecHits theRecHits;
00022 };
00023 
00024 
00025 #endif