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++) {
84 auto obj = src->ptrAt(
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>
107 desc.
add<
edm::InputTag>(
"src")->setComment(
"input physics object collection");
109 ->setComment(
"EB rechit collection");
111 ->setComment(
"EE rechit collection");
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< EcalRecHitCollection > recHitsEE_
edm::EDGetTokenT< edm::View< T > > src_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#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_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
T const * product() const
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