Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-23 03:25:33

0001 #ifndef RecoTracker_TkSeedingLayers_HitExtractorPIX_H
0002 #define RecoTracker_TkSeedingLayers_HitExtractorPIX_H
0003 
0004 #include "DataFormats/TrackerCommon/interface/TrackerDetSide.h"
0005 #include "HitExtractor.h"
0006 
0007 #include <string>
0008 #include <vector>
0009 
0010 #include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHitCollection.h"
0011 #include "DataFormats/TrackerRecHit2D/interface/SiPixelRecHit.h"
0012 #include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
0013 #include "Geometry/Records/interface/TrackerTopologyRcd.h"
0014 
0015 namespace ctfseeding {
0016   class HitExtractorPIX final : public HitExtractor {
0017   public:
0018     HitExtractorPIX(TrackerDetSide side, int idLayer, const std::string& hitProducer, edm::ConsumesCollector& iC);
0019     ~HitExtractorPIX() override {}
0020     HitExtractor::Hits hits(const TkTransientTrackingRecHitBuilder& ttrhBuilder,
0021                             const edm::Event&,
0022                             const edm::EventSetup&) const override;
0023     HitExtractorPIX* clone() const override { return new HitExtractorPIX(*this); }
0024 
0025   private:
0026     typedef edm::ContainerMask<edmNew::DetSetVector<SiPixelCluster> > SkipClustersCollection;
0027     void useSkipClusters_(const edm::InputTag& m, edm::ConsumesCollector& iC) override;
0028 
0029     edm::EDGetTokenT<SkipClustersCollection> theSkipClusters;
0030     edm::EDGetTokenT<SiPixelRecHitCollection> theHitProducer;
0031     edm::ESGetToken<TrackerTopology, TrackerTopologyRcd> theTtopo;
0032     TrackerDetSide theSide;
0033     int theIdLayer;
0034   };
0035 }  // namespace ctfseeding
0036 #endif