From 3e4d90355eb54a38498cc332b06a05b4b9d62e0d Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Thu, 20 Jun 2024 18:57:26 +0200 Subject: [PATCH] Fix pre-commit --- tests/src/CompareEDM4hepLCIO.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/src/CompareEDM4hepLCIO.cc b/tests/src/CompareEDM4hepLCIO.cc index 1de7625..5f9bf2a 100644 --- a/tests/src/CompareEDM4hepLCIO.cc +++ b/tests/src/CompareEDM4hepLCIO.cc @@ -323,6 +323,17 @@ bool compare(const EVENT::Track* lcioElem, const edm4hep::Track& edm4hepElem, co if (radius == std::numeric_limits::max()) { radius = 0; } + std::cout << lcioElem->getRadiusOfInnermostHit() << " " << lcioElem->getTrackerHits().size() << std::endl; + std::cout << radius << " " << edm4hepElem.getTrackerHits().size() << std::endl; + if (lcioElem->getTrackerHits().size()) { + for (const auto* hit : lcioElem->getTrackerHits()) { + std::cout << std::sqrt(hit->getPosition()[0] * hit->getPosition()[0] + + hit->getPosition()[1] * hit->getPosition()[1]) + << std::sqrt(hit->getPosition()[0] * hit->getPosition()[0] + + hit->getPosition()[1] * hit->getPosition()[1] + + hit->getPosition()[2] * hit->getPosition()[2]) + << hit->getQuality() << " " << hit->getType() << std::endl; + } ASSERT_COMPARE_VALS_FLOAT(lcioElem->getRadiusOfInnermostHit(), radius, lcioElem->getRadiusOfInnermostHit() / 1e6, "radiusOfInnermostHit in Track"); }