41 produces<edm::ValueMap<int>>();
79 unsigned nSrc =
src->size();
80 std::vector<int> gainSeed(nSrc, 12);
83 for (
unsigned i = 0;
i < nSrc;
i++) {
85 auto detid =
obj->superCluster()->seed()->seed();
87 auto seed = coll->find(detid);
88 if (
seed != coll->end()) {
98 fillerCorr.
insert(
src, gainSeed.begin(), gainSeed.end());
104 template <
typename T>
109 ->setComment(
"EB rechit collection");
111 ->setComment(
"EE rechit collection");
edm::EDGetTokenT< EcalRecHitCollection > recHitsEE_
edm::EDGetTokenT< edm::View< T > > src_
#define DEFINE_FWK_MODULE(type)
~EGMSeedGainProducer() override
void insert(const H &h, I begin, I end)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void addDefault(ParameterSetDescription const &psetDescription)
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