Skip to content

Commit

Permalink
print particle name
Browse files Browse the repository at this point in the history
  • Loading branch information
brauliorivas committed May 6, 2024
1 parent bb2f39f commit 758ba5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 758ba5e

Please sign in to comment.