Commit 358b5dc9 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

don't call unmatched charged clusters 'photons'

parent 80c7bd0d
......@@ -119,14 +119,14 @@ public:
<< endmsg;
}
// get mass/PID from mcparticles, photon in case the matched particle is charged.
// get mass/PID from mcparticles, 0 (unidentified) in case the matched particle is charged.
const auto& mc = mcparticles[mcID.value];
const double mass = (!mc.charge()) ? mc.mass() : 0;
const int32_t pid = (!mc.charge()) ? mc.pdgID() : 22;
const int32_t pid = (!mc.charge()) ? mc.pdgID() : 0;
if (msgLevel(MSG::DEBUG)) {
if (mc.charge()) {
debug() << " --> associated mcparticle is not a neutral (PID: " << mc.pdgID()
<< "), setting the reconstructed particle ID to photon" << endmsg;
<< "), setting the reconstructed particle ID to 0 (unidentified)" << endmsg;
}
debug() << " --> found matching associated mcparticle with PID: " << pid << ", energy: " << mc.energy()
<< endmsg;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment