1 #ifndef GeometryCaloGeometryFlatTrd_h 2 #define GeometryCaloGeometryFlatTrd_h 5 #include <CLHEP/Geometry/Point3D.h> 6 #include <CLHEP/Geometry/Plane3D.h> 7 #include <CLHEP/Geometry/Vector3D.h> 8 #include <CLHEP/Geometry/Transform3D.h> 26 static constexpr uint32_t
k_dZ = 0;
29 static constexpr uint32_t
k_Phi = 2;
31 static constexpr uint32_t
k_dY1 = 3;
32 static constexpr uint32_t
k_dX1 = 4;
34 static constexpr uint32_t
k_dX2 = 5;
36 static constexpr uint32_t
k_Alp1 = 6;
38 static constexpr uint32_t
k_dY2 = 7;
39 static constexpr uint32_t
k_dX3 = 8;
41 static constexpr uint32_t
k_dX4 = 9;
43 static constexpr uint32_t
k_Alp2 = 10;
45 static constexpr uint32_t
k_Cell = 11;
86 static void createCorners(
const std::vector<CCGFloat>&
pv,
const Tr3D& tr, std::vector<GlobalPoint>&
co);
const GlobalVector & axis() const
A base class to handle the particular shape of HGCal volumes.
FlatTrd & operator=(const FlatTrd &tr)
GlobalPoint const & getPosition() const override
Returns the position of reference for this cell.
static constexpr unsigned int ncornerBy2_
CaloCellGeometry::Pt3D Pt3D
void setRefPoint(const GlobalPoint &pos)
float etaPos() const override
Geom::Phi< T > phi() const
static constexpr uint32_t k_Theta
CaloCellGeometry::Pt3DVec Pt3DVec
HepGeom::Transform3D Tr3D
static constexpr uint32_t k_Cell
std::vector< Pt3D > Pt3DVec
static constexpr uint32_t k_dY1
__host__ __device__ VT * co
void setPosition(const GlobalPoint &p)
std::ostream & operator<<(std::ostream &s, const FlatTrd &cell)
void getTransform(Tr3D &tr, Pt3DVec *lptr) const override
--------— only needed by specific utility; overloaded when needed -—
float etaSpan() const override
static constexpr unsigned int ncorner_
CaloCellGeometry::CCGFloat CCGFloat
CCGFloat getThetaAxis() const
static constexpr uint32_t k_dX1
CaloCellGeometry::CCGFloat CCGFloat
static constexpr uint32_t k_dY2
float phiSpan() const override
static constexpr uint32_t k_dX4
static void localCorners(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref)
void vocalCorners(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref) const override
CaloCellGeometry::Pt3D Pt3D
float phiPos() const override
GlobalPoint backCtr(void) const
GlobalVector makeAxis(void)
static constexpr uint32_t k_Phi
void initCorners(CornersVec &) override
CaloCellGeometry::Pt3DVec Pt3DVec
HepGeom::Point3D< CCGFloat > Pt3D
static void createCorners(const std::vector< CCGFloat > &pv, const Tr3D &tr, std::vector< GlobalPoint > &co)
CaloCellGeometry::Tr3D Tr3D
static constexpr uint32_t k_dZ
CaloCellGeometry::Tr3D Tr3D
static constexpr uint32_t k_Alp1
static constexpr uint32_t k_dX3
Pt3D getLocal(const GlobalPoint &global) const
const CCGFloat * param() const
static constexpr uint32_t k_dX2
CCGFloat getPhiAxis() const
static constexpr uint32_t k_Alp2