Commit 46851bb8 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Accept particles with p.genStatus() == 0 in MC2DummyParticle and TrackParamTruthInit

parent 263b0a02
......@@ -57,7 +57,8 @@ namespace Jug::Base {
auto relations = m_outputRelCollection.createAndPut();
int ID = 0;
for (const auto& p : *parts) {
if (p.genStatus() != 1) {
if (p.genStatus() > 1) {
debug() << "ignoring particle with genStatus = " << p.genStatus() << endmsg;
continue;
}
......
......@@ -118,7 +118,8 @@ private:
std::vector<RecData> zdc(const dd4pod::Geant4ParticleCollection& mc) {
std::vector<RecData> rc;
for (const auto& part : mc) {
if (part.genStatus() != 1) {
if (part.genStatus() > 1) {
debug() << "ignoring particle with genStatus = " << part.genStatus() << endmsg;
continue;
}
// only detect neutrons and photons
......
......@@ -73,7 +73,8 @@ public:
double best_delta = std::numeric_limits<double>::max();
for (size_t ip = 0; ip < mc.size(); ++ip) {
const auto& mcpart = mc[ip];
if (consumed[ip] || mcpart.genStatus() != 1 || mcpart.charge() == 0 || mcpart.charge() * charge_rec < 0) {
if (consumed[ip] || mcpart.genStatus() > 1 || mcpart.charge() == 0 || mcpart.charge() * charge_rec < 0) {
debug() << "ignoring non-primary/neutral/opposite charge particle" << endmsg;
continue;
}
const double dp_rel = std::abs((mom.mag() - mcpart.ps().mag()) / mcpart.ps().mag());
......
......@@ -82,7 +82,8 @@ namespace Jug::Reco {
for(const auto& part : *mcparts) {
// genStatus = 1 means thrown G4Primary
if(part.genStatus() != 1 ) {
if (part.genStatus() > 1 ) {
debug() << "ignoring particle with genStatus = " << part.genStatus() << endmsg;
continue;
}
using Acts::UnitConstants::GeV;
......
Markdown is supported
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