#include <PFECALHashNavigator.h>
Public Member Functions | |
void | associateNeighbours (reco::PFRecHit &rh, std::unique_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refprod) override |
void | init (const edm::EventSetup &iSetup) override |
PFECALHashNavigator () | |
PFECALHashNavigator (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc) | |
Public Member Functions inherited from PFRecHitNavigatorBase | |
PFRecHitNavigatorBase ()=default | |
PFRecHitNavigatorBase (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc) | |
virtual | ~PFRecHitNavigatorBase ()=default |
Protected Member Functions | |
void | ecalNeighbArray (const EcalBarrelGeometry &barrelGeom, const CaloSubdetectorTopology &barrelTopo, const EcalEndcapGeometry &endcapGeom, const CaloSubdetectorTopology &endcapTopo) |
DetId | move (DetId cell, const CaloDirection &dir) const |
bool | stdmove (DetId &cell, const CaloDirection &dir, const CaloSubdetectorTopology &barrelTopo, const CaloSubdetectorTopology &endcapTopo, const EcalBarrelGeometry &barrelGeom, const EcalEndcapGeometry &endcapGeom) const |
bool | stdsimplemove (DetId &cell, const CaloDirection &dir, const CaloSubdetectorTopology &barrelTopo, const CaloSubdetectorTopology &endcapTopo, const EcalBarrelGeometry &barrelGeom, const EcalEndcapGeometry &endcapGeom) const |
Protected Member Functions inherited from PFRecHitNavigatorBase | |
void | associateNeighbour (const DetId &id, reco::PFRecHit &hit, std::unique_ptr< reco::PFRecHitCollection > &hits, edm::RefProd< reco::PFRecHitCollection > &refProd, short eta, short phi, short depth) |
Protected Attributes | |
const EcalBarrelGeometry * | barrelGeometry_ |
std::unique_ptr< EcalBarrelTopology > | barrelTopology_ |
bool | crossBarrelEndcapBorder_ |
if true, navigation will cross the barrel-endcap border More... | |
const EcalEndcapGeometry * | endcapGeometry_ |
std::unique_ptr< EcalEndcapTopology > | endcapTopology_ |
bool | neighbourmapcalculated_ |
set to true in ecalNeighbArray More... | |
std::vector< std::vector< DetId > > | neighboursEB_ |
for each ecal barrel rechit, keep track of the neighbours More... | |
std::vector< std::vector< DetId > > | neighboursEE_ |
for each ecal endcap rechit, keep track of the neighbours More... | |
Private Attributes | |
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | geomToken_ |
Additional Inherited Members | |
Public Types inherited from PFRecHitNavigatorBase | |
typedef std::unordered_map< unsigned, unsigned > | DetIdToHitIdx |
Definition at line 20 of file PFECALHashNavigator.h.
|
inline |
Definition at line 22 of file PFECALHashNavigator.h.
|
inline |
Definition at line 24 of file PFECALHashNavigator.h.
|
inlineoverridevirtual |
Implements PFRecHitNavigatorBase.
Definition at line 46 of file PFECALHashNavigator.h.
References PFRecHitNavigatorBase::associateNeighbour(), reco::PFRecHit::detId(), EAST, east, hfClusterShapes_cfi::hits, move(), NORTH, north, NORTHEAST, NORTHWEST, SOUTH, south, SOUTHEAST, SOUTHWEST, WEST, and west.
|
inlineprotected |
Definition at line 71 of file PFECALHashNavigator.h.
References central, DetId::Ecal, EcalBarrel, EcalEndcap, CaloSubdetectorGeometry::getValidDetIds(), CaloSubdetectorTopology::getWindow(), EBDetId::hashedIndex(), EEDetId::hashedIndex(), recoMuon::in, LogDebug, neighbourmapcalculated_, neighboursEB_, neighboursEE_, orderedDir, findQualityFiles::size, mps_update::status, and stdmove().
Referenced by init().
|
inlineoverridevirtual |
Implements PFRecHitNavigatorBase.
Definition at line 30 of file PFECALHashNavigator.h.
References barrelGeometry_, barrelTopology_, DetId::Ecal, EcalBarrel, EcalEndcap, ecalNeighbArray(), endcapGeometry_, endcapTopology_, geomToken_, edm::EventSetup::getHandle(), and CaloGeometry::getSubdetectorGeometry().
|
inlineprotected |
Definition at line 312 of file PFECALHashNavigator.h.
References cms::cuda::assert(), DeadROC_duringRun::dir, EcalBarrel, EBDetId::hashedIndex(), EEDetId::hashedIndex(), neighbourmapcalculated_, neighboursEB_, neighboursEE_, NONE, mps_fire::result, and DetId::subdetId().
Referenced by associateNeighbours().
|
inlineprotected |
Definition at line 238 of file PFECALHashNavigator.h.
References DeadROC_duringRun::dir, EAST, NORTH, NORTHEAST, NORTHWEST, mps_fire::result, SOUTH, SOUTHEAST, SOUTHWEST, stdsimplemove(), and WEST.
Referenced by ecalNeighbArray().
|
inlineprotected |
Definition at line 168 of file PFECALHashNavigator.h.
References crossBarrelEndcapBorder_, DeadROC_duringRun::dir, EcalBarrel, EcalEndcap, EcalEndcapGeometry::getClosestBarrelCells(), EcalBarrelGeometry::getClosestEndcapCells(), CaloSubdetectorTopology::getNeighbours(), EBDetId::ietaAbs(), hcalRecHitTable_cff::iphi, EEDetId::iPhiOuterRing(), EBDetId::MAX_IETA, and DetId::subdetId().
Referenced by stdmove().
|
protected |
Definition at line 334 of file PFECALHashNavigator.h.
Referenced by init().
|
protected |
Definition at line 331 of file PFECALHashNavigator.h.
Referenced by init().
|
protected |
if true, navigation will cross the barrel-endcap border
Definition at line 346 of file PFECALHashNavigator.h.
Referenced by stdsimplemove().
|
protected |
Definition at line 333 of file PFECALHashNavigator.h.
Referenced by init().
|
protected |
Definition at line 330 of file PFECALHashNavigator.h.
Referenced by init().
|
private |
Definition at line 349 of file PFECALHashNavigator.h.
Referenced by init().
|
protected |
set to true in ecalNeighbArray
Definition at line 343 of file PFECALHashNavigator.h.
Referenced by ecalNeighbArray(), and move().
|
protected |
for each ecal barrel rechit, keep track of the neighbours
Definition at line 337 of file PFECALHashNavigator.h.
Referenced by ecalNeighbArray(), and move().
|
protected |
for each ecal endcap rechit, keep track of the neighbours
Definition at line 340 of file PFECALHashNavigator.h.
Referenced by ecalNeighbArray(), and move().