44 produces<edm::ValueMap<int>>();
85 unsigned nSrc = src->size();
86 std::vector<int> gainSeed(nSrc,12);
89 for (
unsigned i = 0;
i<nSrc;
i++){
90 auto obj = src->ptrAt(
i);
91 auto detid =
obj->superCluster()->seed()->seed();
102 fillerCorr.
insert(src,gainSeed.begin(),gainSeed.end());
109 template <
typename T>
113 desc.
add<
edm::InputTag>(
"src")->setComment(
"input physics object 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
~EGMSeedGainProducer() override
void insert(const H &h, I begin, I end)
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
#define DEFINE_FWK_MODULE(type)
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)
EGMSeedGainProducer< pat::Electron > ElectronSeedGainProducer
EGMSeedGainProducer(const edm::ParameterSet &iConfig)
EGMSeedGainProducer< pat::Photon > PhotonSeedGainProducer
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override