18 tok_resp_ = esConsumes<HcalRespCorrs, HcalRespCorrsRcd>();
22 produces<HBHERecHitCollection>(
"DiJetsHBHEReRecHitCollection");
23 produces<HORecHitCollection>(
"DiJetsHOReRecHitCollection");
24 produces<HFRecHitCollection>(
"DiJetsHFReRecHitCollection");
32 auto miniDiJetsHBHERecHitCollection = std::make_unique<HBHERecHitCollection>();
33 auto miniDiJetsHORecHitCollection = std::make_unique<HORecHitCollection>();
34 auto miniDiJetsHFRecHitCollection = std::make_unique<HFRecHitCollection>();
43 DetId id = hbheItr->detid();
45 if (jetRecalib->
exists(
id))
49 float energy = hbheItr->energy();
50 float time = hbheItr->time();
52 miniDiJetsHBHERecHitCollection->push_back(*hbhehit);
66 DetId id = hoItr->detid();
68 if (jetRecalib->
exists(
id))
72 float energy = hoItr->energy();
73 float time = hoItr->time();
75 miniDiJetsHORecHitCollection->push_back(*hohit);
89 DetId id = hfItr->detid();
91 if (jetRecalib->
exists(
id))
95 float energy = hfItr->energy();
96 float time = hfItr->time();
98 miniDiJetsHFRecHitCollection->push_back(*hfhit);
107 iEvent.put(
std::move(miniDiJetsHBHERecHitCollection),
"DiJetsHBHEReRecHitCollection");
109 iEvent.put(
std::move(miniDiJetsHORecHitCollection),
"DiJetsHOReRecHitCollection");
111 iEvent.put(
std::move(miniDiJetsHFRecHitCollection),
"DiJetsHFReRecHitCollection");