9 auto bo = computeBounds(dets);
33 float rmin((**(dets.begin())).surface().position().perp());
35 float zmin((**(dets.begin())).surface().position().z());
37 for (vector<const GeomDet*>::const_iterator idet = dets.begin(); idet != dets.end(); idet++) {
47 for (vector<GlobalPoint>::const_iterator
i = corners.begin();
i != corners.end();
i++) {
59 float rdet = (**idet).position().perp();
60 float len = (**idet).surface().bounds().length();
61 float width = (**idet).surface().bounds().width();
67 double xAxisCos =
xAxis.unit().dot(perpDir.
unit());
68 double yAxisCos =
yAxis.unit().dot(perpDir.
unit());
70 if (fabs(xAxisCos) > fabs(yAxisCos)) {
74 rmin =
min(rmin, rdet - len / 2.
F);
75 rmax =
max(rmax, rdet + len / 2.
F);
Local3DVector LocalVector
Global3DPoint GlobalPoint
BoundDisk * operator()(const std::vector< const GeomDet *> &dets) const
std::pair< SimpleDiskBounds *, float > computeBounds(const std::vector< const GeomDet *> &dets) const
static std::vector< GlobalPoint > corners(const Plane &)
Vector3DBase unit() const
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Global3DVector GlobalVector