File indexing completed on 2024-05-22 04:03:20
0001 #ifndef RecoSelectors_PixelClusterSelectorTopBottom_h
0002 #define RecoSelectors_PixelClusterSelectorTopBottom_h
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "DataFormats/SiPixelCluster/interface/SiPixelCluster.h"
0012
0013 #include "FWCore/Framework/interface/global/EDProducer.h"
0014 #include "FWCore/Framework/interface/Event.h"
0015 #include "DataFormats/Common/interface/Handle.h"
0016 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0017
0018 #include "DataFormats/SiPixelCluster/interface/SiPixelCluster.h"
0019 #include "Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h"
0020 #include "Geometry/Records/interface/TrackerDigiGeometryRecord.h"
0021 #include "Geometry/CommonDetUnit/interface/PixelGeomDetUnit.h"
0022 #include "DataFormats/DetId/interface/DetId.h"
0023 #include "FWCore/Utilities/interface/InputTag.h"
0024
0025 class PixelClusterSelectorTopBottom : public edm::global::EDProducer<> {
0026 public:
0027 explicit PixelClusterSelectorTopBottom(const edm::ParameterSet& cfg)
0028 : tTrackerGeom_(esConsumes<TrackerGeometry, TrackerDigiGeometryRecord>()),
0029 token_(consumes<SiPixelClusterCollectionNew>(cfg.getParameter<edm::InputTag>("label"))),
0030 y_(cfg.getParameter<double>("y")) {
0031 produces<SiPixelClusterCollectionNew>();
0032 }
0033
0034 void produce(edm::StreamID, edm::Event& event, const edm::EventSetup& setup) const override;
0035
0036 private:
0037 edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord> const tTrackerGeom_;
0038 edm::EDGetTokenT<SiPixelClusterCollectionNew> token_;
0039 double y_;
0040 };
0041
0042 #endif