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();
70 if (fabs(xAxisCos) > fabs(yAxisCos)) {
71 rmin =
min(rmin, rdet - width / 2.
F);
72 rmax =
max(rmax, rdet + width / 2.
F);
74 rmin =
min(rmin, rdet - len / 2.
F);
75 rmax =
max(rmax, rdet + len / 2.
F);
79 float zPos = (zmax +
zmin) / 2.;
BoundDisk * operator()(const std::vector< const GeomDet * > &dets) const
Local3DVector LocalVector
Global3DPoint GlobalPoint
PreciseFloatType< T, U >::Type dot(const Vector3DBase< U, FrameTag > &v) const
std::pair< SimpleDiskBounds *, float > computeBounds(const std::vector< const GeomDet * > &dets) const
Vector3DBase unit() const
static std::vector< GlobalPoint > corners(const Plane &)
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Global3DVector GlobalVector