13 pair<DiskSectorBounds*, GlobalVector> computeBounds(
const vector<const GeomDet*>& dets,
const Plane& plane) {
23 for (vector<const GeomDet*>::const_iterator it = dets.begin(); it != dets.end(); it++) {
26 for (vector<GlobalPoint>::const_iterator
i = corners.begin();
i != corners.end();
i++) {
43 float rdet = (*it)->position().perp();
44 float height = (*it)->surface().bounds().width();
45 rmin =
min(rmin, rdet - height / 2.
F);
46 rmax =
max(rmax, rdet + height / 2.
F);
50 edm::LogError(
"TkDetLayers") <<
" BladeShapeBuilderFromDet : "
51 <<
"Something went wrong with Phi Sorting !";
55 float rmed = (rmin + rmax) / 2.;
69 LogDebug(
"TkDetLayers") <<
"localPos in computeBounds: " << localPos <<
"\n"
70 <<
"rmin: " << rmin <<
"\n"
71 <<
"rmax: " << rmax <<
"\n"
72 <<
"zmin: " <<
zmin <<
"\n"
73 <<
"zmax: " <<
zmax <<
"\n"
74 <<
"phiWin: " << phiWin;
80 const Plane& plane = dets.front()->surface();
89 if (planePosition.
x() * planeXAxis.
x() + planePosition.
y() * planeXAxis.
y() > 0.) {
96 if (planeZAxis.
z() * planePosition.
z() > 0.) {
113 for (vector<const GeomDet*>::const_iterator
i = dets.begin();
i != dets.end();
i++) {
114 posSum += (**i).surface().position().basicVector();
122 auto bo = computeBounds(dets, tmpPlane);