Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored and tmadlener committed Jul 2, 2024
1 parent a391472 commit 3e4d903
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 @@ -323,6 +323,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 3e4d903

Please sign in to comment.