Commit e8910de
Let the TPC digitiser accept a timeframe without collisions
This fixes a crash of the TPC digitiser when a timeframe holds no collision.
- process() returned as soon as the collision context was empty, so with
--tpc-chunked-writer, which is what the MC workflow uses, the caller then
wrote through a null tree pointer and the device segfaulted.
- The sector now runs through its normal final flush and writes one empty
entry, giving the digit file the shape of an ordinary timeframe that happens
to contain nothing.
- setStartTime read the first interaction record without checking that there
is one.
https://its.cern.ch/jira/browse/O2-7132
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 998e066 commit e8910de
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
290 | 294 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
| |||
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
414 | | - | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
415 | 418 | | |
416 | 419 | | |
417 | 420 | | |
| |||
0 commit comments