From 84c73be778baf48888cc08819497b39c862bc0f4 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Thu, 16 May 2024 16:48:59 +0200 Subject: [PATCH] Add test --- test/utils/test_PIDHandler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/utils/test_PIDHandler.cpp b/test/utils/test_PIDHandler.cpp index a38680f29..9e60195d5 100644 --- a/test/utils/test_PIDHandler.cpp +++ b/test/utils/test_PIDHandler.cpp @@ -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;