CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/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.push_back(ih);
00016     theRecHits.push_back(oh);
00017   }
00018 
00019   virtual ~OrderedHitPair() {}
00020 
00021   const InnerRecHit & inner() const { return theRecHits.front(); }
00022   const OuterRecHit & outer() const { return theRecHits.back(); } 
00023 };
00024 
00025 #endif
00026