Implements PFRecHitCreatorBase.
Definition at line 26 of file PFHBHERecHitCreator.h.
References PFRecHitCreatorBase::beginEvent(), TauDecayModes::dec, hcalRecHitTable_cff::depth, ALCARECOPPSCalTrackBasedSel_cff::detid, HBHEDarkening_cff::energy, geomToken_, CaloSubdetectorGeometry::getGeometry(), edm::EventSetup::getHandle(), CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, PFLayer::HCAL_BARREL1, PFLayer::HCAL_ENDCAP, HcalBarrel, HcalEndcap, iEvent, runTheMatrix::keep, nano_mu_digi_cff::layer, eostools::move(), MillePedeFileConverter_cfg::out, PFRecHitCreatorBase::qualityTests_, recHitToken_, reco::PFRecHit::setTime(), and hcalRecHitTable_cff::time.
41 for (
const auto& erh : *recHitHandle) {
45 auto energy = erh.energy();
46 auto time = erh.time();
68 <<
detid <<
" not found in geometry" << std::endl;
76 bool rcleaned =
false;
81 if (!qtest->test(rh, erh, rcleaned)) {
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
virtual CellMayOwnPtr getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
Log< level::Error, false > LogError
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
void beginEvent(const edm::Event &event, const edm::EventSetup &setup)
void setTime(double time)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
edm::EDGetTokenT< edm::SortedCollection< HBHERecHit > > recHitToken_