From 7e2cf72d90c422bd029437f656a703b9b0c8e4b3 Mon Sep 17 00:00:00 2001 From: Sean Dobbs Date: Thu, 2 Dec 2021 14:25:00 -0500 Subject: [PATCH] fix TRUTH photon construction --- src/libraries/PID/DBeamPhoton_factory_TRUTH.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/libraries/PID/DBeamPhoton_factory_TRUTH.cc b/src/libraries/PID/DBeamPhoton_factory_TRUTH.cc index c2f1e29ea..a4cd636f2 100644 --- a/src/libraries/PID/DBeamPhoton_factory_TRUTH.cc +++ b/src/libraries/PID/DBeamPhoton_factory_TRUTH.cc @@ -51,10 +51,7 @@ jerror_t DBeamPhoton_factory_TRUTH::evnt(jana::JEventLoop *locEventLoop, uint64_ gamma->setMomentum(mom); gamma->setPosition(pos); gamma->setTime(tagm_hits[ih]->t); - if(gamma->dCounter == 0) // handle photons from simulation that miss tagger counters - gamma->dSystem = SYS_NULL; - else - gamma->dSystem = SYS_TAGM; + gamma->dSystem = SYS_TAGM; gamma->dCounter = tagm_hits[ih]->column; gamma->AddAssociatedObject(tagm_hits[ih]); _data.push_back(gamma); @@ -70,10 +67,7 @@ jerror_t DBeamPhoton_factory_TRUTH::evnt(jana::JEventLoop *locEventLoop, uint64_ gamma->setMomentum(mom); gamma->setPosition(pos); gamma->setTime(tagh_hits[ih]->t); - if(gamma->dCounter == 0) // handle photons from simulation that miss tagger counters - gamma->dSystem = SYS_NULL; - else - gamma->dSystem = SYS_TAGH; + gamma->dSystem = SYS_TAGH; gamma->dCounter = tagh_hits[ih]->counter_id; gamma->AddAssociatedObject(tagh_hits[ih]); _data.push_back(gamma);