Skip to content

Commit

Permalink
Make comparisons a bit easier to read
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Sep 9, 2024
1 parent d5e81eb commit e3af620
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/MarlinMCRecoLinkChecker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ void MarlinMCRecoLinkChecker::processEvent(LCEvent* evt) {
std::to_string(i) + ", actual: " + std::to_string(rel->getWeight()) + ")");
}

if (!(rel->getTo() == mc)) {
if (rel->getTo() != mc) {
throw std::runtime_error("Relation " + std::to_string(i) + " does not point to the correct MCParticle");
}

if (!(rel->getFrom() == reco)) {
if (rel->getFrom() != reco) {
throw std::runtime_error("Relation " + std::to_string(i) + " does not point to the correct MCParticle");
}
}
Expand Down

0 comments on commit e3af620

Please sign in to comment.