Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jun 20, 2024
1 parent edb9c9b commit 89dc50e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/src/CompareEDM4hepLCIO.cc
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,17 @@ bool compare(const EVENT::Track* lcioElem, const edm4hep::Track& edm4hepElem, co
if (radius == std::numeric_limits<double>::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");
}
Expand Down

0 comments on commit 89dc50e

Please sign in to comment.