CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/DataFormats/RoadSearchSeed/interface/RoadSearchSeed.h

Go to the documentation of this file.
00001 #ifndef DATAFORMATS_ROADSEARCHSEED_H
00002 #define DATAFORMATS_ROADSEARCHSEED_H
00003 
00004 //
00005 // Package:         DataFormats/RoadSearchSeed
00006 // Class:           RoadSearchSeed
00007 // 
00008 // Description:     seed holding non-persistent pointers to
00009 //                  three hits of seed plus RoadSet
00010 //
00011 // Original Author: Oliver Gutsche, gutsche@fnal.gov
00012 // Created:         Fri Jun 22 12:32:25 UTC 2007
00013 //
00014 // $Author: gutsche $
00015 // $Date: 2007/06/29 23:45:41 $
00016 // $Revision: 1.1 $
00017 //
00018 
00019 #include <vector>
00020 
00021 #include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
00022 #include "RecoTracker/RoadMapRecord/interface/Roads.h"
00023 
00024 class RoadSearchSeed {
00025 public:
00026 
00027   typedef std::vector<const TrackingRecHit*> HitVector;
00028 
00029   RoadSearchSeed() {}
00030 
00031   inline const Roads::RoadSeed*    getSeed() const                           { return seed_;             }
00032   inline void                      setSeed(const Roads::RoadSeed *input)     { seed_ = input;            }
00033 
00034   inline const Roads::RoadSet*     getSet() const                            { return set_;              }
00035   inline void                      setSet(const Roads::RoadSet *input)       { set_ = input;             }
00036 
00037   inline void                      addHit(const TrackingRecHit *input) { hits_.push_back(input);  }
00038   inline HitVector::const_iterator begin() const                       { return hits_.begin();    }
00039   inline HitVector::const_iterator end() const                         { return hits_.end();      }
00040   inline unsigned int              nHits() const                       { return hits_.size();     }
00041 
00042 private:
00043 
00044   const Roads::RoadSeed                    *seed_;
00045   const Roads::RoadSet                     *set_;
00046   std::vector<const TrackingRecHit*>        hits_;
00047 
00048 };
00049 
00050 #endif // DATAFORMATS_ROADSEARCHSEED_H