From bf1b3b17c888eb77dff1c82e22b16bd4c452a4ac Mon Sep 17 00:00:00 2001 From: Xiaocong Ai <xiaocong.ai@cern.ch> Date: Wed, 25 Sep 2024 08:57:20 +0200 Subject: [PATCH] printout acts tracking geometry surface info in verbose mode --- .../src/FaserActsTrackingGeometrySvc.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tracking/Acts/FaserActsGeometry/src/FaserActsTrackingGeometrySvc.cxx b/Tracking/Acts/FaserActsGeometry/src/FaserActsTrackingGeometrySvc.cxx index 59d1d0ed8..5351b2976 100644 --- a/Tracking/Acts/FaserActsGeometry/src/FaserActsTrackingGeometrySvc.cxx +++ b/Tracking/Acts/FaserActsGeometry/src/FaserActsTrackingGeometrySvc.cxx @@ -127,6 +127,14 @@ FaserActsTrackingGeometrySvc::initialize() m_trackingGeometry = trackingGeometryBuilder ->trackingGeometry(constructionContext.context()); + ATH_MSG_VERBOSE("Printing info of ACTS tracking geometry surface:"); + m_trackingGeometry->visitSurfaces([&](const Acts::Surface* surface) { + auto center = surface->center(constructionContext.context()); + auto rotation = surface->transform(constructionContext.context()).rotation(); + ATH_MSG_VERBOSE("ACTS surface " << surface->geometryId() << " has center " << center.transpose() << ", local X axis at " << rotation.col(0).transpose() <<", local Z axis at " << rotation.col(2).transpose()); + } + ); + ATH_MSG_VERBOSE("Building nominal alignment store"); FaserActsAlignmentStore* nominalAlignmentStore = new FaserActsAlignmentStore(); ATH_MSG_VERBOSE("finish Building nominal alignment store"); -- GitLab