Go to the documentation of this file. 1 #ifndef GeometryHGCalGeometryHGCalGeometry_h
2 #define GeometryHGCalGeometryHGCalGeometry_h
62 const DetId& detId)
override;
65 std::shared_ptr<const CaloCellGeometry>
getGeometry(
const DetId&
id)
const override;
123 std::shared_ptr<const CaloCellGeometry>
cellGeomPtr(uint32_t
index)
const override;
136 static constexpr
double k_fac2 = 1.0 / 3.0;
std::vector< Pt3D > Pt3DVec
CaloCellGeometry::CCGFloat CCGFloat
void localCorners(Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref)
static constexpr unsigned int k_NumberOfParametersPerShape
void addValidID(const DetId &id)
~HGCalGeometry() override
std::vector< FlatTrd > CellVec2
std::shared_ptr< const CaloCellGeometry > cellGeomPtr(uint32_t index) const override
std::vector< CCGFloat > DimVec
bool present(const DetId &id) const override
is this detid present in the geometry?
static constexpr double k_half
CaloCellGeometry::CCGFloat CCGFloat
double getArea(const DetId &detid) const
Returns area of a cell.
std::vector< CCGFloat > TrVec
static std::string dbString()
static constexpr unsigned int k_NumberOfShapes
GlobalPoint getWaferPosition(const DetId &id) const
DetIdSet getCells(const GlobalPoint &r, double dR) const override
Get a list of all cells within a dR of the given cell.
void getSummary(CaloSubdetectorGeometry::TrVec &trVector, CaloSubdetectorGeometry::IVec &iVector, CaloSubdetectorGeometry::DimVec &dimVector, CaloSubdetectorGeometry::IVec &dinsVector) const override
CaloCellGeometry::Pt3D Pt3D
ForwardSubdetector m_subdet
static constexpr unsigned int k_NumberOfParametersPerTrd
std::vector< unsigned int > IVec
DetId neighborZ(const DetId &idin, const GlobalVector &p) const
CaloCellGeometry::Pt3D Pt3D
std::string cellElement() const
PHGCalRcd PGeometryRecord
std::vector< DetId > m_validIds
static constexpr unsigned int k_NumberOfParametersPerHex
DetId getGeometryDetId(DetId detId) const
HepGeom::Point3D< CCGFloat > Pt3D
const HGCalTopology & topology() const
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)
static constexpr unsigned int k_NumberOfShapesTrd
HGCalGeometryMode::GeometryMode mode_
std::vector< FlatHexagon > CellVec
std::vector< DetId > m_validGeomIds
HGCalGeometry(const HGCalTopology &topology)
const CaloCellGeometry * getGeometryRawPtr(uint32_t index) const override
static constexpr double k_fac1
static std::string producerTag()
GlobalPoint getPosition(const DetId &id) const
DetId getClosestCell(const GlobalPoint &r) const override
std::set< DetId > DetIdSet
static constexpr double k_fac2
CornersVec getCorners(const DetId &id) const
Returns the corner points of this cell's volume.
void initializeParms() override
unsigned int sizeForDenseIndex() const
CaloCellGeometry::Pt3DVec Pt3DVec
virtual void fillNamedParams(DDFilteredView fv)
const std::vector< DetId > & getValidGeomDetIds(void) const
unsigned int indexFor(const DetId &id) const override
void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) override
CaloCellGeometry::Pt3DVec Pt3DVec
unsigned int getClosestCellIndex(const GlobalPoint &r) const
HGCalGeometryRecord AlignedRecord
std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const override
Get the cell geometry of a given detector id. Should return false if not found.
virtual unsigned int sizeForDenseIndex(const DetId &id) const
std::vector< GlobalPoint > CornersVec
CornersVec getNewCorners(const DetId &id) const
const HGCalTopology & m_topology
CornersVec get8Corners(const DetId &id) const