Definition at line 26 of file PFPSRecHitCreator.h.
Implements PFRecHitCreatorBase.
Definition at line 33 of file PFPSRecHitCreator.h.
References PFRecHitCreatorBase::beginEvent(), ALCARECOPPSCalTrackBasedSel_cff::detid, DetId::Ecal, EcalPreshower, HBHEDarkening_cff::energy, Exception, geomToken_, CaloSubdetectorGeometry::getGeometry(), edm::EventSetup::getHandle(), CaloGeometry::getSubdetectorGeometry(), iEvent, runTheMatrix::keep, nano_mu_digi_cff::layer, eostools::move(), PFLayer::NONE, MillePedeFileConverter_cfg::out, PFLayer::PS1, PFLayer::PS2, PFRecHitCreatorBase::qualityTests_, and recHitToken_.
46 for (
const auto& erh : *recHitHandle) {
48 auto energy = erh.energy();
52 switch (
detid.plane()) {
61 <<
"incorrect preshower plane !! plane number " <<
detid.plane() << std::endl;
69 <<
"warning detid " <<
detid.rawId() <<
" not found in geometry" << std::endl;
74 auto& rh =
out->back();
75 rh.setDepth(
detid.plane());
76 rh.setTime(erh.time());
78 bool rcleaned =
false;
84 if (!qtest->test(rh, erh, rcleaned,
hi)) {
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
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
void beginEvent(const edm::Event &event, const edm::EventSetup &setup)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::EDGetTokenT< EcalRecHitCollection > recHitToken_
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly