23 std::vector<edm::InputTag> tempIsolTag =
conf_.
getParameter< std::vector<edm::InputTag> > (
"IsolationMapTags");
24 for (
unsigned int i=0;
i<tempIsolTag.size();
i++)
25 IsolTag_.push_back(consumes<reco::RecoEcalCandidateIsolationMap>(tempIsolTag[
i]));
30 produces < reco::RecoEcalCandidateIsolationMap >();
33 throw cms::Exception(
"BadConfig") <<
"vectors IsolationMapTags and IsolationWeight need to have the same size";
44 desc.
add<std::vector<edm::InputTag>>(
"IsolationMapTags", std::vector<edm::InputTag>());
45 desc.
add<std::vector<double>>(
"IsolationWeight", std::vector<double>());
46 descriptions.
add(
"hltEgammaHLTCombinedIsolationProducer", desc);
60 std::vector< edm::Handle<reco::RecoEcalCandidateIsolationMap> > IsoMap;
61 for(
unsigned int u=0; u <
IsolWeight_.size(); u++){
66 IsoMap.push_back(depMapTemp);
69 for(reco::RecoEcalCandidateCollection::const_iterator iRecoEcalCand = recoecalcandHandle->begin(); iRecoEcalCand != recoecalcandHandle->end(); iRecoEcalCand++){
72 for(
unsigned int u=0; u <
IsolWeight_.size(); u++){
77 TotalIsolMap.
insert(recoecalcandref, TotalIso);
81 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(TotalIsolMap));
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
friend struct const_iterator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< edm::EDGetTokenT< reco::RecoEcalCandidateIsolationMap > > IsolTag_
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< double > IsolWeight_
edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void produce(edm::Event &, const edm::EventSetup &) override
EgammaHLTCombinedIsolationProducer(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)
~EgammaHLTCombinedIsolationProducer() override