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);
T getParameter(std::string const &) const
~EgammaHLTCombinedIsolationProducer()
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_
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
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)