Skip to content

Commit

Permalink
fix TRUTH photon construction
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Dobbs committed Dec 2, 2021
1 parent 05911b6 commit 7e2cf72
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/libraries/PID/DBeamPhoton_factory_TRUTH.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 7e2cf72

Please sign in to comment.