CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/RecoTracker/TkHitPairs/interface/OrderedHitPair.h

Go to the documentation of this file.
00001 #ifndef OrderedHitPair_H
00002 #define OrderedHitPair_H
00003 
00004 #include "RecoTracker/TkSeedingLayers/interface/SeedingHitSet.h"
00005 
00006 
00007 class OrderedHitPair : public SeedingHitSet {
00008 public:
00009 
00010   typedef TransientTrackingRecHit::ConstRecHitPointer OuterRecHit; 
00011   typedef TransientTrackingRecHit::ConstRecHitPointer InnerRecHit; 
00012 
00013   OrderedHitPair( const InnerRecHit & ih, const OuterRecHit & oh) 
00014   {
00015     theRecHits.reserve(2);
00016     theRecHits.push_back(ih);
00017     theRecHits.push_back(oh);
00018   }
00019 
00020   virtual ~OrderedHitPair() {}
00021 
00022   const InnerRecHit & inner() const { return theRecHits.front(); }
00023   const OuterRecHit & outer() const { return theRecHits.back(); } 
00024 };
00025 
00026 #endif
00027