#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< 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 | |
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 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 * | cellGeomPtr (uint32_t index) const override |
Protected Member Functions inherited from CaloSubdetectorGeometry | |
void | addValidID (const DetId &id) |
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 23 of file HcalDDDGeometry.h.
typedef std::vector<IdealObliquePrism> HcalDDDGeometry::HECellVec |
Definition at line 24 of file HcalDDDGeometry.h.
typedef std::vector<IdealZPrism> HcalDDDGeometry::HFCellVec |
Definition at line 26 of file HcalDDDGeometry.h.
typedef std::vector<IdealObliquePrism> HcalDDDGeometry::HOCellVec |
Definition at line 25 of file HcalDDDGeometry.h.
|
explicit |
Definition at line 10 of file HcalDDDGeometry.cc.
|
override |
The HcalDDDGeometry will delete all its cell geometries at destruction time.
Definition at line 21 of file HcalDDDGeometry.cc.
|
overrideprotectedvirtual |
Implements CaloSubdetectorGeometry.
Definition at line 224 of file HcalDDDGeometry.cc.
References cropTnPTrees::din, diffTreeTool::index, m_hbCellVec, m_heCellVec, m_hfCellVec, m_hoCellVec, and CaloCellGeometry::param().
|
private |
Definition at line 26 of file HcalDDDGeometry.cc.
References CaloSubdetectorGeometry::getValidDetIds(), HcalBarrel, HcalEndcap, HcalForward, HcalOuter, mps_fire::i, hcalTTPDigis_cfi::id, m_emptyIds, m_filledDetIds, m_hbIds, m_heIds, m_hfIds, m_hoIds, and s_fillLock.
Referenced by getValidDetIds().
|
overridevirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 86 of file HcalDDDGeometry.cc.
References constexpr, PV3DBase< T, PVType, FrameType >::eta(), etaMax_, hcalCells_, HcalForward, LogDebug, M_PI, PV3DBase< T, PVType, FrameType >::mag(), phi, PV3DBase< T, PVType, FrameType >::phi(), TCMET_cfi::radius, z, and PV3DBase< T, PVType, FrameType >::z().
|
overridevirtual |
Get a list of valid detector ids (for the given subdetector)
Reimplemented from CaloSubdetectorGeometry.
Definition at line 73 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 269 of file HcalDDDGeometry.cc.
References CaloSubdetectorGeometry::m_validIds.
Referenced by HcalDDDGeometryLoader::fill().
int HcalDDDGeometry::insertCell | ( | std::vector< HcalCellType > const & | cells | ) |
Definition at line 150 of file HcalDDDGeometry.cc.
References etaMax_, hcalCells_, LogDebug, and pileupDistInMC::num.
Referenced by HcalDDDGeometryLoader::fill().
|
overridevirtual |
Implements CaloSubdetectorGeometry.
Definition at line 202 of file HcalDDDGeometry.cc.
References CaloSubdetectorGeometry::addValidID(), and newCellImpl().
|
private |
Definition at line 213 of file HcalDDDGeometry.cc.
References CaloSubdetectorGeometry::m_validIds, and newCellImpl().
Referenced by HcalDDDGeometryLoader::makeCell().
|
private |
Definition at line 165 of file HcalDDDGeometry.cc.
References CaloSubdetectorGeometry::cornersMgr(), DetId::det(), HcalTopology::detId2denseId(), cropTnPTrees::din, IdealZPrism::EM, IdealZPrism::HADR, DetId::Hcal, HcalBarrel, HcalEndcap, HcalOuter, diffTreeTool::index, m_hbCellVec, m_heCellVec, m_hfCellVec, m_hoCellVec, and topo_.
Referenced by newCell(), and newCellFast().
|
private |
Definition at line 273 of file HcalDDDGeometry.cc.
References CaloSubdetectorGeometry::m_validIds.
Referenced by HcalDDDGeometryLoader::load().
|
friend |
Definition at line 21 of file HcalDDDGeometry.h.
|
private |
Definition at line 77 of file HcalDDDGeometry.h.
Referenced by getClosestCell(), and insertCell().
|
private |
Definition at line 69 of file HcalDDDGeometry.h.
Referenced by getClosestCell(), and insertCell().
|
mutableprivate |
Definition at line 74 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
mutableprivate |
Definition at line 83 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 79 of file HcalDDDGeometry.h.
Referenced by cellGeomPtr(), and newCellImpl().
|
mutableprivate |
Definition at line 70 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 80 of file HcalDDDGeometry.h.
Referenced by cellGeomPtr(), and newCellImpl().
|
mutableprivate |
Definition at line 71 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 82 of file HcalDDDGeometry.h.
Referenced by cellGeomPtr(), and newCellImpl().
|
mutableprivate |
Definition at line 73 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 81 of file HcalDDDGeometry.h.
Referenced by cellGeomPtr(), and newCellImpl().
|
mutableprivate |
Definition at line 72 of file HcalDDDGeometry.h.
Referenced by fillDetIds(), and getValidDetIds().
|
private |
Definition at line 76 of file HcalDDDGeometry.h.
Referenced by newCellImpl().