#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 = 4, 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 23 of file CaloGeometry.h.
|
private |
Enumerator | |
---|---|
kMaxDet | |
kMinDet | |
kNDets | |
kMaxSub | |
kLength |
Definition at line 69 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::assignHit(), HFClusterAlgo::clusterize(), CaloTowersCreationAlgo::emCrystalShwrPos(), GlobalHitsAnalyzer::fillECal(), GlobalHitsProdHist::fillECal(), GlobalHitsProducer::fillECal(), GlobalHitsAnalyzer::fillHCal(), GlobalHitsProdHist::fillHCal(), GlobalHitsProducer::fillHCal(), ParticleTowerProducer::getNearestTower(), CaloTowersCreationAlgo::hadSegmentShwrPos(), 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 HcalCorrPFCalculation::analyze(), PileUpSubtractor::calculateOrphanInput(), HFClusterAlgo::clusterize(), egammaisolation::EgammaRecHitExtractor::collect(), egammaisolation::EgammaHcalExtractor::deposit(), ecalEnergyInCone(), EcalRecHitWorkerRecover::estimateEnergy(), Numbers::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(), Numbers::phi(), EcalIsolatedParticleCandidateProducer::produce(), cms::AlCaDiJetsProducer::produce(), AlCaIsoTracksProducer::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 getHLTprescales::index, m_geos, makeIndex(), and convertSQLiteXML::ok.
Referenced by HcalCorrPFCalculation::analyze(), IsolatedTracksCone::analyze(), EcalHaloAlgo::Calculate(), spr::chargeIsolationEcal(), EcalClusterPUCleaningTools::CleanedSuperCluster(), EcalClusterTools::covariances(), HcalRecHitsMaker::createVectorOfSubdetectorCells(), egammaisolation::EgammaRecHitExtractor::deposit(), InvRingCalib::EERingDef(), EgammaRecHitIsolation::EgammaRecHitIsolation(), EcalClusterLazyTools::eseffsirir(), EcalClusterLazyTools::eseffsixix(), EcalClusterLazyTools::eseffsiyiy(), HCALRecHitAnalyzer::FillGeometry(), spr::findDetIdECAL(), spr::findDetIdHCAL(), BetaCalculatorECAL::getDetailedTrackLengthInXtals(), HCaloDetIdAssociator::getDetIdPoints(), CaloDetIdAssociator::getDetIdPoints(), EcalClusterTools::getEnergyDepTopology(), EcalClusterLazyTools::getESHits(), getGeometry(), HoECalculator::getHoE(), getPosition(), HCaloDetIdAssociator::getPosition(), CaloDetIdAssociator::getPosition(), PhotonFixCMS::initialise(), EcalRingCalibrationTools::initializeFromGeometry(), CaloDetIdAssociator::insideElement(), HCaloDetIdAssociator::insideElement(), spr::matrixECALIds(), EcalClusterTools::meanClusterPosition(), PhysicsTowerOrganizer::PhysicsTowerOrganizer(), present(), HcalHitRelabeller::process(), CastorEventDisplay::processEvent(), EgammaHLTHybridClusterProducer::produce(), HybridClusterProducer::produce(), spr::propagateCALO(), CaloConeSelector::select(), CaloDualConeSelector::select(), 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 getHLTprescales::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::DiJetAnalyzer::analyze(), cms::HcalConstantsASCIIWriter::analyze(), EcalMixingModuleValidation::computeSDBunchDigi(), InvRingCalib::duringLoop(), EcalEleCalibLooper::duringLoop(), Pi0FixedMassWindowCalibration::duringLoop(), HEcalDetIdAssociator::getASetOfValidDetIds(), HHcalDetIdAssociator::getASetOfValidDetIds(), HCaloDetIdAssociator::getASetOfValidDetIds(), ParticleTowerProducer::getNearestTower(), PreshowerDetIdAssociator::getValidDetIds(), HODetIdAssociator::getValidDetIds(), EcalDetIdAssociator::getValidDetIds(), HcalDetIdAssociator::getValidDetIds(), getValidDetIds(), CaloDetIdAssociator::getValidDetIds(), EcalRingCalibrationTools::initializeFromGeometry(), 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(), getHLTprescales::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 relativeConstraints::geom, getHLTprescales::index, m_geos, makeIndex(), and convertSQLiteXML::ok.
|
staticprivate |
Definition at line 61 of file CaloGeometry.h.
Referenced by getValidDetIds().
|
private |
Definition at line 63 of file CaloGeometry.h.
Referenced by getSubdetectorGeometry(), getValidDetIds(), and setSubdetGeometry().