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