Definition at line 26 of file PFPSRecHitCreator.h.
Implements PFRecHitCreatorBase.
Definition at line 33 of file PFPSRecHitCreator.h.
References PFRecHitCreatorBase::beginEvent(), DetId::Ecal, EcalPreshower, HCALHighEnergyHPDFilter_cfi::energy, Exception, geomToken_, CaloSubdetectorGeometry::getGeometry(), edm::EventSetup::getHandle(), CaloGeometry::getSubdetectorGeometry(), iEvent, runTheMatrix::keep, phase1PixelTopology::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)) {
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
Log< level::Error, false > LogError
constexpr std::array< uint8_t, layerIndexSize > layer
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
void beginEvent(const edm::Event &event, const edm::EventSetup &setup)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
virtual std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
edm::EDGetTokenT< EcalRecHitCollection > recHitToken_
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly