Implements PFRecHitCreatorBase.
Definition at line 28 of file PFHBHERecHitCreator.h.
References PFRecHitCreatorBase::beginEvent(), TauDecayModes::dec, egammaForCoreTracking_cff::depth, HcalDetId::depth(), edm::EventSetup::get(), edm::Event::getByToken(), CaloSubdetectorGeometry::getGeometry(), CaloGeometry::getSubdetectorGeometry(), DetId::Hcal, PFLayer::HCAL_BARREL1, PFLayer::HCAL_ENDCAP, HcalBarrel, HcalEndcap, keep, eostools::move(), PFRecHitCreatorBase::qualityTests_, DetId::rawId(), recHitToken_, reco::PFRecHit::setTime(), DetId::subdetId(), and ntuplemaker::time.
42 for(
const auto& erh : *recHitHandle ) {
46 auto energy = erh.energy();
47 auto time = erh.time();
50 std::shared_ptr<const CaloCellGeometry> thisCell =
nullptr;
70 <<detid<<
" not found in geometry"<<std::endl;
79 bool rcleaned =
false;
84 if (!qtest->test(rh,erh,rcleaned)) {
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
uint32_t rawId() const
get the raw id
int depth() const
get the tower depth
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)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
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< edm::SortedCollection< HBHERecHit > > recHitToken_