#include <HGCalGeometry.h>
Public Types | |
enum | { k_NumberOfParametersPerShape = 12 } |
enum | { k_NumberOfShapes = 50 } |
typedef CaloCellGeometry::CCGFloat | CCGFloat |
typedef std::vector< FlatTrd > | CellVec |
typedef std::vector< GlobalPoint > | CornersVec |
typedef std::set< DetId > | DetIdSet |
typedef CaloCellGeometry::Pt3D | Pt3D |
typedef CaloCellGeometry::Pt3DVec | Pt3DVec |
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 | |
std::string | cellElement () const |
virtual void | fillNamedParams (DDFilteredView fv) |
virtual DetIdSet | getCells (const GlobalPoint &r, double dR) const |
Get a list of all cells within a dR of the given cell. More... | |
virtual DetId | getClosestCell (const GlobalPoint &r) const |
CornersVec | getCorners (const DetId &id) const |
Returns the corner points of this cell's volume. More... | |
virtual const CaloCellGeometry * | getGeometry (const DetId &id) const |
Get the cell geometry of a given detector id. Should return false if not found. More... | |
GlobalPoint | getPosition (const DetId &id) 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... | |
HGCalGeometry (const HGCalTopology &topology) | |
virtual void | initializeParms () |
virtual void | newCell (const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) |
const HGCalTopology & | topology () const |
virtual | ~HGCalGeometry () |
Public Member Functions inherited from CaloSubdetectorGeometry | |
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 CellSet | getCellSet (const GlobalPoint &r, double dR) const |
virtual void | getSummary (TrVec &trVector, IVec &iVector, DimVec &dimVector, IVec &dinsVector) const |
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... | |
Static Public Member Functions | |
static std::string | producerTag () |
Protected Member Functions | |
void | addValidID (const DetId &id) |
virtual const CaloCellGeometry * | cellGeomPtr (uint32_t index) const |
unsigned int | getClosestCellIndex (const GlobalPoint &r) const |
virtual unsigned int | indexFor (const DetId &id) const |
virtual unsigned int | sizeForDenseIndex () const |
Protected Member Functions inherited from CaloSubdetectorGeometry | |
void | addValidID (const DetId &id) |
virtual unsigned int | sizeForDenseIndex (const DetId &id) const |
Private Attributes | |
CellVec | m_cellVec |
bool | m_halfType |
ForwardSubdetector | m_subdet |
std::vector< DetId > | m_validGeomIds |
const HGCalTopology & | mTopology |
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 25 of file HGCalGeometry.h.
Definition at line 31 of file HGCalGeometry.h.
typedef std::vector<FlatTrd> HGCalGeometry::CellVec |
Definition at line 29 of file HGCalGeometry.h.
typedef std::vector<GlobalPoint> HGCalGeometry::CornersVec |
Definition at line 36 of file HGCalGeometry.h.
typedef std::set<DetId> HGCalGeometry::DetIdSet |
Definition at line 35 of file HGCalGeometry.h.
Definition at line 32 of file HGCalGeometry.h.
Definition at line 33 of file HGCalGeometry.h.
anonymous enum |
anonymous enum |
HGCalGeometry::HGCalGeometry | ( | const HGCalTopology & | topology | ) |
Definition at line 18 of file HGCalGeometry.cc.
References gather_cfg::cout, HGCalTopology::detectorType(), m_halfType, m_subdet, HGCalTopology::subDetector(), topology(), and HGCalTopology::totalGeomModules().
|
virtual |
Definition at line 28 of file HGCalGeometry.cc.
|
protected |
Definition at line 201 of file HGCalGeometry.cc.
std::string HGCalGeometry::cellElement | ( | ) | const |
Definition at line 164 of file HGCalGeometry.cc.
References HGCEE, HGCHEB, HGCHEF, and m_subdet.
|
protectedvirtual |
Implements CaloSubdetectorGeometry.
Definition at line 190 of file HGCalGeometry.cc.
References gather_cfg::cout, cmsHarvester::index, m_cellVec, m_validGeomIds, and CaloCellGeometry::param().
Referenced by getGeometry().
|
virtual |
Definition at line 30 of file HGCalGeometry.cc.
|
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 from CaloSubdetectorGeometry.
Definition at line 160 of file HGCalGeometry.cc.
|
virtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 136 of file HGCalGeometry.cc.
References HGCalDDDConstants::assignCell(), gather_cfg::cout, HGCalTopology::dddConstants(), HGCalTopology::decode(), HGCalTopology::encode(), getClosestCellIndex(), HGCalTopology::DecodedDetId::iCell, HGCalTopology::DecodedDetId::iLay, HGCalTopology::DecodedDetId::iSec, HGCalTopology::DecodedDetId::iSubSec, m_cellVec, m_validGeomIds, topology(), and HGCalTopology::DecodedDetId::zside.
|
protected |
Definition at line 206 of file HGCalGeometry.cc.
References gather_cfg::cout, getPosition(), relval_steps::k, m_cellVec, M_PI, PV3DBase< T, PVType, FrameType >::phi(), z, and PV3DBase< T, PVType, FrameType >::z().
Referenced by getClosestCell().
HGCalGeometry::CornersVec HGCalGeometry::getCorners | ( | const DetId & | id | ) | const |
Returns the corner points of this cell's volume.
Definition at line 116 of file HGCalGeometry.cc.
References HGCalTopology::dddConstants(), HGCalTopology::decode(), i, HGCalTopology::DecodedDetId::iCell, HGCalTopology::DecodedDetId::iLay, indexFor(), HGCalTopology::DecodedDetId::iSubSec, HGCalDDDConstants::locateCell(), m_cellVec, topology(), and create_public_lumi_plots::xy.
|
virtual |
Get the cell geometry of a given detector id. Should return false if not found.
Reimplemented from CaloSubdetectorGeometry.
Definition at line 79 of file HGCalGeometry.cc.
References cellGeomPtr(), HGCEEDetId::geometryCell(), HGCHEDetId::geometryCell(), HGCEE, and topology().
GlobalPoint HGCalGeometry::getPosition | ( | const DetId & | id | ) | const |
Definition at line 98 of file HGCalGeometry.cc.
References gather_cfg::cout, HGCalTopology::dddConstants(), HGCalTopology::decode(), HGCalTopology::DecodedDetId::iCell, HGCalTopology::DecodedDetId::iLay, indexFor(), HGCalTopology::DecodedDetId::iSubSec, HGCalDDDConstants::locateCell(), m_cellVec, topology(), and create_public_lumi_plots::xy.
Referenced by getClosestCellIndex().
|
inlinevirtual |
Get a list of valid detector ids (for the given subdetector)
Reimplemented from CaloSubdetectorGeometry.
Definition at line 60 of file HGCalGeometry.h.
References CaloSubdetectorGeometry::m_validIds.
|
protectedvirtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 171 of file HGCalGeometry.cc.
References gather_cfg::cout, TauDecayModes::dec, HGCalTopology::detId2denseGeomId(), HGCEEDetId::geometryCell(), HGCHEDetId::geometryCell(), HGCEE, m_cellVec, DetId::rawId(), and topology().
Referenced by getCorners(), and getPosition().
|
virtual |
Reimplemented from CaloSubdetectorGeometry.
Definition at line 32 of file HGCalGeometry.cc.
|
virtual |
Implements CaloSubdetectorGeometry.
Definition at line 35 of file HGCalGeometry.cc.
References CaloSubdetectorGeometry::cornersMgr(), gather_cfg::cout, HGCalTopology::dddConstants(), TauDecayModes::dec, HGCalTopology::decode(), HGCalTopology::encode(), HGCEEDetId::geometryCell(), HGCHEDetId::geometryCell(), HGCEE, m_cellVec, m_halfType, m_subdet, m_validGeomIds, CaloSubdetectorGeometry::m_validIds, HGCalDDDConstants::maxCells(), DetId::rawId(), DetId::subdetId(), topology(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by HGCalGeometryLoader::build().
|
inlinestatic |
Definition at line 76 of file HGCalGeometry.h.
|
protectedvirtual |
Definition at line 186 of file HGCalGeometry.cc.
References topology(), and HGCalTopology::totalGeomModules().
|
inline |
Definition at line 79 of file HGCalGeometry.h.
References mTopology.
Referenced by getClosestCell(), getCorners(), getGeometry(), getPosition(), HGCalGeometry(), indexFor(), newCell(), and sizeForDenseIndex().
|
private |
Definition at line 94 of file HGCalGeometry.h.
Referenced by cellGeomPtr(), getClosestCell(), getClosestCellIndex(), getCorners(), getPosition(), indexFor(), and newCell().
|
private |
Definition at line 96 of file HGCalGeometry.h.
Referenced by HGCalGeometry(), and newCell().
|
private |
Definition at line 97 of file HGCalGeometry.h.
Referenced by cellElement(), HGCalGeometry(), and newCell().
|
private |
Definition at line 95 of file HGCalGeometry.h.
Referenced by cellGeomPtr(), getClosestCell(), and newCell().
|
private |
Definition at line 92 of file HGCalGeometry.h.
Referenced by topology().