#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 20 of file CaloSubdetectorTopology.h.
|
protected |
Definition at line 117 of file CaloSubdetectorTopology.h.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
return a linear packed id
Reimplemented in HcalTopology.
Definition at line 31 of file CaloSubdetectorTopology.h.
|
inlinevirtual |
return whether this topology is consistent with the numbering in the given topology
Definition at line 37 of file CaloSubdetectorTopology.h.
References topoVersion().
Referenced by HcalCondObjectContainerBase::setTopo().
|
inlinevirtual |
return a linear packed id
Reimplemented in HcalTopology.
Definition at line 29 of file CaloSubdetectorTopology.h.
Get the neighbors of the given cell in down direction (inward)
Implemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, HcalTopology, CastorTopology, ZdcTopology, and GCC11_FINAL< T, TOPO >.
Referenced by CaloTopology::down(), and goDown().
Get the neighbors of the given cell in east direction
Implemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, HcalTopology, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, CastorTopology, ZdcTopology, and GCC11_FINAL< T, TOPO >.
Referenced by CaloTopology::east(), PFHCALDualTimeRecHitProducer::findRecHitNeighboursCT(), PFRecHitProducerHCAL::findRecHitNeighboursCT(), getNeighbours(), and goEast().
|
inlinevirtual |
Get all the neighbors of the given cell
Definition at line 111 of file CaloSubdetectorTopology.h.
References getWindow().
Referenced by CaloTopology::getAllNeighbours().
|
inlineprotected |
Definition at line 137 of file CaloSubdetectorTopology.h.
References EAST, edm::hlt::Exception, NORTH, SOUTH, and WEST.
Referenced by getWindow().
|
inlinevirtual |
Get the neighbors of the given cell given direction
Definition at line 81 of file CaloSubdetectorTopology.h.
References EAST, east(), edm::hlt::Exception, NONE, NORTH, north(), SOUTH, south(), WEST, and west().
Referenced by CaloTopology::getNeighbours(), getWindow(), spr::simpleMove(), CaloGeometryHelper::simplemove(), PFRecHitProducerHO::stdsimplemove(), and PFRecHitProducerECAL::stdsimplemove().
|
virtual |
Get the neighbors of the given cell in a window of given size
Definition at line 4 of file CaloSubdetectorTopology.cc.
References EAST, edm::hlt::Exception, getNeighbourIndex(), getNeighbours(), i, NORTH, SOUTH, and WEST.
Referenced by HLTAlCaMonPi0::analyze(), DQMSourcePi0::analyze(), HLTAlCa::analyze(), CaloGeometryHelper::buildNeighbourArray(), HLTEcalResonanceFilter::calcShowerShape(), PFRecHitProducerECAL::ecalNeighbArray(), HLTEcalResonanceFilter::filter(), getAllNeighbours(), BetaCalculatorECAL::getDetailedTrackLengthInXtals(), CaloTopology::getWindow(), PFRecHitProducerHO::hoNeighbArray(), EgammaHLTNxNClusterProducer::makeNxNClusters(), EcalDeadChannelRecoveryAlgos::MakeNxNMatrice(), PiZeroAnalyzer::makePizero(), InterestingEcalDetIdProducer::produce(), InterestingDetIdCollectionProducer::produce(), InterestingDetIdFromSuperClusterProducer::produce(), ReducedEGProducer::produce(), InterestingTrackEcalDetIdProducer::produce(), pat::PATPhotonProducer::produce(), pat::PATElectronProducer::produce(), HighPtTrackEcalDetIdProducer::produce(), and SingleEleCalibSelector::select().
Reimplemented in GCC11_FINAL< T, TOPO >.
Definition at line 74 of file CaloSubdetectorTopology.h.
References down().
Referenced by GCC11_FINAL< T, TOPO >::down().
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 54 of file CaloSubdetectorTopology.h.
References east().
Referenced by GCC11_FINAL< T, TOPO >::east().
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 62 of file CaloSubdetectorTopology.h.
References north().
Referenced by GCC11_FINAL< T, TOPO >::north().
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 66 of file CaloSubdetectorTopology.h.
References south().
Referenced by GCC11_FINAL< T, TOPO >::south().
Reimplemented in GCC11_FINAL< T, TOPO >.
Definition at line 70 of file CaloSubdetectorTopology.h.
References up().
Referenced by GCC11_FINAL< T, TOPO >::up().
Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Definition at line 58 of file CaloSubdetectorTopology.h.
References west().
Referenced by GCC11_FINAL< T, TOPO >::west().
|
inlinevirtual |
return a count of valid cells (for dense indexing use)
Reimplemented in HcalTopology.
Definition at line 33 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, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Referenced by PFHCALDualTimeRecHitProducer::findRecHitNeighboursCT(), PFRecHitProducerHCAL::findRecHitNeighboursCT(), getNeighbours(), PFHCALDualTimeRecHitProducer::getNorth(), PFRecHitProducerHCAL::getNorth(), goNorth(), and CaloTopology::north().
Get the neighbors of the given cell in south direction
Implemented in HcalTopology, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, CastorTopology, ZdcTopology, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.
Referenced by PFHCALDualTimeRecHitProducer::findRecHitNeighboursCT(), PFRecHitProducerHCAL::findRecHitNeighboursCT(), getNeighbours(), PFHCALDualTimeRecHitProducer::getSouth(), PFRecHitProducerHCAL::getSouth(), goSouth(), and CaloTopology::south().
|
inlinevirtual |
return a version which identifies the given topology
Reimplemented in HcalTopology.
Definition at line 35 of file CaloSubdetectorTopology.h.
Referenced by denseIdConsistent().
Get the neighbors of the given cell in up direction (outward)
Implemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, HcalTopology, CastorTopology, ZdcTopology, and GCC11_FINAL< T, TOPO >.
Referenced by goUp(), and CaloTopology::up().
|
inlinevirtual |
is this detid present in the Topology?
Reimplemented in HcalTopology, and GCC11_FINAL< T, TOPO >.
Definition at line 27 of file CaloSubdetectorTopology.h.
Referenced by CaloTopology::valid().
Get the neighbors of the given cell in west direction
Implemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, HcalTopology, CastorTopology, ZdcTopology, and GCC11_FINAL< T, TOPO >.
Referenced by PFHCALDualTimeRecHitProducer::findRecHitNeighboursCT(), PFRecHitProducerHCAL::findRecHitNeighboursCT(), getNeighbours(), goWest(), and CaloTopology::west().