13 float dx = plane.bounds().width()/2.;
14 float dy = plane.bounds().length()/2.;
16 vector<Surface::GlobalPoint> corners(4);
17 corners[0] = plane.toGlobal(
LocalPoint( -dx, -dy, 0));
18 corners[1] = plane.toGlobal(
LocalPoint( -dx, dy, 0));
19 corners[2] = plane.toGlobal(
LocalPoint( dx, -dy, 0));
20 corners[3] = plane.toGlobal(
LocalPoint( dx, dy, 0));
24 for (
int i=1;
i<4;
i++) {
25 float phi = corners[
i].phi();
29 float z = corners[
i].z();
30 if ( z < zmin) zmin =
z;
31 if ( z > zmax) zmax =
z;
34 theZRange.first =
zmin;
35 theZRange.second =
zmax;
36 thePhiRange.first =
phimin;
37 thePhiRange.second =
phimax;
GlobalDetRangeZPhi(const Plane &det)