#include <CaloGeometry.h>
Public Member Functions | |
CaloGeometry () | |
const CaloCellGeometry * | getGeometry (const DetId &id) const |
Get the cell geometry of a given detector id. More... | |
const GlobalPoint & | getPosition (const DetId &id) const |
Get the position of a given detector id. More... | |
const CaloSubdetectorGeometry * | getSubdetectorGeometry (const DetId &id) const |
access the subdetector geometry for the given subdetector directly More... | |
const CaloSubdetectorGeometry * | getSubdetectorGeometry (DetId::Detector det, int subdet) const |
access the subdetector geometry for the given subdetector directly More... | |
std::vector< DetId > | getValidDetIds () const |
Get the list of all valid detector ids. More... | |
const std::vector< DetId > & | getValidDetIds (DetId::Detector det, int subdet) const |
Get the list of valid detector ids for the given subdetector. More... | |
bool | present (const DetId &id) const |
is this detid present in the geometry? More... | |
void | setSubdetGeometry (DetId::Detector det, int subdet, const CaloSubdetectorGeometry *geom) |
Register a subdetector geometry. More... | |
Private Types | |
enum | { kMaxDet = 5, kMinDet = 3, kNDets = kMaxDet - kMinDet + 1, kMaxSub = 6, kLength = kNDets*kMaxSub } |
Private Member Functions | |
unsigned int | makeIndex (DetId::Detector det, int subdet, bool &ok) const |
Private Attributes | |
std::vector< const CaloSubdetectorGeometry * > | m_geos |
Static Private Attributes | |
static const std::vector< DetId > | k_emptyVec |
Interface class to the geometry information for all calorimetry subdetectors.
Definition at line 22 of file CaloGeometry.h.
|
private |
Enumerator | |
---|---|
kMaxDet | |
kMinDet | |
kNDets | |
kMaxSub | |
kLength |
Definition at line 68 of file CaloGeometry.h.
CaloGeometry::CaloGeometry | ( | ) |
Definition at line 7 of file CaloGeometry.cc.
const CaloCellGeometry * CaloGeometry::getGeometry | ( | const DetId & | id | ) | const |
Get the cell geometry of a given detector id.
Definition at line 76 of file CaloGeometry.cc.
References relativeConstraints::geom, CaloSubdetectorGeometry::getGeometry(), and getSubdetectorGeometry().
Referenced by EcalSimple2007H4TBAnalyzer::analyze(), CaloTowersCreationAlgo::assignHitEcal(), HFClusterAlgo::clusterize(), CaloTowersCreationAlgo::emCrystalShwrPos(), GlobalHitsAnalyzer::fillECal(), GlobalHitsProdHist::fillECal(), GlobalHitsProducer::fillECal(), GlobalHitsProdHist::fillHCal(), GlobalHitsAnalyzer::fillHCal(), GlobalHitsProducer::fillHCal(), ParticleTowerProducer::getNearestTower(), CaloTowersCreationAlgo::hadShwPosFromCells(), ParticleTowerProducer::produce(), and ParticleTowerProducer::resetTowers().
const GlobalPoint & CaloGeometry::getPosition | ( | const DetId & | id | ) | const |
Get the position of a given detector id.
Definition at line 68 of file CaloGeometry.cc.
References relativeConstraints::geom, CaloSubdetectorGeometry::getGeometry(), CaloCellGeometry::getPosition(), getSubdetectorGeometry(), and notFound.
Referenced by PileUpSubtractor::calculateOrphanInput(), HFClusterAlgo::clusterize(), egammaisolation::EgammaRecHitExtractor::collect(), egammaisolation::EgammaHcalExtractor::deposit(), ecalEnergyInCone(), EcalRecHitWorkerRecover::estimateEnergy(), ecaldqm::eta(), reco::HcalNoiseInfoProducer::fillrechits(), filterCellsInCone(), spr::findCone(), PileUpSubtractor::getCone(), ParametrizedSubtractor::getEt(), ParametrizedSubtractor::getEta(), spr::getGpos(), EgammaHLTHcalIsolationDoubleCone::isolPtSum(), PFRecoTauDiscriminationAgainstElectronDeadECAL::loopXtals(), HFClusterAlgo::makeCluster(), spr::matrixECALIds(), spr::matrixHCALIds(), IsolatedEcalPixelTrackCandidateProducer::produce(), EcalIsolatedParticleCandidateProducer::produce(), EcalRecHitWorkerRecover::run(), and spr::timeOfFlight().
const CaloSubdetectorGeometry * CaloGeometry::getSubdetectorGeometry | ( | const DetId & | id | ) | const |
access the subdetector geometry for the given subdetector directly
Definition at line 43 of file CaloGeometry.cc.
References cmsHarvester::index, m_geos, makeIndex(), and convertSQLiteXML::ok.
Referenced by IsolatedTracksCone::analyze(), CaloTowerConstituentsMapBuilder::assignEEtoHE(), EcalHaloAlgo::Calculate(), spr::chargeIsolationEcal(), EcalClusterPUCleaningTools::CleanedSuperCluster(), EcalClusterToolsT< noZS >::covariances(), egammaisolation::EgammaRecHitExtractor::deposit(), InvRingCalib::EERingDef(), EgammaRecHitIsolation::EgammaRecHitIsolation(), HCALRecHitAnalyzer::FillGeometry(), AlCaHOCalibProducer::fillHOStore(), spr::findDetIdECAL(), spr::findDetIdHCAL(), BetaCalculatorECAL::getDetailedTrackLengthInXtals(), HCaloDetIdAssociator::getDetIdPoints(), CaloDetIdAssociator::getDetIdPoints(), EcalClusterToolsT< noZS >::getEnergyDepTopology(), EcalClusterLazyToolsBase::getESHits(), getGeometry(), EcalClusterLazyToolsBase::getGeometry(), HoECalculator::getHoE(), getPosition(), HCaloDetIdAssociator::getPosition(), CaloDetIdAssociator::getPosition(), PhotonFixCMS::initialise(), CaloDetIdAssociator::insideElement(), HCaloDetIdAssociator::insideElement(), EcalClusterLocal::localCoordsEB(), EcalClusterLocal::localCoordsEE(), spr::matrixECALIds(), EcalClusterToolsT< noZS >::meanClusterPosition(), PhysicsTowerOrganizer::PhysicsTowerOrganizer(), present(), EgammaHLTHybridClusterProducer::produce(), HybridClusterProducer::produce(), HLTRechitInRegionsProducer< T1 >::produce(), spr::propagateCALO(), spr::propagateCosmicCALO(), spr::propagateHCALBack(), CaloDualConeSelector< HBHERecHit >::selectCallback(), CaloConeSelector< T >::selectCallback(), CaloTowersCreationAlgo::setGeometry(), EcalGeomPhiSymHelper::setup(), Calorimeter::setupGeometry(), CaloHitResponse::timeOfFlight(), and EcalDigiProducer::updateGeometry().
const CaloSubdetectorGeometry * CaloGeometry::getSubdetectorGeometry | ( | DetId::Detector | det, |
int | subdet | ||
) | const |
access the subdetector geometry for the given subdetector directly
Definition at line 54 of file CaloGeometry.cc.
References cmsHarvester::index, m_geos, makeIndex(), and convertSQLiteXML::ok.
std::vector< DetId > CaloGeometry::getValidDetIds | ( | ) | const |
Get the list of all valid detector ids.
Definition at line 90 of file CaloGeometry.cc.
References DetId::Hcal, i, kLength, m_geos, and funct::true.
Referenced by cms::HcalConstantsASCIIWriter::analyze(), EcalMixingModuleValidation::computeSDBunchDigi(), InvRingCalib::duringLoop(), EcalEleCalibLooper::duringLoop(), Pi0FixedMassWindowCalibration::duringLoop(), HEcalDetIdAssociator::getASetOfValidDetIds(), HHcalDetIdAssociator::getASetOfValidDetIds(), HCaloDetIdAssociator::getASetOfValidDetIds(), ParticleTowerProducer::getNearestTower(), PreshowerDetIdAssociator::getValidDetIds(), HODetIdAssociator::getValidDetIds(), HcalDetIdAssociator::getValidDetIds(), EcalDetIdAssociator::getValidDetIds(), getValidDetIds(), CaloDetIdAssociator::getValidDetIds(), ParticleTowerProducer::resetTowers(), EcalGeomPhiSymHelper::setup(), ParametrizedSubtractor::setupGeometryMap(), PileUpSubtractor::setupGeometryMap(), HcalTBDigiProducer::updateGeometry(), and HcalDigitizer::updateGeometry().
const std::vector< DetId > & CaloGeometry::getValidDetIds | ( | DetId::Detector | det, |
int | subdet | ||
) | const |
Get the list of valid detector ids for the given subdetector.
Definition at line 115 of file CaloGeometry.cc.
References getValidDetIds(), cmsHarvester::index, k_emptyVec, m_geos, makeIndex(), and convertSQLiteXML::ok.
|
private |
Definition at line 13 of file CaloGeometry.cc.
References kMaxDet, kMaxSub, and kMinDet.
Referenced by getSubdetectorGeometry(), getValidDetIds(), and setSubdetGeometry().
bool CaloGeometry::present | ( | const DetId & | id | ) | const |
is this detid present in the geometry?
Definition at line 84 of file CaloGeometry.cc.
References relativeConstraints::geom, getSubdetectorGeometry(), and CaloSubdetectorGeometry::present().
void CaloGeometry::setSubdetGeometry | ( | DetId::Detector | det, |
int | subdet, | ||
const CaloSubdetectorGeometry * | geom | ||
) |
Register a subdetector geometry.
Definition at line 28 of file CaloGeometry.cc.
References assert(), relativeConstraints::geom, cmsHarvester::index, m_geos, makeIndex(), and convertSQLiteXML::ok.
|
staticprivate |
Definition at line 60 of file CaloGeometry.h.
Referenced by getValidDetIds().
|
private |
Definition at line 62 of file CaloGeometry.h.
Referenced by getSubdetectorGeometry(), getValidDetIds(), and setSubdetGeometry().