#include <CaloSubdetectorGeometry.h>
Public Types | |
typedef CaloCellGeometry::CCGFloat | CCGFloat |
typedef std::vector < CaloCellGeometry const * > | CellSet |
typedef std::set< DetId > | DetIdSet |
typedef std::vector< CCGFloat > | DimVec |
typedef std::vector< unsigned int > | IVec |
typedef CaloCellGeometry::ParMgr | ParMgr |
typedef CaloCellGeometry::ParVec | ParVec |
typedef CaloCellGeometry::ParVecVec | ParVecVec |
typedef std::vector< CCGFloat > | TrVec |
Public Member Functions | |
void | allocateCorners (CaloCellGeometry::CornersVec::size_type n) |
void | allocatePar (ParVec::size_type n, unsigned int m) |
CaloSubdetectorGeometry () | |
CaloCellGeometry::CornersMgr * | cornersMgr () |
CCGFloat | deltaEta (const DetId &detId) const |
CCGFloat | deltaPhi (const DetId &detId) const |
virtual void | fillDefaultNamedParameters () const |
virtual DetIdSet | getCells (const GlobalPoint &r, double dR) const |
Get a list of all cells within a dR of the given cell. More... | |
virtual CellSet | getCellSet (const GlobalPoint &r, double dR) const |
virtual DetId | getClosestCell (const GlobalPoint &r) const |
virtual const CaloCellGeometry * | getGeometry (const DetId &id) const |
Get the cell geometry of a given detector id. Should return false if not found. More... | |
virtual void | getSummary (TrVec &trVector, IVec &iVector, DimVec &dimVector, IVec &dinsVector) const |
virtual const std::vector < DetId > & | getValidDetIds (DetId::Detector det=DetId::Detector(0), int subdet=0) const |
Get a list of valid detector ids (for the given subdetector) More... | |
virtual void | initializeParms () |
virtual void | newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)=0 |
virtual unsigned int | numberOfParametersPerShape () const |
virtual unsigned int | numberOfShapes () const |
virtual unsigned int | numberOfTransformParms () const |
ParMgr * | parMgr () |
const ParMgr * | parMgrConst () const |
ParVecVec & | parVecVec () |
const ParVecVec & | parVecVec () const |
virtual bool | present (const DetId &id) const |
is this detid present in the geometry? More... | |
virtual | ~CaloSubdetectorGeometry () |
The base class DOES assume that it owns the CaloCellGeometry objects. More... | |
Protected Member Functions | |
void | addValidID (const DetId &id) |
virtual const CaloCellGeometry * | cellGeomPtr (uint32_t index) const =0 |
virtual unsigned int | indexFor (const DetId &id) const |
virtual unsigned int | sizeForDenseIndex (const DetId &id) const |
Static Protected Member Functions | |
static CCGFloat | deltaR (const GlobalPoint &p1, const GlobalPoint &p2) |
Protected Attributes | |
ParVecVec | m_parVecVec |
std::vector< DetId > | m_validIds |
Private Member Functions | |
CaloSubdetectorGeometry (const CaloSubdetectorGeometry &) | |
avoid copies More... | |
CaloSubdetectorGeometry & | operator= (const CaloSubdetectorGeometry &) |
Private Attributes | |
CaloCellGeometry::CornersMgr * | m_cmgr |
std::atomic< std::vector < CCGFloat > * > | m_deltaEta |
std::atomic< std::vector < CCGFloat > * > | m_deltaPhi |
ParMgr * | m_parMgr |
bool | m_sortedIds |
Base class for a geometry container for a specific calorimetry subdetector.
Definition at line 24 of file CaloSubdetectorGeometry.h.
Definition at line 28 of file CaloSubdetectorGeometry.h.
typedef std::vector<CaloCellGeometry const *> CaloSubdetectorGeometry::CellSet |
Definition at line 27 of file CaloSubdetectorGeometry.h.
typedef std::set<DetId> CaloSubdetectorGeometry::DetIdSet |
Definition at line 30 of file CaloSubdetectorGeometry.h.
typedef std::vector<CCGFloat> CaloSubdetectorGeometry::DimVec |
Definition at line 39 of file CaloSubdetectorGeometry.h.
typedef std::vector<unsigned int> CaloSubdetectorGeometry::IVec |
Definition at line 38 of file CaloSubdetectorGeometry.h.
Definition at line 33 of file CaloSubdetectorGeometry.h.
Definition at line 34 of file CaloSubdetectorGeometry.h.
Definition at line 35 of file CaloSubdetectorGeometry.h.
typedef std::vector<CCGFloat> CaloSubdetectorGeometry::TrVec |
Definition at line 37 of file CaloSubdetectorGeometry.h.
CaloSubdetectorGeometry::CaloSubdetectorGeometry | ( | ) |
Definition at line 13 of file CaloSubdetectorGeometry.cc.
|
virtual |
The base class DOES assume that it owns the CaloCellGeometry objects.
Definition at line 21 of file CaloSubdetectorGeometry.cc.
|
private |
avoid copies
|
protected |
Definition at line 30 of file CaloSubdetectorGeometry.cc.
Referenced by ZdcGeometry::newCell(), CaloTowerGeometry::newCell(), and CastorGeometry::newCell().
void CaloSubdetectorGeometry::allocateCorners | ( | CaloCellGeometry::CornersVec::size_type | n | ) |
Definition at line 130 of file CaloSubdetectorGeometry.cc.
Referenced by CaloTowerHardcodeGeometryLoader::load(), and EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry().
void CaloSubdetectorGeometry::allocatePar | ( | ParVec::size_type | n, |
unsigned int | m | ||
) |
Definition at line 140 of file CaloSubdetectorGeometry.cc.
Referenced by CaloTowerHardcodeGeometryLoader::load(), and EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry().
|
protectedpure virtual |
|
inline |
Definition at line 82 of file CaloSubdetectorGeometry.h.
References m_cmgr.
Referenced by CaloTowerHardcodeGeometryLoader::load(), EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry(), ZdcGeometry::newCell(), CaloTowerGeometry::newCell(), and CastorGeometry::newCell().
Definition at line 274 of file CaloSubdetectorGeometry.cc.
Definition at line 221 of file CaloSubdetectorGeometry.cc.
|
inlinestaticprotected |
|
inlinevirtual |
Definition at line 96 of file CaloSubdetectorGeometry.h.
References reco::return().
|
virtual |
Get a list of all cells within a dR of the given cell.
The default implementation makes a loop over all cell geometries. Cleverer implementations are suggested to use rough conversions between eta/phi and ieta/iphi and test on the boundaries.
Reimplemented in HGCalGeometry, EcalBarrelGeometry, EcalEndcapGeometry, and HcalGeometry.
Definition at line 85 of file CaloSubdetectorGeometry.cc.
Referenced by CaloDualConeSelector< HBHERecHit >::selectCallback(), and CaloConeSelector< T >::selectCallback().
|
virtual |
Definition at line 121 of file CaloSubdetectorGeometry.cc.
|
virtual |
Reimplemented in HGCalGeometry, EcalBarrelGeometry, EcalEndcapGeometry, EcalPreshowerGeometry, CastorGeometry, HcalGeometry, and HcalDDDGeometry.
Definition at line 56 of file CaloSubdetectorGeometry.cc.
Referenced by spr::findDetIdCalo(), and HoECalculator::getHoE().
|
virtual |
Get the cell geometry of a given detector id. Should return false if not found.
Reimplemented in HcalGeometry, CaloTowerGeometry, and HGCalGeometry.
Definition at line 44 of file CaloSubdetectorGeometry.cc.
Referenced by PreshowerHitMaker::addHit(), SuperClusterShapeAlgo::Calculate_Covariances(), CaloCellCrossing::CaloCellCrossing(), DistanceToCell::DistanceToCell(), CastorGeometry::getClosestCell(), HCaloDetIdAssociator::getDetIdPoints(), CaloGeometry::getGeometry(), CaloGeometry::getPosition(), HCaloDetIdAssociator::getPosition(), PFHBHERecHitCreator::importRecHits(), PFPSRecHitCreator::importRecHits(), PhotonFixCMS::initialise(), CaloDetIdAssociator::insideElement(), HCaloDetIdAssociator::insideElement(), PreshowerPhiClusterAlgo::makeOneCluster(), DistanceToCell::operator()(), and EcalGeomPhiSymHelper::setup().
|
virtual |
Reimplemented in HcalGeometry, CaloTowerGeometry, and HGCalGeometry.
Definition at line 148 of file CaloSubdetectorGeometry.cc.
|
virtual |
Get a list of valid detector ids (for the given subdetector)
Reimplemented in HGCalGeometry, HcalGeometry, and HcalDDDGeometry.
Definition at line 37 of file CaloSubdetectorGeometry.cc.
Referenced by testEcalTPGScale::analyze(), CaloCellCrossing::CaloCellCrossing(), and CastorGeometry::getClosestCell().
|
protectedvirtual |
Reimplemented in HcalGeometry, HGCalGeometry, and CaloTowerGeometry.
Definition at line 324 of file CaloSubdetectorGeometry.cc.
|
inlinevirtual |
Reimplemented in HGCalGeometry, EcalEndcapGeometry, and EcalPreshowerGeometry.
Definition at line 103 of file CaloSubdetectorGeometry.h.
References reco::return().
|
pure virtual |
Implemented in EcalBarrelGeometry, EcalEndcapGeometry, HcalGeometry, EcalPreshowerGeometry, CastorGeometry, CaloTowerGeometry, ZdcGeometry, HGCalGeometry, HcalDDDGeometry, and EcalTBHodoscopeGeometry.
Referenced by CaloTowerHardcodeGeometryLoader::makeCell(), and EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry().
|
inlinevirtual |
Reimplemented in EcalEndcapGeometry, EcalBarrelGeometry, EcalPreshowerGeometry, CastorGeometry, CaloTowerGeometry, HcalGeometry, and ZdcGeometry.
Definition at line 93 of file CaloSubdetectorGeometry.h.
|
inlinevirtual |
Reimplemented in EcalEndcapGeometry, EcalBarrelGeometry, EcalPreshowerGeometry, CastorGeometry, CaloTowerGeometry, HcalGeometry, and ZdcGeometry.
Definition at line 92 of file CaloSubdetectorGeometry.h.
|
inlinevirtual |
Reimplemented in EcalPreshowerGeometry, and CastorGeometry.
Definition at line 94 of file CaloSubdetectorGeometry.h.
Referenced by CaloTowerGeometry::getSummary().
|
private |
|
inline |
Definition at line 86 of file CaloSubdetectorGeometry.h.
References m_parMgr.
Referenced by CaloTowerHardcodeGeometryLoader::load(), CaloTowerHardcodeGeometryLoader::makeCell(), and EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry().
|
inline |
|
inline |
Definition at line 89 of file CaloSubdetectorGeometry.h.
References m_parVecVec.
Referenced by CaloTowerGeometry::getSummary(), CaloTowerHardcodeGeometryLoader::makeCell(), and EcalTBHodoscopeGeometryLoaderFromDDD::makeGeometry().
|
inline |
|
virtual |
is this detid present in the geometry?
Reimplemented in EcalPreshowerGeometry.
Definition at line 50 of file CaloSubdetectorGeometry.cc.
Referenced by CaloGeometry::present().
|
protectedvirtual |
Reimplemented in HcalGeometry, and CaloTowerGeometry.
Definition at line 326 of file CaloSubdetectorGeometry.cc.
|
private |
Definition at line 126 of file CaloSubdetectorGeometry.h.
Referenced by cornersMgr().
|
mutableprivate |
Definition at line 136 of file CaloSubdetectorGeometry.h.
|
mutableprivate |
Definition at line 135 of file CaloSubdetectorGeometry.h.
|
private |
Definition at line 124 of file CaloSubdetectorGeometry.h.
Referenced by parMgr(), and parMgrConst().
|
protected |
Definition at line 112 of file CaloSubdetectorGeometry.h.
Referenced by parVecVec().
|
private |
Definition at line 132 of file CaloSubdetectorGeometry.h.
|
protected |
Definition at line 120 of file CaloSubdetectorGeometry.h.
Referenced by HGCalGeometry::getValidDetIds().