55 : recoEcalCandidateProducer_(consumes(
config.getParameter<
edm::
InputTag>(
"recoEcalCandidateProducer"))),
60 produces<reco::RecoEcalCandidateIsolationMap>();
61 produces<reco::RecoEcalCandidateIsolationMap>(
"r95x5");
69 descriptions.
add((
"hltEgammaHLTR9IDProducer"),
desc);
83 for (
unsigned int iRecoEcalCand = 0; iRecoEcalCand < recoecalcandHandle->size(); iRecoEcalCand++) {
85 if (recoecalcandref->superCluster()->seed()->seed().det() !=
DetId::Ecal) {
86 r9Map.insert(recoecalcandref, 1.0);
87 r95x5Map.
insert(recoecalcandref, 1.0);
93 float e9 = lazyTools.e3x3(*(recoecalcandref->superCluster()->seed()));
94 float e95x5 = lazyTools5x5.
e3x3(*(recoecalcandref->superCluster()->seed()));
96 float eraw = recoecalcandref->superCluster()->rawEnergy();
102 r9Map.insert(recoecalcandref,
r9);
103 r95x5Map.
insert(recoecalcandref, r95x5);
106 iEvent.put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(
r9Map));
108 iEvent.put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(r95x5Map),
"r95x5");
const edm::EDGetTokenT< EcalRecHitCollection > ecalRechitEEToken_
const EcalClusterLazyTools::ESGetTokens ecalClusterToolsESGetTokens_
const edm::EDGetTokenT< EcalRecHitCollection > ecalRechitEBToken_
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void insert(const key_type &k, const data_type &v)
insert an association
EgammaHLTR9IDProducer(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override