Definition at line 582 of file MuonGeometrySanityCheck.cc.
References CSCDetId::chamber(), gather_cfg::cout, MuonSubdetId::CSC, DEFINE_FWK_MODULE, MuonSubdetId::DT, dt, CSCDetId::endcap(), edm::EventSetup::get(), triggerObjects_cff::id, DTGeometry::idToDet(), CSCGeometry::idToDet(), MuonGeometrySanityCheckPoint::kChamber, MuonGeometrySanityCheckPoint::kCustom, MuonGeometrySanityCheckPoint::kGlobal, MuonGeometrySanityCheckPoint::kLocal, convertSQLitetoXML_cfg::output, point, ZMuMuAnalysisNtupler_cff::prefix, mps_fire::result, CSCDetId::ring(), CSCDetId::station(), AlCaHLTBitMon_QueryRunRegistry::string, GeomDet::surface(), Surface::toGlobal(), tolerance, GloballyPositioned< T >::toLocal(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and PV3DBase< T, PVType, FrameType >::z().
589 int num_transformed = 0;
608 chamberPos.
y() +
point->displacement.y(),
609 chamberPos.
z() +
point->displacement.z());
634 CSCDetId id(cscid.endcap(), cscid.station(), cscid.ring(), cscid.chamber());
649 chamberPos.
x() + transformed.
x(), chamberPos.
y() + transformed.
y(), chamberPos.
z() + transformed.
z());
666 result =
GlobalPoint(transformed.
x(), transformed.
y(), transformed.
z());
677 result =
GlobalPoint(transformed.
x(), transformed.
y(), transformed.
z());
680 CSCDetId id(cscid.endcap(), cscid.station(), cscid.ring(), cscid.chamber());
686 result =
GlobalPoint(transformed.x(), transformed.y(), transformed.z());
693 result =
point->outputCustomFrame->transformInverse(result);
697 output <<
prefix <<
" " <<
point->name <<
" " <<
point->detName() <<
" " << result.
x() <<
" " << result.
y() <<
" " 701 if (
point->has_expectation) {
703 double residx = result.
x() -
point->expectation.x();
704 double residy = result.
y() -
point->expectation.y();
705 double residz = result.
z() -
point->expectation.z();
710 output <<
" BAD " << residx <<
" " << residy <<
" " << residz << std::endl;
712 output <<
" GOOD " << residx <<
" " << residy <<
" " << residz << std::endl;
715 output <<
" UNTESTED 0 0 0" << std::endl;
724 <<
"SUMMARY transformed: " << num_transformed <<
" tested: " << num_tested <<
" bad: " << num_bad
725 <<
" good: " << (num_tested - num_bad) << std::endl;
std::vector< MuonGeometrySanityCheckPoint > m_points
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Point3DBase< Scalar, LocalTag > LocalPoint
const GeomDet * idToDet(DetId) const override
Global3DPoint GlobalPoint
const Plane & surface() const
The nominal surface of the GeomDet.
LocalPoint toLocal(const GlobalPoint &gp) const
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