template<typename DET, PFLayer::Layer Layer, DetId::Detector det, unsigned subdet>
class PFHGCalRecHitCreator< DET, Layer, det, subdet >
Definition at line 26 of file PFHGCalRecHitCreator.h.
template<typename DET , PFLayer::Layer Layer, DetId::Detector det, unsigned subdet>
Implements PFRecHitCreatorBase.
Definition at line 34 of file PFHGCalRecHitCreator.h.
53 unsigned skipped_rechits = 0;
54 for (
const auto& hgrh :
rechits) {
55 const DET detid(hgrh.detid());
57 if (det != detid.det()
or (subdet != 0 and subdet != detid.subdetId())) {
59 <<
"det expected: " << det <<
" det gotten: " << detid.det() <<
" ; "
60 <<
"subdet expected: " << subdet <<
" subdet gotten: " << detid.subdetId() << std::endl;
63 double energy = hgrh.energy();
64 double time = hgrh.time();
66 auto thisCell =
geom->getSubdetectorGeometry(det, subdet)->getGeometry(detid);
70 LogDebug(
"PFHGCalRecHitCreator") <<
"warning detid " << detid.rawId() <<
" not found in geometry" << std::endl;
77 bool rcleaned =
false;
91 cleaned->push_back(rh);
93 edm::LogInfo(
"HGCalRecHitCreator") <<
"Skipped " << skipped_rechits <<
" out of " <<
rechits.size() <<
" rechits!"
95 edm::LogInfo(
"HGCalRecHitCreator") <<
"Created " <<
out->size() <<
" PFRecHits!" << std::endl;
References HCALHighEnergyHPDFilter_cfi::energy, Exception, relativeConstraints::geom, edm::EventSetup::get(), get, hgcal::RecHitTools::getEventSetup(), mps_fire::i, iEvent, keep, LogDebug, or, MillePedeFileConverter_cfg::out, edm::ESHandle< T >::product(), PFRecHitCreatorBase::qualityTests_, TrackInfoProducer_cfi::rechits, PFHGCalRecHitCreator< DET, Layer, det, subdet >::recHitToken_, PFHGCalRecHitCreator< DET, Layer, det, subdet >::recHitTools_, and ntuplemaker::time.