#include <CaloTopology.h>
Public Types | |
typedef std::map< int, std::unique_ptr< const CaloSubdetectorTopology > > | TopMap |
Public Member Functions | |
CaloTopology () | |
std::vector< DetId > | down (const DetId &id) const |
Get the neighbors of the given cell in down direction (inward) More... | |
std::vector< DetId > | east (const DetId &id) const |
Get the neighbors of the given cell in east direction. More... | |
std::vector< DetId > | getAllNeighbours (const DetId &id) const |
Get all the neighbors of the given cell. More... | |
std::vector< DetId > | getNeighbours (const DetId &id, const CaloDirection &dir) const |
Get the neighbors of the given cell given direction. More... | |
const CaloSubdetectorTopology * | getSubdetectorTopology (const DetId &id) const |
access the subdetector Topology for the given subdetector directly More... | |
const CaloSubdetectorTopology * | getSubdetectorTopology (DetId::Detector det, int subdet) const |
access the subdetector Topology for the given subdetector directly More... | |
std::vector< DetId > | getWindow (const DetId &id, const int &northSouthSize, const int &eastWestSize) const |
Get the neighbors of the given cell in a window of given size. More... | |
std::vector< DetId > | north (const DetId &id) const |
Get the neighbors of the given cell in north direction. More... | |
void | setSubdetTopology (DetId::Detector det, int subdet, std::unique_ptr< const CaloSubdetectorTopology > geom) |
Register a subdetector Topology. More... | |
std::vector< DetId > | south (const DetId &id) const |
Get the neighbors of the given cell in south direction. More... | |
std::vector< DetId > | up (const DetId &id) const |
Get the neighbors of the given cell in up direction (outward) More... | |
bool | valid (const DetId &id) const |
Is this a valid cell id? More... | |
std::vector< DetId > | west (const DetId &id) const |
Get the neighbors of the given cell in west direction. More... | |
~CaloTopology () | |
Private Member Functions | |
int | makeIndex (DetId::Detector det, int subdet) const |
Private Attributes | |
TopMap | theTopologies_ |
Definition at line 19 of file CaloTopology.h.
typedef std::map<int, std::unique_ptr<const CaloSubdetectorTopology> > CaloTopology::TopMap |
Definition at line 21 of file CaloTopology.h.
CaloTopology::CaloTopology | ( | ) |
Definition at line 4 of file CaloTopology.cc.
|
default |
Get the neighbors of the given cell in down direction (inward)
Definition at line 54 of file CaloTopology.cc.
References down(), emptyDetIdVector, getSubdetectorTopology(), and ecaldqm::topology().
Referenced by down().
Get the neighbors of the given cell in east direction.
Definition at line 29 of file CaloTopology.cc.
References east(), emptyDetIdVector, getSubdetectorTopology(), and ecaldqm::topology().
Referenced by east(), and spr::newHCALIdEW().
Get all the neighbors of the given cell.
Definition at line 69 of file CaloTopology.cc.
References emptyDetIdVector, getAllNeighbours(), getSubdetectorTopology(), and ecaldqm::topology().
Referenced by getAllNeighbours().
std::vector< DetId > CaloTopology::getNeighbours | ( | const DetId & | id, |
const CaloDirection & | dir | ||
) | const |
Get the neighbors of the given cell given direction.
Definition at line 59 of file CaloTopology.cc.
References DeadROC_duringRun::dir, emptyDetIdVector, getNeighbours(), getSubdetectorTopology(), and ecaldqm::topology().
Referenced by getNeighbours().
const CaloSubdetectorTopology * CaloTopology::getSubdetectorTopology | ( | const DetId & | id | ) | const |
access the subdetector Topology for the given subdetector directly
Definition at line 17 of file CaloTopology.cc.
References mps_fire::i, makeIndex(), and theTopologies_.
Referenced by DQMSourcePi0::analyze(), ElectronCalibrationUniv::analyze(), down(), east(), HLTEcalResonanceFilter::filter(), HLTRegionalEcalResonanceFilter::filter(), getAllNeighbours(), BetaCalculatorECAL::getDetailedTrackLengthInXtals(), getNeighbours(), getWindow(), EcalBoundaryInfoCalculator< EBDetId >::initializeEcalNavigator(), ReducedEGProducer::linkCaloClusters(), PiZeroAnalyzer::makePizero(), spr::matrixECALIds(), north(), InterestingEcalDetIdProducer::produce(), InterestingTrackEcalDetIdProducer::produce(), pat::PATElectronProducer::produce(), pat::PATPhotonProducer::produce(), InterestingDetIdCollectionProducer::produce(), InterestingDetIdFromSuperClusterProducer::produce(), HighPtTrackEcalDetIdProducer::produce(), EEBadScFilter::scan5x5(), SingleEleCalibSelector::select(), EcalMipGraphs::selectHits(), EcalDisplaysByEvent::selectHits(), Calorimeter::setupTopology(), south(), up(), valid(), and west().
const CaloSubdetectorTopology * CaloTopology::getSubdetectorTopology | ( | DetId::Detector | det, |
int | subdet | ||
) | const |
access the subdetector Topology for the given subdetector directly
Definition at line 22 of file CaloTopology.cc.
References mps_fire::i, makeIndex(), and theTopologies_.
std::vector< DetId > CaloTopology::getWindow | ( | const DetId & | id, |
const int & | northSouthSize, | ||
const int & | eastWestSize | ||
) | const |
Get the neighbors of the given cell in a window of given size.
Definition at line 64 of file CaloTopology.cc.
References emptyDetIdVector, getSubdetectorTopology(), getWindow(), and ecaldqm::topology().
Referenced by AlCaECALRecHitReducer::AddMiniRecHitCollection(), ElectronCalibrationUniv::analyze(), EcalClusterSeverityLevelAlgo::closestProblematic(), EcalMIPRecHitFilter::filter(), EcalClusterSeverityLevelAlgo::fractionAroundClosestProblematic(), getWindow(), InterestingEcalDetIdProducer::produce(), InterestingTrackEcalDetIdProducer::produce(), InterestingDetIdFromSuperClusterProducer::produce(), InterestingDetIdCollectionProducer::produce(), HighPtTrackEcalDetIdProducer::produce(), and SingleEleCalibSelector::select().
|
private |
Definition at line 8 of file CaloTopology.cc.
Referenced by getSubdetectorTopology(), and setSubdetTopology().
Get the neighbors of the given cell in north direction.
Definition at line 39 of file CaloTopology.cc.
References emptyDetIdVector, getSubdetectorTopology(), north(), and ecaldqm::topology().
Referenced by spr::newHCALIdNS(), and north().
void CaloTopology::setSubdetTopology | ( | DetId::Detector | det, |
int | subdet, | ||
std::unique_ptr< const CaloSubdetectorTopology > | geom | ||
) |
Register a subdetector Topology.
Definition at line 10 of file CaloTopology.cc.
References relativeConstraints::geom, makeIndex(), eostools::move(), and theTopologies_.
Get the neighbors of the given cell in south direction.
Definition at line 44 of file CaloTopology.cc.
References emptyDetIdVector, getSubdetectorTopology(), south(), and ecaldqm::topology().
Referenced by spr::newHCALIdNS(), and south().
Get the neighbors of the given cell in up direction (outward)
Definition at line 49 of file CaloTopology.cc.
References emptyDetIdVector, getSubdetectorTopology(), ecaldqm::topology(), and up().
Referenced by spr::matrixHCALIdsDepth(), and up().
bool CaloTopology::valid | ( | const DetId & | id | ) | const |
Is this a valid cell id?
Definition at line 74 of file CaloTopology.cc.
References relativeConstraints::geom, and getSubdetectorTopology().
Referenced by HcalLutAnalyzer::analyze(), and CaloMiscalibMapHcal::prefillMap().
Get the neighbors of the given cell in west direction.
Definition at line 34 of file CaloTopology.cc.
References emptyDetIdVector, getSubdetectorTopology(), ecaldqm::topology(), and west().
Referenced by spr::newHCALIdEW(), and west().
|
private |
Definition at line 55 of file CaloTopology.h.
Referenced by getSubdetectorTopology(), and setSubdetTopology().