21 useSwissCross_(config.getParameter<
bool > (
"useSwissCross")) {
24 produces < reco::RecoEcalCandidateIsolationMap >();
38 desc.
add<
bool> ((
"useSwissCross"),
false);
39 descriptions.
add((
"hltEgammaHLTR9Producer"), desc);
53 for(reco::RecoEcalCandidateCollection::const_iterator iRecoEcalCand = recoecalcandHandle->begin(); iRecoEcalCand != recoecalcandHandle->end(); iRecoEcalCand++){
65 float e9 = lazyTools.e3x3( *(recoecalcandref->superCluster()->seed()) );
66 if (e9 != 0 ) {r9 = lazyTools.eMax(*(recoecalcandref->superCluster()->seed()) )/e9;}
69 r9Map.
insert(recoecalcandref, r9);
73 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(r9Map));
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
const bool useSwissCross_
const edm::EDGetTokenT< EcalRecHitCollection > ecalRechitEBToken_
const edm::EDGetTokenT< EcalRecHitCollection > ecalRechitEEToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
EgammaHLTR9Producer(const edm::ParameterSet &)
void insert(const key_type &k, const data_type &v)
insert an association
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override
~EgammaHLTR9Producer() override