#include <CaloSubdetectorTopology.h>
Classes | |
struct | CellInfo |
Public Member Functions | |
CaloSubdetectorTopology () | |
standard constructor More... | |
virtual DetId | denseId2detId (unsigned int) const |
return a linear packed id More... | |
virtual bool | denseIdConsistent (int topoVer) const |
return whether this topology is consistent with the numbering in the given topology More... | |
virtual unsigned int | detId2denseId (const DetId &) const |
return a linear packed id More... | |
virtual std::vector< DetId > | down (const DetId &id) const =0 |
virtual std::vector< DetId > | east (const DetId &id) const =0 |
virtual std::vector< DetId > | getAllNeighbours (const DetId &id) const |
virtual std::vector< DetId > | getNeighbours (const DetId &id, const CaloDirection &dir) const |
virtual std::vector< DetId > | getWindow (const DetId &id, const int &northSouthSize, const int &eastWestSize) const |
virtual DetId | goDown (const DetId &id) const |
virtual DetId | goEast (const DetId &id) const |
virtual DetId | goNorth (const DetId &id) const |
virtual DetId | goSouth (const DetId &id) const |
virtual DetId | goUp (const DetId &id) const |
virtual DetId | goWest (const DetId &id) const |
virtual unsigned int | ncells () const |
return a count of valid cells (for dense indexing use) More... | |
virtual std::vector< DetId > | north (const DetId &id) const =0 |
virtual std::vector< DetId > | south (const DetId &id) const =0 |
virtual int | topoVersion () const |
return a version which identifies the given topology More... | |
virtual std::vector< DetId > | up (const DetId &id) const =0 |
virtual bool | valid (const DetId &) const |
is this detid present in the Topology? More... | |
virtual std::vector< DetId > | west (const DetId &id) const =0 |
virtual | ~CaloSubdetectorTopology () |
virtual destructor More... | |
Protected Types | |
typedef std::pair< int, int > | Coordinate |
Protected Member Functions | |
Coordinate | getNeighbourIndex (const Coordinate &coord, const CaloDirection &dir) const |
Definition at line 17 of file CaloSubdetectorTopology.h.
|
protected |
Definition at line 108 of file CaloSubdetectorTopology.h.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
return a linear packed id
Reimplemented in HcalTopology.
Definition at line 28 of file CaloSubdetectorTopology.h.
|
inlinevirtual |
return whether this topology is consistent with the numbering in the given topology
Definition at line 34 of file CaloSubdetectorTopology.h.
References topoVersion().
Referenced by HcalCondObjectContainerBase::setTopo().
|
inlinevirtual |
return a linear packed id
Reimplemented in HGCalTBTopology, HGCalTopology, and HcalTopology.
Definition at line 26 of file CaloSubdetectorTopology.h.
Get the neighbors of the given cell in down direction (inward)
Implemented in HcalTopology, EcalBarrelTopology, EcalEndcapTopology, EcalPreshowerTopology, HGCalTBTopology, HGCalTopology, EcalBarrelHardcodedTopology, EcalEndcapHardcodedTopology, CastorTopology, ZdcTopology, and CaloTowerTopology.
Referenced by CaloTopology::down(), and goDown().
Get the neighbors of the given cell in east direction
Implemented in HcalTopology, EcalBarrelTopology, EcalEndcapTopology, CastorTopology, HGCalTBTopology, HGCalTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, EcalEndcapHardcodedTopology, ZdcTopology, and CaloTowerTopology.
Referenced by CaloTopology::east(), getNeighbours(), and goEast().
|
inlinevirtual |
Get all the neighbors of the given cell
Definition at line 105 of file CaloSubdetectorTopology.h.
References getWindow().
Referenced by CaloTopology::getAllNeighbours().
|
inlineprotected |
Definition at line 120 of file CaloSubdetectorTopology.h.
References DeadROC_duringRun::dir, EAST, Exception, NORTH, SOUTH, and WEST.
Referenced by getWindow().
|
inlinevirtual |
Get the neighbors of the given cell given direction
Definition at line 77 of file CaloSubdetectorTopology.h.
References DeadROC_duringRun::dir, EAST, east(), Exception, NONE, NORTH, north(), SOUTH, south(), WEST, and west().
Referenced by CaloTopology::getNeighbours(), getWindow(), CaloGeometryHelper::simplemove(), spr::simpleMove(), and PFECALHashNavigator::stdsimplemove().
|
virtual |
Get the neighbors of the given cell in a window of given size
Definition at line 4 of file CaloSubdetectorTopology.cc.
References cms::cuda::assert(), EAST, Exception, getNeighbourIndex(), getNeighbours(), NORTH, SOUTH, class-composition::visited, and WEST.
Referenced by DQMSourcePi0::analyze(), ElectronCalibrationUniv::analyze(), CaloGeometryHelper::buildNeighbourArray(), HLTEcalResonanceFilter::calcShowerShape(), HLTRegionalEcalResonanceFilter::calcShowerShape(), PFECALHashNavigator::ecalNeighbArray(), HLTEcalResonanceFilter::filter(), HLTRegionalEcalResonanceFilter::filter(), getAllNeighbours(), CaloTopology::getWindow(), ReducedEGProducer::linkCaloClusters(), PiZeroAnalyzer::makePizero(), InterestingEcalDetIdProducer::produce(), InterestingTrackEcalDetIdProducer::produce(), pat::PATPhotonProducer::produce(), InterestingDetIdFromSuperClusterProducer::produce(), InterestingDetIdCollectionProducer::produce(), pat::PATElectronProducer::produce(), and ecaldqm::PiZeroTask::runOnEBRecHits().
Reimplemented in EcalPreshowerTopology.
Definition at line 71 of file CaloSubdetectorTopology.h.
References down().
Reimplemented in EcalBarrelTopology, EcalEndcapTopology, HGCalTBTopology, HGCalTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, and EcalEndcapHardcodedTopology.
Definition at line 51 of file CaloSubdetectorTopology.h.
References east().
Referenced by offsetBy().
Reimplemented in EcalBarrelTopology, EcalEndcapTopology, HGCalTBTopology, HGCalTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, and EcalEndcapHardcodedTopology.
Definition at line 59 of file CaloSubdetectorTopology.h.
References north().
Referenced by offsetBy().
Reimplemented in EcalBarrelTopology, EcalEndcapTopology, HGCalTBTopology, HGCalTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, and EcalEndcapHardcodedTopology.
Definition at line 63 of file CaloSubdetectorTopology.h.
References south().
Referenced by offsetBy().
Reimplemented in EcalPreshowerTopology.
Definition at line 67 of file CaloSubdetectorTopology.h.
References up().
Reimplemented in EcalBarrelTopology, EcalEndcapTopology, HGCalTBTopology, HGCalTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, and EcalEndcapHardcodedTopology.
Definition at line 55 of file CaloSubdetectorTopology.h.
References west().
Referenced by offsetBy().
|
inlinevirtual |
return a count of valid cells (for dense indexing use)
Reimplemented in HcalTopology.
Definition at line 30 of file CaloSubdetectorTopology.h.
Referenced by ZdcTopology::ncells(), and CastorTopology::ncells().
Get the neighbors of the given cell in north direction
Implemented in HcalTopology, CastorTopology, ZdcTopology, EcalBarrelTopology, EcalEndcapTopology, CaloTowerTopology, HGCalTBTopology, HGCalTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, and EcalEndcapHardcodedTopology.
Referenced by getNeighbours(), goNorth(), and CaloTopology::north().
Get the neighbors of the given cell in south direction
Implemented in HcalTopology, CastorTopology, ZdcTopology, EcalBarrelTopology, EcalEndcapTopology, HGCalTBTopology, HGCalTopology, EcalPreshowerTopology, CaloTowerTopology, EcalBarrelHardcodedTopology, and EcalEndcapHardcodedTopology.
Referenced by getNeighbours(), goSouth(), and CaloTopology::south().
|
inlinevirtual |
return a version which identifies the given topology
Reimplemented in HcalTopology.
Definition at line 32 of file CaloSubdetectorTopology.h.
Referenced by denseIdConsistent().
Get the neighbors of the given cell in up direction (outward)
Implemented in HcalTopology, EcalBarrelTopology, EcalEndcapTopology, EcalPreshowerTopology, HGCalTBTopology, HGCalTopology, EcalBarrelHardcodedTopology, EcalEndcapHardcodedTopology, CastorTopology, ZdcTopology, and CaloTowerTopology.
Referenced by goUp(), and CaloTopology::up().
|
inlinevirtual |
is this detid present in the Topology?
Reimplemented in HGCalTBTopology, HGCalTopology, HcalTopology, and CaloTowerTopology.
Definition at line 24 of file CaloSubdetectorTopology.h.
Get the neighbors of the given cell in west direction
Implemented in HcalTopology, EcalBarrelTopology, EcalEndcapTopology, HGCalTBTopology, HGCalTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, EcalEndcapHardcodedTopology, CastorTopology, ZdcTopology, and CaloTowerTopology.
Referenced by getNeighbours(), goWest(), and CaloTopology::west().