Skip to content

Commit 2034558

Browse files
sawenzelclaude
andcommitted
Reset the FT0 photon track ids at the end of each event
This fixes hits that depended on the previous event of the same worker. - mTrackIdTop and mTrackIdMCPtop kept their values across events. - A photon in the next event with the same track id then skipped the photo-electron registration. - Both are now reset in Reset(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a3af20d commit 2034558

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Detectors/FIT/FT0/simulation/src/Detector.cxx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1218,6 +1218,8 @@ void Detector::Reset()
12181218
mHits->clear();
12191219
}
12201220
mTrackRefLastTrackID = -1;
1221+
mTrackIdTop = -1;
1222+
mTrackIdMCPtop = -1;
12211223
}
12221224

12231225
void Detector::CreateMaterials()

0 commit comments

Comments
 (0)