Skip to content
Snippets Groups Projects
Commit ace65b25 authored by Volker Friese's avatar Volker Friese Committed by Florian Uhlig
Browse files

Protect STS digitizers against unphysical MCPoint times

parent aec14c0a
No related branches found
No related tags found
1 merge request!669Protect STS digitizers against unphysical MCPoint times
Pipeline #15398 passed
......@@ -628,6 +628,17 @@ void CbmStsDigitize::ProcessMCEvent()
} //? MC track present
} //? discard secondaries
// --- Ignore points with unphysical time
// Such instances were observed using Geant4 in the fairsoft jun19 version.
// The cut at 1 ms from the event start is somehow arbitrary, but should suit the purpose.
// If not cut here, the time range for the StsDigi (2^31 ns) might be exceeded in
// flexible time slices or in event-by-event simulation.
if (point->GetTime() > 1.e6) {
fNofPointsIgno++;
continue;
}
// --- Process the StsPoint
ProcessPoint(point, fCurrentEventTime, link);
fNofPointsProc++;
delete link;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment