From 0f896d3bf79762ffc5a9fe8782a15f92d7823dcf Mon Sep 17 00:00:00 2001 From: Leonhard Reichenbach Date: Fri, 21 Jul 2023 10:12:36 +0200 Subject: [PATCH] OverlayTiming.cc: add overlay flag for SimTrackerHits --- src/OverlayTiming.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OverlayTiming.cc b/src/OverlayTiming.cc index 913b0b7..20b635b 100644 --- a/src/OverlayTiming.cc +++ b/src/OverlayTiming.cc @@ -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); } @@ -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); }