Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef CombinedHitTripletGenerator_H
0002 #define CombinedHitTripletGenerator_H
0003 
0004 /** A HitTripletGenerator consisting of a set of 
0005  *  triplet generators of type HitTripletGeneratorFromPairAndLayers
0006  *  initialised from provided layers in the form of PixelLayerTriplets  
0007  */
0008 
0009 #include <vector>
0010 #include <memory>
0011 #include "RecoPixelVertexing/PixelTriplets/interface/HitTripletGenerator.h"
0012 #include "RecoTracker/TkHitPairs/interface/LayerHitMapCache.h"
0013 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0014 #include "FWCore/Utilities/interface/EDGetToken.h"
0015 
0016 #include <string>
0017 #include <memory>
0018 
0019 class TrackingRegion;
0020 class HitTripletGeneratorFromPairAndLayers;
0021 class SeedingLayerSetsHits;
0022 
0023 namespace edm {
0024   class Event;
0025 }
0026 namespace edm {
0027   class EventSetup;
0028 }
0029 
0030 class CombinedHitTripletGenerator : public HitTripletGenerator {
0031 public:
0032   typedef LayerHitMapCache LayerCacheType;
0033 
0034 public:
0035   CombinedHitTripletGenerator(const edm::ParameterSet& cfg, edm::ConsumesCollector& iC);
0036 
0037   ~CombinedHitTripletGenerator() override;
0038 
0039   /// from base class
0040   void hitTriplets(const TrackingRegion& reg,
0041                    OrderedHitTriplets& triplets,
0042                    const edm::Event& ev,
0043                    const edm::EventSetup& es) override;
0044 
0045 private:
0046   edm::EDGetTokenT<SeedingLayerSetsHits> theSeedingLayerToken;
0047 
0048   LayerCacheType theLayerCache;
0049 
0050   std::unique_ptr<HitTripletGeneratorFromPairAndLayers> theGenerator;
0051 };
0052 #endif