#include <HcalDDDGeometry.h>
Public Types | |
typedef std::vector< IdealObliquePrism > | HBCellVec |
typedef std::vector< IdealObliquePrism > | HECellVec |
typedef std::vector< IdealZPrism > | HFCellVec |
typedef std::vector< IdealObliquePrism > | HOCellVec |
Public Types inherited from CaloSubdetectorGeometry | |
typedef CaloCellGeometry::CCGFloat | CCGFloat |
typedef std::vector< std::shared_ptr< const CaloCellGeometry > > | 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 | |
DetId | getClosestCell (const GlobalPoint &r) const override |
const std::vector< DetId > & | getValidDetIds (DetId::Detector det=DetId::Detector(0), int subdet=0) const override |
Get a list of valid detector ids (for the given subdetector) More... | |
HcalDDDGeometry (const HcalTopology &theTopo) | |
int | insertCell (std::vector< HcalCellType > const &) |
void | newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) override |
~HcalDDDGeometry () override | |
The HcalDDDGeometry will delete all its cell geometries at destruction time. More... | |
Public Member Functions inherited from CaloSubdetectorGeometry | |
void | allocateCorners (CaloCellGeometry::CornersVec::size_type n) |
void | allocatePar (ParVec::size_type n, unsigned int m) |
CaloSubdetectorGeometry () | |
CaloSubdetectorGeometry (const CaloSubdetectorGeometry &)=delete | |
avoid copies More... | |
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 std::shared_ptr< 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 void | initializeParms () |
virtual unsigned int | numberOfParametersPerShape () const |
virtual unsigned int | numberOfShapes () const |
virtual unsigned int | numberOfTransformParms () const |
CaloSubdetectorGeometry & | operator= (const CaloSubdetectorGeometry &)=delete |
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 | |
const CaloCellGeometry * | getGeometryRawPtr (uint32_t index) const override |
Protected Member Functions inherited from CaloSubdetectorGeometry | |
void | addValidID (const DetId &id) |
virtual std::shared_ptr< const CaloCellGeometry > | cellGeomPtr (uint32_t index) const |
virtual unsigned int | indexFor (const DetId &id) const |
virtual unsigned int | sizeForDenseIndex (const DetId &id) const |
Private Member Functions | |
void | fillDetIds () const |
void | increaseReserve (unsigned int extra) |
void | newCellFast (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) |
void | newCellImpl (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) |
void | sortValidIds () |
Private Attributes | |
double | etaMax_ |
std::vector< HcalCellType > | hcalCells_ |
std::vector< DetId > | m_emptyIds |
std::atomic< bool > | m_filledDetIds |
HBCellVec | m_hbCellVec |
std::vector< DetId > | m_hbIds |
HECellVec | m_heCellVec |
std::vector< DetId > | m_heIds |
HFCellVec | m_hfCellVec |
std::vector< DetId > | m_hfIds |
HOCellVec | m_hoCellVec |
std::vector< DetId > | m_hoIds |
const HcalTopology & | topo_ |
Friends | |
class | HcalDDDGeometryLoader |
Additional Inherited Members | |
Static Protected Member Functions inherited from CaloSubdetectorGeometry | |
static CCGFloat | deltaR (const GlobalPoint &p1, const GlobalPoint &p2) |
Protected Attributes inherited from CaloSubdetectorGeometry | |
ParVecVec | m_parVecVec |
std::vector< DetId > | m_validIds |
Definition at line 17 of file HcalDDDGeometry.h.
typedef std::vector<IdealObliquePrism> HcalDDDGeometry::HBCellVec |
Definition at line 21 of file HcalDDDGeometry.h.
typedef std::vector<IdealObliquePrism> HcalDDDGeometry::HECellVec |
Definition at line 22 of file HcalDDDGeometry.h.
typedef std::vector<IdealZPrism> HcalDDDGeometry::HFCellVec |
Definition at line 24 of file HcalDDDGeometry.h.
typedef std::vector<IdealObliquePrism> HcalDDDGeometry::HOCellVec |
Definition at line 23 of file HcalDDDGeometry.h.
|
explicit |
Definition at line 12 of file HcalDDDGeometry.cc.
|
override |
The HcalDDDGeometry will delete all its cell geometries at destruction time.
Definition at line 21 of file HcalDDDGeometry.cc.
|
private |
Definition at line 23 of file HcalDDDGeometry.cc.
References CaloSubdetectorGeometry::getValidDetIds(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, mps_fire::i, l1ctLayer2EG_cff::id, m_emptyIds, m_filledDetIds, m_hbIds, m_heIds, m_hfIds, m_hoIds, s_fillLock, and jetsAK4_CHS_cff::sort.
Referenced by getValidDetIds().
|
overridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 69 of file HcalDDDGeometry.cc.
References etaMax_, hcalCells_, HcalForward, M_PI, phi, alignCSCRings::r, CosmicsPD_Skims::radius, and z.
|
overrideprotectedvirtual |
Implements CaloSubdetectorGeometry.
Definition at line 187 of file HcalDDDGeometry.cc.
References cropTnPTrees::din, m_hbCellVec, m_heCellVec, m_hfCellVec, m_hoCellVec, and CaloCellGeometry::param().
|
overridevirtual |
Get a list of valid detector ids (for the given subdetector)
Reimplemented from CaloSubdetectorGeometry.
Definition at line 57 of file HcalDDDGeometry.cc.
References fillDetIds(), CaloSubdetectorGeometry::getValidDetIds(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, m_emptyIds, m_filledDetIds, m_hbIds, m_heIds, m_hfIds, and m_hoIds.
|
private |
Definition at line 206 of file HcalDDDGeometry.cc.
References CaloSubdetectorGeometry::m_validIds.
int HcalDDDGeometry::insertCell | ( | std::vector< HcalCellType > const & | cells | ) |
Definition at line 134 of file HcalDDDGeometry.cc.
References cells, etaMax_, hcalCells_, and EgammaValidation_cff::num.
|
overridevirtual |
Implements CaloSubdetectorGeometry.
Definition at line 175 of file HcalDDDGeometry.cc.
References CaloSubdetectorGeometry::addValidID(), DeadROC_duringRun::f1, DeadROC_duringRun::f2, and newCellImpl().
|
private |
Definition at line 181 of file HcalDDDGeometry.cc.
References DeadROC_duringRun::f1, DeadROC_duringRun::f2, CaloSubdetectorGeometry::m_validIds, and newCellImpl().
|
private |
Definition at line 148 of file HcalDDDGeometry.cc.
References cms::cuda::assert(), CaloSubdetectorGeometry::cornersMgr(), DetId::det(), HcalTopology::detId2denseId(), cropTnPTrees::din, IdealZPrism::EM, DeadROC_duringRun::f1, IdealZPrism::HADR, DetId::Hcal, HcalBarrel, HcalEndcap, HcalOuter, m_hbCellVec, m_heCellVec, m_hfCellVec, m_hoCellVec, and topo_.
Referenced by newCell(), and newCellFast().
|
private |
Definition at line 208 of file HcalDDDGeometry.cc.
References CaloSubdetectorGeometry::m_validIds, and jetsAK4_CHS_cff::sort.
|
friend |
Definition at line 19 of file HcalDDDGeometry.h.
|
private |
Definition at line 67 of file HcalDDDGeometry.h.
Referenced by getClosestCell(), and insertCell().
|
private |
Definition at line 59 of file HcalDDDGeometry.h.
Referenced by getClosestCell(), and insertCell().
|
mutableprivate |
Definition at line 64 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
mutableprivate |
Definition at line 73 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 69 of file HcalDDDGeometry.h.
Referenced by getGeometryRawPtr(), and newCellImpl().
|
mutableprivate |
Definition at line 60 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 70 of file HcalDDDGeometry.h.
Referenced by getGeometryRawPtr(), and newCellImpl().
|
mutableprivate |
Definition at line 61 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 72 of file HcalDDDGeometry.h.
Referenced by getGeometryRawPtr(), and newCellImpl().
|
mutableprivate |
Definition at line 63 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 71 of file HcalDDDGeometry.h.
Referenced by getGeometryRawPtr(), and newCellImpl().
|
mutableprivate |
Definition at line 62 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 66 of file HcalDDDGeometry.h.
Referenced by newCellImpl().