Implements PFRecHitCreatorBase.
Definition at line 35 of file PFHFRecHitCreator.h.
52 for (
const auto& erh : *recHitHandle) {
60 auto energy = erh.energy();
61 auto time = erh.time();
63 std::shared_ptr<const CaloCellGeometry> thisCell = hcalGeo->
getGeometry(detid);
64 auto zp = dynamic_cast<IdealZPrism const*>(thisCell.get());
66 thisCell = zp->forPF();
71 <<
"warning detid " << detid.
rawId() <<
" not found in geometry" << std::endl;
81 bool rcleaned =
false;
86 if (!qtest->test(rh, erh, rcleaned)) {
99 std::sort(tmpOut.begin(), tmpOut.end(),
sorter);
103 for (
auto&
hit : tmpOut) {
106 if (detid.
depth() == 1) {
107 double lONG =
hit.energy();
112 return a.detId() <
b.rawId();
114 if (found_hit != tmpOut.end() && found_hit->detId() == shortID.rawId()) {
115 double sHORT = found_hit->energy();
117 double energy = lONG - sHORT;
124 out->push_back(newHit);
133 out->push_back(newHit);
137 double sHORT =
hit.energy();
141 return a.detId() <
b.rawId();
143 double energy = 2 * sHORT;
144 if (found_hit != tmpOut.end() && found_hit->detId() == longID.rawId()) {
145 double lONG = found_hit->energy();
158 out->push_back(newHit);
166 out->push_back(newHit);
References a, funct::abs(), cms::cuda::assert(), b, PFRecHitCreatorBase::beginEvent(), LEDCalibrationChannels::depth, HcalDetId::depth(), HCALHighEnergyHPDFilter_cfi::energy, edm::EventSetup::get(), get, CaloSubdetectorGeometry::getGeometry(), CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, HcalForward, PFLayer::HF_EM, PFLayer::HF_HAD, HFCalib_, HcalDetId::ieta(), iEvent, HcalDetId::iphi(), keep, longFibre_Cut, longFibre_Fraction, cuda_std::lower_bound(), eostools::move(), MillePedeFileConverter_cfg::out, PFRecHitCreatorBase::qualityTests_, DetId::rawId(), recHitToken_, reco::PFRecHit::setEnergy(), reco::PFRecHit::setTime(), shortFibre_Cut, shortFibre_Fraction, MCScenario_CRAFT1_22X::sorter(), thresh_HF_, and ntuplemaker::time.