Skip to content

Commit

Permalink
OverlayTiming.cc: add overlay flag for SimTrackerHits
Browse files Browse the repository at this point in the history
  • Loading branch information
Zehvogel authored and tmadlener committed Jul 21, 2023
1 parent 50c35d3 commit 0f896d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/OverlayTiming.cc
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ namespace overlay {
if (((TrackerHit->getTime() + time_offset) > (this_start + _time_of_flight)) && ((TrackerHit->getTime() + time_offset) < (this_stop + _time_of_flight)))
{
TrackerHit->setTime( TrackerHit->getTime() + time_offset);
TrackerHit->setOverlay(true);
dest_collection->addElement(TrackerHit);
source_collection->removeElementAt(k);
}
Expand All @@ -741,6 +742,7 @@ namespace overlay {
ort[2] = TrackerHit->getPosition()[2] + time_offset * _tpcVdrift_mm_ns;
}
TrackerHit->setPosition(ort);
TrackerHit->setOverlay(true);
dest_collection->addElement(TrackerHit);
source_collection->removeElementAt(k);
}
Expand Down

0 comments on commit 0f896d3

Please sign in to comment.