564 int num_transformed = 0;
579 result =
GlobalPoint(chamberPos.
x() +
point->displacement.x(), chamberPos.
y() +
point->displacement.y(), chamberPos.
z() +
point->displacement.z());
595 CSCDetId id(cscid.endcap(), cscid.station(), cscid.ring(), cscid.chamber());
599 else { assert(
false); }
604 result =
GlobalPoint(chamberPos.
x() + transformed.
x(), chamberPos.
y() + transformed.
y(), chamberPos.
z() + transformed.
z());
607 else { assert(
false); }
616 result =
GlobalPoint(transformed.
x(), transformed.
y(), transformed.
z());
625 result =
GlobalPoint(transformed.
x(), transformed.
y(), transformed.
z());
629 CSCDetId id(cscid.endcap(), cscid.station(), cscid.ring(), cscid.chamber());
633 result =
GlobalPoint(transformed.x(), transformed.y(), transformed.z());
635 else { assert(
false); }
639 result =
point->outputCustomFrame->transformInverse(result);
643 output <<
prefix <<
" " <<
point->name <<
" " <<
point->detName() <<
" " << result.
x() <<
" " << result.
y() <<
" " << result.
z();
646 if (
point->has_expectation) {
648 double residx = result.
x() -
point->expectation.x();
649 double residy = result.
y() -
point->expectation.y();
650 double residz = result.
z() -
point->expectation.z();
655 output <<
" BAD " << residx <<
" " << residy <<
" " << residz << std::endl;
658 output <<
" GOOD " << residx <<
" " << residy <<
" " << residz << std::endl;
662 output <<
" UNTESTED 0 0 0" << std::endl;
670 std::cout << std::endl <<
"SUMMARY transformed: " << num_transformed <<
" tested: " << num_tested <<
" bad: " << num_bad <<
" good: " << (num_tested - num_bad) << std::endl;
std::vector< MuonGeometrySanityCheckPoint > m_points
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Point3DBase< Scalar, LocalTag > LocalPoint
virtual const GeomDet * idToDet(DetId) const override
Global3DPoint GlobalPoint
const Plane & surface() const
The nominal surface of the GeomDet.
LocalPoint toLocal(const GlobalPoint &gp) const
virtual const GeomDet * idToDet(DetId) const override
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point