Implementation class for PhiZMeasurementEstimator etc.
Definition at line 12 of file GlobalDetRodRangeZPhi.h.
GlobalDetRodRangeZPhi::GlobalDetRodRangeZPhi |
( |
const Plane & |
RodPlane | ) |
|
Definition at line 8 of file GlobalDetRodRangeZPhi.cc.
References Surface::bounds(), TCMET_cfi::corner, PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, Bounds::length(), SiStripPI::max, min(), PV3DBase< T, PVType, FrameType >::perp(), phi, Geom::phiLess(), phimax, phimin, thePhiRange, theZRange, Bounds::thickness(), Surface::toGlobal(), Bounds::width(), and z.
10 float dx = plane.bounds().width()/2.;
11 float dy = plane.bounds().length()/2.;
12 float dz = plane.bounds().thickness()/2.;
16 float deltaZ = (plane.toGlobal(
LocalPoint( 0, 0, -dz)).perp() <
17 plane.toGlobal(
LocalPoint( 0, 0, dz)).perp() ) ? -dz : dz ;
20 const std::array<Surface::GlobalPoint, 4> corners{{
21 plane.toGlobal(
LocalPoint( -dx, -dy, deltaZ)),
24 plane.toGlobal(
LocalPoint( dx, dy, deltaZ))}};
26 float phimin = corners[0].phi();
29 float zmin = corners[0].z();
32 for (
const auto&
corner : corners )
Point3DBase< Scalar, LocalTag > LocalPoint
bool phiLess(float phi1, float phi2)