#include <CaloGeometry.h>
Public Member Functions | |
CaloGeometry () | |
std::shared_ptr< const CaloCellGeometry > | getGeometry (const DetId &id) const |
Get the cell geometry of a given detector id. More... | |
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 = 10, kMinDet = 3, kNDets = kMaxDet - kMinDet + 1, kMaxSub = 6, kNSubDets = kMaxSub + 1, kLength = kNDets * kNSubDets } |
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 21 of file CaloGeometry.h.
|
private |
CaloGeometry::CaloGeometry | ( | ) |
Definition at line 9 of file CaloGeometry.cc.
std::shared_ptr< const CaloCellGeometry > CaloGeometry::getGeometry | ( | const DetId & | id | ) | const |
Get the cell geometry of a given detector id.
Definition at line 60 of file CaloGeometry.cc.
References relativeConstraints::geom, and getSubdetectorGeometry().
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), FWTGeoRecoGeometryESProducer::addCaloTowerGeometry(), FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryBarrel(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryEndcap(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryForward(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryOuter(), EcalSimple2007H4TBAnalyzer::analyze(), EcalSimHitStudy::analyzeHits(), CaloTowersCreationAlgo::assignHitEcal(), EcalDetailedTimeRecHitProducer::deltaTimeOfFlight(), CaloTowersCreationAlgo::emCrystalShwrPos(), EgammaRecHitIsolation::getSum_(), and CaloTowersCreationAlgo::hadShwPosFromCells().
GlobalPoint CaloGeometry::getPosition | ( | const DetId & | id | ) | const |
Get the position of a given detector id.
Definition at line 50 of file CaloGeometry.cc.
References relativeConstraints::geom, getSubdetectorGeometry(), and notFound.
Referenced by cms::ProducerAnalyzer::analyze(), ValidIsoTrkCalib::analyze(), EopTreeWriter::analyze(), CaloSimHitAnalysis::analyzeHits(), MultipleAlgoIterator::calculateOrphanInput(), egammaisolation::EgammaRecHitExtractor::collect(), muonisolation::CaloExtractor::deposit(), egammaisolation::EgammaHcalExtractor::deposit(), muonisolation::CaloExtractorByAssociator::deposits(), ecalEnergyInCone(), EcalRecHitWorkerRecover::estimateEnergy(), HcalIsoTrkAnalyzer::eThreshold(), reco::HcalNoiseInfoProducer::fillrechits(), muonisolation::CaloExtractor::fillVetos(), EcalBadCalibFilter::filter(), HFNoisyHitsFilter::filter(), AlCaIsoTracksFilter::filter(), filterCellsInCone(), spr::findCone(), MultipleAlgoIterator::getEt(), ParametrizedSubtractor::getEt(), MultipleAlgoIterator::getEta(), ParametrizedSubtractor::getEta(), spr::getGpos(), EgammaHcalIsolation::getHcalSum(), HCaloDetIdAssociator::getPosition(), HcalHaloAlgo::getPosition(), EcalHaloAlgo::getPosition(), CSCHaloAlgo::getPosition(), spr::matrixECALIds(), EcalIsolatedParticleCandidateProducer::produce(), IsolatedEcalPixelTrackCandidateProducer::produce(), EgammaIsoDetIdCollectionProducer< T1 >::produce(), reco::CentralityProducer::produce(), EcalRecHitWorkerRecover::run(), HiPuRhoProducer::setupGeometryMap(), and spr::timeOfFlight().
const CaloSubdetectorGeometry * CaloGeometry::getSubdetectorGeometry | ( | const DetId & | id | ) | const |
access the subdetector geometry for the given subdetector directly
Definition at line 34 of file CaloGeometry.cc.
References m_geos, makeIndex(), and convertSQLiteXML::ok.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), DQMSourcePi0::analyze(), HcalTestSimHitID::analyze(), cms::ProducerAnalyzer::analyze(), HcalSimHitAnalysis::analyze(), HcalSimHitsValidation::analyze(), PhiSymmetryCalibration::analyze(), CaloSimHitAnalysis::analyze(), HcalRecHitsValidation::analyze(), ValidIsoTrkCalib::analyze(), IsolatedTracksCone::analyze(), PFRecHitQTestECALMultiThreshold::beginEvent(), ReducedESRecHitCollectionProducer::beginRun(), IsolatedPixelTrackCandidateProducer::beginRun(), PFCandidateRecalibrator::beginRun(), IsolatedPixelTrackCandidateL1TProducer::beginRun(), HcalHBHEMuonAnalyzer::beginRun(), HcalHBHEMuonHighEtaAnalyzer::beginRun(), HGCalTriggerGeometryBase::bhGeometry(), PhotonEnergyCorrector::calculate(), HcalHaloAlgo::Calculate(), EcalHaloAlgo::Calculate(), CSCHaloAlgo::Calculate(), spr::chargeIsolationEcal(), EcalClusterPUCleaningTools::CleanedSuperCluster(), Multi5x5ClusterProducer::clusterizeECALPart(), IslandClusterProducer::clusterizeECALPart(), CosmicClusterProducer::clusterizeECALPart(), egammaisolation::EgammaRecHitExtractor::deposit(), HcalDigisValidation::dqmBeginRun(), HcalRecHitsAnalyzer::dqmBeginRun(), HGCalHitValidation::dqmBeginRun(), TrackDetMatchInfo::dumpGeometry(), Pi0FixedMassWindowCalibration::duringLoop(), EcalBarrelTopology::EcalBarrelTopology(), EcalClusterLazyToolsBase::EcalClusterLazyToolsBase(), EcalEndcapTopology::EcalEndcapTopology(), HGCalTriggerGeometryBase::eeGeometry(), EgammaRecHitIsolation::EgammaRecHitIsolation(), cms::MinBias::endJob(), HGCalTriggerGeometryBase::fhGeometry(), GlobalHitsAnalyzer::fillECal(), GlobalHitsProdHist::fillECal(), GlobalHitsProducer::fillECal(), HCALRecHitAnalyzer::FillGeometry(), ECALRecHitAnalyzer::FillGeometry(), GlobalHitsAnalyzer::fillHCal(), GlobalHitsProdHist::fillHCal(), GlobalHitsProducer::fillHCal(), GlobalRecHitsAnalyzer::fillHCal(), GlobalRecHitsProducer::fillHCal(), PhotonProducer::fillPhotonCollection(), HcalRecHitsValidation::fillRecHitsTmp(), filterCellsInCone(), spr::findCone(), spr::findDetIdECAL(), spr::findDetIdHCAL(), CaloDetIdAssociator::getDetIdPoints(), HCaloDetIdAssociator::getDetIdPoints(), getGeometry(), spr::getGpos(), hgcal::RecHitTools::getLayer(), getPosition(), CaloDetIdAssociator::getPosition(), HCaloDetIdAssociator::getPosition(), TrackDetMatchInfo::getPosition(), hgcal::RecHitTools::getPositionLayer(), hgcal::RecHitTools::getSubdetectorGeometry(), EcalClusterCrackCorrection::getValue(), PFHBHERecHitCreator::importRecHits(), PFHcalRecHitCreator< Digi, Geometry, Layer, Detector >::importRecHits(), PFPSRecHitCreator::importRecHits(), PFHFRecHitCreator::importRecHits(), PFEcalBarrelRecHitCreator::importRecHits(), PFEcalEndcapRecHitCreator::importRecHits(), PFECALHashNavigator::init(), PFBadHcalPseudoClusterProducer::init(), CaloDetIdAssociator::insideElement(), HCaloDetIdAssociator::insideElement(), egammaTools::localEcalClusterCoordsEB(), egammaTools::localEcalClusterCoordsEE(), HLTCaloObjInRegionsProducer< CaloObjType, CaloObjCollType >::makeFilteredColl(), PiZeroAnalyzer::makePizero(), ticl::SeedingRegionByHF::makeRegions(), spr::matrixECALIds(), spr::matrixHCALIds(), HGCalTriggerGeometryBase::noseGeometry(), PhysicsTowerOrganizer::PhysicsTowerOrganizer(), present(), PreshowerClusterShapeProducer::produce(), PreshowerPhiClusterProducer::produce(), PreshowerClusterProducer::produce(), PFCandidateRecalibrator::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), AlCaHOCalibProducer::produce(), L1EGCrystalClusterEmulatorProducer::produce(), spr::propagateCALO(), spr::propagateCosmicCALO(), spr::propagateHCAL(), spr::propagateHCALBack(), spr::propagateIdECAL(), CaloDualConeSelector< HBHERecHit >::selectCallback(), CaloConeSelector< T >::selectCallback(), hgcal::RecHitTools::setGeometry(), CaloTowersCreationAlgo::setGeometry(), Calorimeter::setupGeometry(), spr::timeOfFlight(), CaloHitResponse::timeOfFlight(), EcalTimeDigiProducer::updateGeometry(), EcalDigiProducer_Ph2::updateGeometry(), EcalDigiProducer::updateGeometry(), and ValidateGeometry::validateCaloGeometry().
const CaloSubdetectorGeometry * CaloGeometry::getSubdetectorGeometry | ( | DetId::Detector | det, |
int | subdet | ||
) | const |
access the subdetector geometry for the given subdetector directly
Definition at line 41 of file CaloGeometry.cc.
References m_geos, makeIndex(), and convertSQLiteXML::ok.
std::vector< DetId > CaloGeometry::getValidDetIds | ( | ) | const |
Get the list of all valid detector ids.
Definition at line 75 of file CaloGeometry.cc.
References DetId::Hcal, mps_fire::i, kLength, and m_geos.
Referenced by FWRecoGeometryESProducer::addCaloGeometry(), FWTGeoRecoGeometryESProducer::addCaloTowerGeometry(), FWTGeoRecoGeometryESProducer::addEcalCaloGeometry(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryBarrel(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryEndcap(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryForward(), FWTGeoRecoGeometryESProducer::addHcalCaloGeometryOuter(), cms::MinBias::beginRun(), EcalDccWeightBuilder::computeAllWeights(), EcalMixingModuleValidation::computeSDBunchDigi(), HEcalDetIdAssociator::getASetOfValidDetIds(), HHcalDetIdAssociator::getASetOfValidDetIds(), HCaloDetIdAssociator::getASetOfValidDetIds(), HODetIdAssociator::getValidDetIds(), PreshowerDetIdAssociator::getValidDetIds(), EcalDetIdAssociator::getValidDetIds(), HcalDetIdAssociator::getValidDetIds(), getValidDetIds(), CaloDetIdAssociator::getValidDetIds(), PFHCALDenseIdNavigator< HcalDetId, HcalTopology, false >::init(), EcalTBDigiProducer::initializeEvent(), PhiSymmetryCalibration_step2::setUp(), PhiSymmetryCalibration_step2_SM::setUp(), ParametrizedSubtractor::setupGeometryMap(), PileUpSubtractor::setupGeometryMap(), HiPuRhoProducer::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 97 of file CaloGeometry.cc.
References getValidDetIds(), k_emptyVec, m_geos, makeIndex(), and convertSQLiteXML::ok.
|
private |
Definition at line 11 of file CaloGeometry.cc.
References kMaxDet, kMaxSub, kMinDet, kNSubDets, and convertSQLiteXML::ok.
Referenced by getSubdetectorGeometry(), getValidDetIds(), and setSubdetGeometry().
bool CaloGeometry::present | ( | const DetId & | id | ) | const |
is this detid present in the geometry?
Definition at line 70 of file CaloGeometry.cc.
References relativeConstraints::geom, and getSubdetectorGeometry().
void CaloGeometry::setSubdetGeometry | ( | DetId::Detector | det, |
int | subdet, | ||
const CaloSubdetectorGeometry * | geom | ||
) |
Register a subdetector geometry.
Definition at line 22 of file CaloGeometry.cc.
References cms::cuda::assert(), relativeConstraints::geom, createfilelist::int, m_geos, makeIndex(), and convertSQLiteXML::ok.
|
staticprivate |
Definition at line 53 of file CaloGeometry.h.
Referenced by getValidDetIds().
|
private |
Definition at line 55 of file CaloGeometry.h.
Referenced by getSubdetectorGeometry(), getValidDetIds(), and setSubdetGeometry().