#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().
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 egammaisolation::EgammaHcalExtractor::deposit(), spr::findCone(), EgammaHLTHcalIsolationDoubleCone::isolPtSum(), 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 CaloTowerConstituentsMapBuilder::assignEEtoHE(), EcalClusterPUCleaningTools::CleanedSuperCluster(), spr::findDetIdECAL(), spr::findDetIdHCAL(), HCaloDetIdAssociator::getDetIdPoints(), getGeometry(), HoECalculator::getHoE(), getPosition(), HCaloDetIdAssociator::getPosition(), PhotonFixCMS::initialise(), CaloDetIdAssociator::insideElement(), HCaloDetIdAssociator::insideElement(), present(), CaloDualConeSelector< HBHERecHit >::selectCallback(), CaloConeSelector< T >::selectCallback(), and EcalGeomPhiSymHelper::setup().
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(), HEcalDetIdAssociator::getASetOfValidDetIds(), HHcalDetIdAssociator::getASetOfValidDetIds(), HCaloDetIdAssociator::getASetOfValidDetIds(), PreshowerDetIdAssociator::getValidDetIds(), HODetIdAssociator::getValidDetIds(), EcalDetIdAssociator::getValidDetIds(), HcalDetIdAssociator::getValidDetIds(), getValidDetIds(), and EcalGeomPhiSymHelper::setup().
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().