23 allowMissingInputs_ =
true;
26 produces<HBHERecHitCollection>(
"DiJetsHBHEReRecHitCollection");
27 produces<HORecHitCollection>(
"DiJetsHOReRecHitCollection");
28 produces<HFRecHitCollection>(
"DiJetsHFReRecHitCollection");
32 HitReCalibrator::~HitReCalibrator() {}
36 auto miniDiJetsHBHERecHitCollection = std::make_unique<HBHERecHitCollection>();
37 auto miniDiJetsHORecHitCollection = std::make_unique<HORecHitCollection>();
38 auto miniDiJetsHFRecHitCollection = std::make_unique<HFRecHitCollection>();
49 DetId id = hbheItr->detid();
51 if (jetRecalib->
exists(
id))
55 float energy = hbheItr->energy();
56 float time = hbheItr->time();
58 miniDiJetsHBHERecHitCollection->push_back(*hbhehit);
61 if (!allowMissingInputs_) {
62 cout <<
"No HBHE collection " << endl;
72 DetId id = hoItr->detid();
74 if (jetRecalib->
exists(
id))
78 float energy = hoItr->energy();
79 float time = hoItr->time();
81 miniDiJetsHORecHitCollection->push_back(*hohit);
84 if (!allowMissingInputs_) {
85 cout <<
" No HO collection " << endl;
95 DetId id = hfItr->detid();
97 if (jetRecalib->
exists(
id))
101 float energy = hfItr->energy();
102 float time = hfItr->time();
104 miniDiJetsHFRecHitCollection->push_back(*hfhit);
107 if (!allowMissingInputs_)
113 iEvent.put(
std::move(miniDiJetsHBHERecHitCollection),
"DiJetsHBHEReRecHitCollection");
115 iEvent.put(
std::move(miniDiJetsHORecHitCollection),
"DiJetsHOReRecHitCollection");
117 iEvent.put(
std::move(miniDiJetsHFRecHitCollection),
"DiJetsHFReRecHitCollection");