Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:26:48

0001 #ifndef OrderedHitTriplet_H
0002 #define OrderedHitTriplet_H
0003 
0004 /** \class OrderedHitTriplet 
0005  * Associate 3 RecHits into hit triplet of InnerHit,MiddleHit,OuterHit
0006  */
0007 
0008 #include "RecoTracker/TkHitPairs/interface/OrderedHitPair.h"
0009 #include "RecoTracker/TkSeedingLayers/interface/SeedingHitSet.h"
0010 
0011 class OrderedHitTriplet : public SeedingHitSet {
0012 public:
0013   typedef SeedingHitSet::ConstRecHitPointer InnerRecHit;
0014   typedef SeedingHitSet::ConstRecHitPointer OuterRecHit;
0015   typedef SeedingHitSet::ConstRecHitPointer MiddleRecHit;
0016 
0017   OrderedHitTriplet(const InnerRecHit& ih, const MiddleRecHit& mh, const OuterRecHit& oh) : SeedingHitSet(ih, mh, oh) {}
0018 
0019   InnerRecHit inner() const { return get(0); }
0020   MiddleRecHit middle() const { return get(1); }
0021   OuterRecHit outer() const { return get(2); }
0022 };
0023 
0024 #endif