19 CaloIsolTag_.push_back(consumes<reco::RecoEcalCandidateIsolationMap>(
tag));
27 throw cms::Exception(
"BadConfig") <<
"vectors CaloIsolationMapTags and CaloIsolationWeight need to have size 3";
31 produces < reco::ElectronIsolationMap >();
42 desc.
add<std::vector<edm::InputTag> >(
"CaloIsolationMapTags", std::vector<edm::InputTag>());
44 desc.
add<std::vector<double> >(
"CaloIsolationWeight", std::vector<double>());
45 desc.
add<
double>(
"TrackIsolationWeight", 0);
46 descriptions.
add(
"hltEgammaHLTElectronCombinedIsolationProducer", desc);
57 std::vector< edm::Handle<reco::RecoEcalCandidateIsolationMap> > CaloIsoMap;
63 CaloIsoMap.push_back(depMapTemp);
72 for(reco::ElectronCollection::const_iterator iElectron = electronHandle->begin(); iElectron != electronHandle->end(); iElectron++){
78 for(reco::RecoEcalCandidateCollection::const_iterator iRecoEcalCand = recoecalcandHandle->begin(); iRecoEcalCand != recoecalcandHandle->end(); iRecoEcalCand++){
81 if(&(*cluster) == &(*theEleClus)) {
96 TotalIsolMap.
insert(electronref, TotalIso);
100 iEvent.
put(std::make_unique<reco::ElectronIsolationMap>(TotalIsolMap));
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< reco::ElectronCollection > electronProducer_
friend struct const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EgammaHLTElectronCombinedIsolationProducer(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
void produce(edm::Event &, const edm::EventSetup &) override
std::vector< edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > > CaloIsolTag_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< double > CaloIsolWeight_
void insert(const key_type &k, const data_type &v)
insert an association
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~EgammaHLTElectronCombinedIsolationProducer() override
edm::EDGetTokenT< reco::ElectronIsolationMap > TrackIsolTag_