Commit 6747eef
Publish an empty timeframe from the generic tree reader too
This lets the detector publishers built on RootTreeReader follow the same
policy as the hand-written reader specs, and guards the consumer that broke
once they do.
- RootTreeReader published nothing when its tree had no entry, so the EMCAL
cells never reached the AOD producer and no AOD was written for a timeframe
without collisions.
- It now publishes one default-constructed object per branch and then stops.
The object is real, so a registered publishing hook still works.
- Looping over a tree without entries published nothing forever; it now ends.
- SVertexer took vtxRefs.size() - 1 as the number of vertices, which wrapped
around once the primary vertex reader sent an empty vector.
https://its.cern.ch/jira/browse/O2-7132
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent ce7127e commit 6747eef
2 files changed
Lines changed: 39 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
467 | 469 | | |
468 | 470 | | |
469 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
308 | 312 | | |
309 | | - | |
310 | | - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
311 | 323 | | |
312 | 324 | | |
313 | 325 | | |
| |||
317 | 329 | | |
318 | 330 | | |
319 | 331 | | |
320 | | - | |
321 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
322 | 336 | | |
323 | 337 | | |
324 | 338 | | |
| |||
345 | 359 | | |
346 | 360 | | |
347 | 361 | | |
348 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
349 | 365 | | |
350 | 366 | | |
351 | 367 | | |
| |||
412 | 428 | | |
413 | 429 | | |
414 | 430 | | |
415 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
416 | 441 | | |
417 | 442 | | |
418 | 443 | | |
| |||
458 | 483 | | |
459 | 484 | | |
460 | 485 | | |
461 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
462 | 491 | | |
463 | 492 | | |
464 | 493 | | |
| |||
0 commit comments