64 tok_resp_ = esConsumes<HcalRespCorrs, HcalRespCorrsRcd>();
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>();
89 DetId id = hbheItr->detid();
91 if (jetRecalib->exists(
id))
92 recal = jetRecalib->getValues(
id)->getValue();
95 float energy = hbheItr->energy();
96 float time = hbheItr->time();
98 miniDiJetsHBHERecHitCollection->push_back(*hbhehit);
112 DetId id = hoItr->detid();
114 if (jetRecalib->exists(
id))
115 recal = jetRecalib->getValues(
id)->getValue();
118 float energy = hoItr->energy();
119 float time = hoItr->time();
121 miniDiJetsHORecHitCollection->push_back(*hohit);
135 DetId id = hfItr->detid();
137 if (jetRecalib->exists(
id))
138 recal = jetRecalib->getValues(
id)->getValue();
141 float energy = hfItr->energy();
142 float time = hfItr->time();
144 miniDiJetsHFRecHitCollection->push_back(*hfhit);
153 iEvent.
put(
std::move(miniDiJetsHBHERecHitCollection),
"DiJetsHBHEReRecHitCollection");
155 iEvent.
put(
std::move(miniDiJetsHORecHitCollection),
"DiJetsHOReRecHitCollection");
157 iEvent.
put(
std::move(miniDiJetsHFRecHitCollection),
"DiJetsHFReRecHitCollection");
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
HitReCalibrator(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< T >::const_iterator const_iterator
Log< level::Error, false > LogError
bool getData(T &iHolder) const
~HitReCalibrator() override
edm::EDGetTokenT< HORecHitCollection > tok_ho_
const_iterator end() const
edm::EDGetTokenT< HFRecHitCollection > tok_hf_
void produce(edm::Event &, const edm::EventSetup &) override
T const * product() const
T getParameter(std::string const &) const
edm::ESGetToken< HcalRespCorrs, HcalRespCorrsRcd > tok_resp_
const_iterator begin() const
edm::EDGetTokenT< HBHERecHitCollection > tok_hbhe_