Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 10, 2024
1 parent 0fd95d4 commit 12c3131
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/utils/test_PIDHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ void checkHandlerValidReco(const edm4hep::utils::PIDHandler& handler, const edm4
}
}

TEST_CASE("ParticleIDMeta constructor") {
using namespace edm4hep::utils;

ParticleIDMeta pidMeta{"name", {}};
REQUIRE(pidMeta.algoName == "name");
REQUIRE(pidMeta.algoType() == -609270800); // 32 bit MurmurHash3 of "name"
}

TEST_CASE("PIDHandler basics", "[pid_utils]") {
using namespace edm4hep;

Expand Down

0 comments on commit 12c3131

Please sign in to comment.