41 produces<edm::ValueMap<int>>();
73 const auto& recHitsEBProd =
iEvent.get(recHitsEB_);
74 const auto& recHitsEEProd =
iEvent.get(recHitsEE_);
76 unsigned nSrc =
src->size();
77 std::vector<int> gainSeed(nSrc, 12);
80 for (
unsigned i = 0;
i < nSrc;
i++) {
82 auto detid =
obj->superCluster()->seed()->seed();
83 const auto& coll =
obj->isEB() ? recHitsEBProd : recHitsEEProd;
84 auto seed = coll.find(detid);
85 if (
seed != coll.end()) {
95 fillerCorr.
insert(
src, gainSeed.begin(), gainSeed.end());
101 template <
typename T>
106 ->setComment(
"EB rechit collection");
108 ->setComment(
"EE rechit collection");
edm::EDGetTokenT< EcalRecHitCollection > recHitsEE_
edm::EDGetTokenT< edm::View< T > > src_
~EGMSeedGainProducer() override
void insert(const H &h, I begin, I end)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void addDefault(ParameterSetDescription const &psetDescription)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< EcalRecHitCollection > recHitsEB_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
EGMSeedGainProducer< pat::Electron > ElectronSeedGainProducer
EGMSeedGainProducer(const edm::ParameterSet &iConfig)
EGMSeedGainProducer< pat::Photon > PhotonSeedGainProducer