27 , hfRecHitProducer_ (consumes<
HFRecHitCollection>(conf_.getParameter<
edm::InputTag>(
"hfRecHitProducer")))
28 , egHcalIsoPtMin_ (conf_.getParameter<double>(
"egHcalIsoPtMin"))
29 , egHcalIsoConeSize_ (conf_.getParameter<double>(
"egHcalIsoConeSize"))
30 , egHcalExclusion_ (conf_.getParameter<double>(
"egHcalExclusion"))
35 produces < reco::RecoEcalCandidateIsolationMap >();
46 desc.
add<
double>((
"egHcalIsoPtMin"), 0.);
47 desc.
add<
double>((
"egHcalIsoConeSize"), 0.3);
48 desc.
add<
double>((
"egHcalExclusion"), 0.15);
49 descriptions.
add((
"hltEgammaHLTHcalIsolationDoubleConeProducers"), desc);
72 for(
unsigned int iRecoEcalCand=0; iRecoEcalCand<recoecalcandHandle->size(); iRecoEcalCand++) {
75 float isol =
test_->
isolPtSum(&(*recoecalcandref), hcalhitBarrelCollection, hcalhitEndcapCollection, caloGeom);
77 isoMap.
insert(recoecalcandref, isol);
80 iEvent.
put(std::make_unique<reco::RecoEcalCandidateIsolationMap>(isoMap));
void produce(edm::StreamID sid, edm::Event &, const edm::EventSetup &) const override
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EgammaHLTHcalIsolationDoubleConeProducers(const edm::ParameterSet &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< HBHERecHitCollection > hbRecHitProducer_
const edm::EDGetTokenT< reco::RecoEcalCandidateCollection > recoEcalCandidateProducer_
float isolPtSum(const reco::RecoCandidate *recocandidate, const HBHERecHitCollection *hbhe, const HFRecHitCollection *hf, const CaloGeometry *geometry) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
~EgammaHLTHcalIsolationDoubleConeProducers() override
T const * product() const
void insert(const key_type &k, const data_type &v)
insert an association
EgammaHLTHcalIsolationDoubleCone const *const test_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< RecoEcalCandidate > RecoEcalCandidateCollection
collectin of RecoEcalCandidate objects
const edm::EDGetTokenT< HFRecHitCollection > hfRecHitProducer_
T const * product() const