Go to the documentation of this file.
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");
void insert(const H &h, I begin, I end)
~EGMSeedGainProducer() override
edm::EDGetTokenT< EcalRecHitCollection > recHitsEE_
edm::EDGetTokenT< edm::View< T > > src_
EGMSeedGainProducer< pat::Photon > PhotonSeedGainProducer
EGMSeedGainProducer< pat::Electron > ElectronSeedGainProducer
#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(const edm::ParameterSet &iConfig)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void addDefault(ParameterSetDescription const &psetDescription)