68 produces<HBHERecHitCollection>(
"DiJetsHBHEReRecHitCollection");
69 produces<HORecHitCollection>(
"DiJetsHOReRecHitCollection");
70 produces<HFRecHitCollection>(
"DiJetsHFReRecHitCollection");
78 auto miniDiJetsHBHERecHitCollection = std::make_unique<HBHERecHitCollection>();
79 auto miniDiJetsHORecHitCollection = std::make_unique<HORecHitCollection>();
80 auto miniDiJetsHFRecHitCollection = std::make_unique<HFRecHitCollection>();
88 DetId id = hbheItr->detid();
90 if (jetRecalib->exists(
id))
91 recal = jetRecalib->getValues(
id)->getValue();
94 float energy = hbheItr->energy();
95 float time = hbheItr->time();
97 miniDiJetsHBHERecHitCollection->push_back(*hbhehit);
110 DetId id = hoItr->detid();
112 if (jetRecalib->exists(
id))
113 recal = jetRecalib->getValues(
id)->getValue();
116 float energy = hoItr->energy();
117 float time = hoItr->time();
119 miniDiJetsHORecHitCollection->push_back(*hohit);
132 DetId id = hfItr->detid();
134 if (jetRecalib->exists(
id))
135 recal = jetRecalib->getValues(
id)->getValue();
138 float energy = hfItr->energy();
139 float time = hfItr->time();
141 miniDiJetsHFRecHitCollection->push_back(*hfhit);
150 iEvent.put(
std::move(miniDiJetsHBHERecHitCollection),
"DiJetsHBHEReRecHitCollection");
152 iEvent.put(
std::move(miniDiJetsHORecHitCollection),
"DiJetsHOReRecHitCollection");
154 iEvent.put(
std::move(miniDiJetsHFRecHitCollection),
"DiJetsHFReRecHitCollection");
HitReCalibrator(const edm::ParameterSet &)
const edm::EDGetTokenT< HORecHitCollection > tok_ho_
std::vector< T >::const_iterator const_iterator
Log< level::Error, false > LogError
const edm::EDGetTokenT< HFRecHitCollection > tok_hf_
~HitReCalibrator() override
#define DEFINE_FWK_MODULE(type)
const edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_
bool getData(T &iHolder) const
const_iterator begin() const
Namespace of DDCMS conversion namespace.
const_iterator end() const
void produce(edm::Event &, const edm::EventSetup &) override
const edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_resp_