1 #ifndef RecoParticleFlow_PFClusterProducer_PFHcalRecHitCreator_h
2 #define RecoParticleFlow_PFClusterProducer_PFHcalRecHitCreator_h
21 template <
typename Digi,
typename Geometry, PFLayer::Layer Layer,
int Detector>
26 recHitToken_(cc.consumes<edm::SortedCollection<Digi> >(iConfig.getParameter<edm::
InputTag>(
"src"))),
31 std::unique_ptr<reco::PFRecHitCollection>& cleaned,
47 for (
const auto& erh : *recHitHandle) {
56 detid = theHcalTopology->
idFront(detid);
59 auto energy = erh.energy();
60 auto time = erh.time();
63 auto thisCell = hcalGeo->getGeometry(detid);
68 <<
"warning detid " << detid.
rawId() <<
" not found in geometry" << std::endl;
76 bool rcleaned =
false;
81 if (!qtest->test(rh, erh, rcleaned)) {
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
PFHcalRecHitCreator< HORecHit, CaloSubdetectorGeometry, PFLayer::HCAL_BARREL2, HcalOuter > PFHORecHitCreator
constexpr uint32_t rawId() const
get the raw id
PFHcalRecHitCreator< HFRecHit, CaloSubdetectorGeometry, PFLayer::HF_EM, HcalForward > PFHFEMRecHitCreator
Log< level::Error, false > LogError
bool getMergePositionFlag() const
SeedingLayerSetsHits::SeedingLayer Layer
Class Geometry Contains vector for fit parameters (mean, sigma, etc.) obtained from multiple IOVs See...
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
edm::EDGetTokenT< edm::SortedCollection< Digi > > recHitToken_
void beginEvent(const edm::Event &event, const edm::EventSetup &setup)
PFHcalRecHitCreator< HBHERecHit, CaloSubdetectorGeometry, PFLayer::HCAL_ENDCAP, HcalEndcap > PFHERecHitCreator
void setTime(double time)
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > topoToken_
void importRecHits(std::unique_ptr< reco::PFRecHitCollection > &out, std::unique_ptr< reco::PFRecHitCollection > &cleaned, const edm::Event &iEvent, const edm::EventSetup &iSetup) override
PFHcalRecHitCreator< HFRecHit, CaloSubdetectorGeometry, PFLayer::HF_HAD, HcalForward > PFHFHADRecHitCreator
PFHcalRecHitCreator< HBHERecHit, CaloSubdetectorGeometry, PFLayer::HCAL_BARREL1, HcalBarrel > PFHBRecHitCreator
T const * product() const
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
PFHcalRecHitCreator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc)
HcalDetId idFront(const HcalDetId &id) const
constexpr int depth() const
get the tower depth
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const