Commit 43df410
Finish detector events before sending hits in parallel o2-sim
This fixes the order in which a parallel o2-sim worker finalizes and sends the hits of an event.
- Detectors ran FinishEvent after SendData, while serial o2-sim (FairMCApplication) runs it before filling the output.
- TRD sorts its hits in FinishEvent, and PHOS and CPV sort them and sum duplicates.
- With TMessage transport their hits were written unsorted and, for PHOS and CPV, with duplicates.
- With shared memory the merger read the buffers while the worker rewrote them, so TRD output differed between the two transports.
- FinishEvent now runs for all detectors before SendData, and EndOfEvent after it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 745cb1a commit 43df410
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
62 | | - | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
0 commit comments