From 758ba5e464f687d30c1e767643ce4e0246b4a0d4 Mon Sep 17 00:00:00 2001 From: Braulio Rivas Abad Date: Mon, 6 May 2024 09:05:55 -0500 Subject: [PATCH] print particle name --- js/tools.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/tools.js b/js/tools.js index 8b0df0d7..ef175a92 100644 --- a/js/tools.js +++ b/js/tools.js @@ -121,7 +121,10 @@ export function loadMCParticles(jsonData, eventNum, function getName(pdg) { const particle = mappings[pdg]; - if (particle !== undefined) return particle; + if (particle !== undefined) { + console.log("Name: " + particle); + return particle + }; console.log("PDG: " + pdg.toString()); return "PDG: " + pdg.toString();