![]() |
![]() |
#include <CaloSubdetectorTopology.h>
Classes | |
struct | CellInfo |
Public Member Functions | |
CaloSubdetectorTopology () | |
standard constructor 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 std::vector< DetId > | north (const DetId &id) const =0 |
virtual std::vector< DetId > | south (const DetId &id) const =0 |
virtual std::vector< DetId > | up (const DetId &id) const =0 |
virtual bool | valid (const DetId &id) 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 |
|
protected |
Definition at line 75 of file CaloSubdetectorTopology.h.
|
inline |
|
inlinevirtual |
Get the neighbors of the given cell in down direction (inward)
Implemented in EcalPreshowerTopology, EcalBarrelTopology, EcalEndcapTopology, EcalBarrelHardcodedTopology, EcalEndcapHardcodedTopology, HcalTopology, CastorTopology, ZdcTopology, and CaloTowerTopology.
Referenced by CaloTopology::down(), and CaloNavigator< EBDetId >::down().
Get the neighbors of the given cell in east direction
Implemented in EcalBarrelTopology, EcalEndcapTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, EcalEndcapHardcodedTopology, CastorTopology, HcalTopology, ZdcTopology, and CaloTowerTopology.
Referenced by CaloTopology::east(), CaloNavigator< EBDetId >::east(), PFRecHitProducerHCAL::findRecHitNeighboursCT(), and getNeighbours().
|
inlinevirtual |
Get all the neighbors of the given cell
Definition at line 69 of file CaloSubdetectorTopology.h.
References getWindow().
Referenced by CaloTopology::getAllNeighbours().
|
inlineprotected |
Definition at line 95 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 39 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(), 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(), HLTPi0RecHitsFilter::filter(), getAllNeighbours(), BetaCalculatorECAL::getDetailedTrackLengthInXtals(), CaloTopology::getWindow(), EgammaHLTNxNClusterProducer::makeNxNClusters(), EcalDeadChannelRecoveryAlgos::MakeNxNMatrice(), PiZeroAnalyzer::makePizero(), InterestingEcalDetIdProducer::produce(), InterestingDetIdCollectionProducer::produce(), InterestingTrackEcalDetIdProducer::produce(), HighPtTrackEcalDetIdProducer::produce(), and SingleEleCalibSelector::select().
Get the neighbors of the given cell in north direction
Implemented in HcalTopology, CastorTopology, ZdcTopology, EcalBarrelTopology, EcalEndcapTopology, EcalPreshowerTopology, CaloTowerTopology, EcalBarrelHardcodedTopology, and EcalEndcapHardcodedTopology.
Referenced by PFRecHitProducerHCAL::findRecHitNeighboursCT(), getNeighbours(), PFRecHitProducerHCAL::getNorth(), CaloTopology::north(), and CaloNavigator< EBDetId >::north().
Get the neighbors of the given cell in south direction
Implemented in HcalTopology, CastorTopology, ZdcTopology, EcalBarrelTopology, EcalEndcapTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, EcalEndcapHardcodedTopology, and CaloTowerTopology.
Referenced by PFRecHitProducerHCAL::findRecHitNeighboursCT(), getNeighbours(), PFRecHitProducerHCAL::getSouth(), CaloTopology::south(), and CaloNavigator< EBDetId >::south().
Get the neighbors of the given cell in up direction (outward)
Implemented in EcalBarrelTopology, EcalEndcapTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, EcalEndcapHardcodedTopology, HcalTopology, CastorTopology, ZdcTopology, and CaloTowerTopology.
Referenced by CaloTopology::up(), and CaloNavigator< EBDetId >::up().
|
inlinevirtual |
is this detid present in the Topology?
Reimplemented in CaloTowerTopology.
Definition at line 25 of file CaloSubdetectorTopology.h.
Referenced by CaloTopology::valid().
Get the neighbors of the given cell in west direction
Implemented in EcalBarrelTopology, EcalEndcapTopology, EcalPreshowerTopology, EcalBarrelHardcodedTopology, EcalEndcapHardcodedTopology, HcalTopology, CastorTopology, ZdcTopology, and CaloTowerTopology.
Referenced by PFRecHitProducerHCAL::findRecHitNeighboursCT(), getNeighbours(), CaloTopology::west(), and CaloNavigator< EBDetId >::west().