1 #ifndef RecoParticleFlow_PFClusterProducer_PFHBHeRecHitCreator_h 2 #define RecoParticleFlow_PFClusterProducer_PFHBHeRecHitCreator_h 27 std::unique_ptr<reco::PFRecHitCollection>& cleaned,
41 for (
const auto& erh : *recHitHandle) {
45 auto energy = erh.energy();
46 auto time = erh.time();
49 std::shared_ptr<const CaloCellGeometry> thisCell =
nullptr;
68 << detid <<
" not found in geometry" << std::endl;
76 bool rcleaned =
false;
81 if (!qtest->test(rh, erh, rcleaned)) {
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
uint32_t cc[maxCellsPerHit]
Log< level::Error, false > LogError
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
void beginEvent(const edm::Event &event, const edm::EventSetup &setup)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void setTime(double time)
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.
constexpr uint32_t rawId() const
get the raw id
PFHBHERecHitCreator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
void importRecHits(std::unique_ptr< reco::PFRecHitCollection > &out, std::unique_ptr< reco::PFRecHitCollection > &cleaned, const edm::Event &iEvent, const edm::EventSetup &iSetup) override
edm::EDGetTokenT< edm::SortedCollection< HBHERecHit > > recHitToken_
constexpr int depth() const
get the tower depth