CMS 3D CMS Logo

RoadSearchCloud.h

Go to the documentation of this file.
00001 #ifndef DATAFORMATS_ROADSEARCHCLOUD_H
00002 #define DATAFORMATS_ROADSEARCHCLOUD_H
00003 
00004 //
00005 // Package:         DataFormats/RoadSearchCloud
00006 // Class:           RoadSearchCloud
00007 // 
00008 // Description:     Intermediate product of RoadSearch
00009 //                  pattern recongnition. Holds refs to
00010 //                  all RecHits in a Cloud following a Road.
00011 //
00012 // Original Author: Oliver Gutsche, gutsche@fnal.gov
00013 // Created:         Sat Jan 14 22:00:00 UTC 2006
00014 //
00015 // $Author: gutsche $
00016 // $Date: 2007/07/08 20:22:41 $
00017 // $Revision: 1.6 $
00018 //
00019 
00020 #include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
00021 
00022 class RoadSearchCloud {
00023 public:
00024 
00025   typedef std::vector<const TrackingRecHit*> RecHitVector;
00026 
00027   RoadSearchCloud() {}
00028   RoadSearchCloud(RecHitVector rechits): recHits_(rechits) {}
00029 
00030   inline RoadSearchCloud* clone() const { return new RoadSearchCloud(recHits_); }
00031   inline void addHit(const TrackingRecHit* input) { recHits_.push_back(input); }
00032   inline unsigned int size() const { return recHits_.size(); }
00033   inline RecHitVector recHits() const { return recHits_; }
00034   inline RecHitVector::const_iterator begin_hits() const { return recHits_.begin(); }
00035   inline RecHitVector::const_iterator end_hits()   const { return recHits_.end();   }
00036 
00037 private:
00038 
00039   RecHitVector recHits_;
00040 
00041 };
00042 
00043 #endif // DATAFORMATS_ROADSEARCHCLOUD_H

Generated on Tue Jun 9 17:31:41 2009 for CMSSW by  doxygen 1.5.4