55 : recoEcalCandidateProducer_(consumes(config.getParameter<edm::
InputTag>(
"recoEcalCandidateProducer"))),
56 ecalRechitEBToken_(consumes(config.getParameter<edm::
InputTag>(
"ecalRechitEB"))),
57 ecalRechitEEToken_(consumes(config.getParameter<edm::
InputTag>(
"ecalRechitEE"))),
60 produces<reco::RecoEcalCandidateIsolationMap>();
61 produces<reco::RecoEcalCandidateIsolationMap>(
"r95x5");
69 descriptions.
add((
"hltEgammaHLTR9IDProducer"), desc);
83 for (
unsigned int iRecoEcalCand = 0; iRecoEcalCand < recoecalcandHandle->size(); iRecoEcalCand++) {
89 float e9 = lazyTools.e3x3(*(recoecalcandref->superCluster()->seed()));
90 float e95x5 = lazyTools5x5.
e3x3(*(recoecalcandref->superCluster()->seed()));
92 float eraw = recoecalcandref->superCluster()->rawEnergy();
98 r9Map.
insert(recoecalcandref, r9);
99 r95x5Map.
insert(recoecalcandref, r95x5);
102 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(r9Map));
104 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(r95x5Map),
"r95x5");
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
const edm::EDGetTokenT< EcalRecHitCollection > ecalRechitEEToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
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.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
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)
tuple config
parse the configuration file
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override