14 CaloCellGeometry::operator=(idop);
38 return GlobalPoint(perp * cosf(phi), perp * sinf(phi), perp * sinhf(eta));
42 return GlobalPoint(z * cosf(phi) / sinhf(eta), z * sinf(phi) / sinhf(eta), z);
55 std::vector<GlobalPoint> gc(8,
GlobalPoint(0, 0, 0));
73 gc[0] =
etaPhiZ(eta + dEta, +dPhi, z_near);
74 gc[1] =
etaPhiZ(eta + dEta, -dPhi, z_near);
75 gc[2] =
etaPhiZ(eta - dEta, -dPhi, z_near);
76 gc[3] =
etaPhiZ(eta - dEta, +dPhi, z_near);
77 gc[4] =
etaPhiZ(eta + dEta, +dPhi, z_far);
78 gc[5] =
etaPhiZ(eta + dEta, -dPhi, z_far);
79 gc[6] =
etaPhiZ(eta - dEta, -dPhi, z_far);
80 gc[7] =
etaPhiZ(eta - dEta, +dPhi, z_far);
82 for (
unsigned int i(0);
i != 8; ++
i) {
86 ref = 0.25 * (lc[0] + lc[1] + lc[2] + lc[3]);
135 s <<
"Center: " << cell.
getPosition() << std::endl;
136 s <<
"dEta = " << cell.
dEta() <<
", dPhi = " << cell.
dPhi() <<
", dz = " << cell.
dz() << std::endl;
static GlobalPoint etaPhiZ(float eta, float phi, float z)
static constexpr uint32_t k_Eta
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
virtual const GlobalPoint & getPosition() const
Returns the position of reference for this cell.
Geom::Phi< T > phi() const
Global3DPoint GlobalPoint
std::vector< Pt3D > Pt3DVec
std::ostream & operator<<(std::ostream &out, const ALILine &li)
__host__ __device__ VT * co
const CCGFloat * param() const
CaloCellGeometry::Pt3D Pt3D
static void localCorners(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref)
static constexpr uint32_t k_dPhi
Cos< T >::type cos(const T &t)
CaloCellGeometry::CCGFloat CCGFloat
CaloCellGeometry::CCGFloat CCGFloat
static constexpr uint32_t k_Z
void initCorners(CornersVec &) override
~IdealObliquePrism() override
CaloCellGeometry::Pt3D Pt3D
static GlobalPoint etaPhiPerp(float eta, float phi, float perp)
void vocalCorners(Pt3DVec &vec, const CCGFloat *pv, Pt3D &ref) const override
CaloCellGeometry::Pt3DVec Pt3DVec
HepGeom::Point3D< CCGFloat > Pt3D
T perp() const
Magnitude of transverse component.
bool uninitialized() const
static constexpr uint32_t k_dEta
IdealObliquePrism & operator=(const IdealObliquePrism &idop)
static constexpr uint32_t k_dZ
CaloCellGeometry::Pt3DVec Pt3DVec