You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2024. It is now read-only.
As for now, event_number in truth (i.e. the numbers generated by epix) does not correspond to event_number in the event-level data generated by straxen, e.g. event_info. The latter one is generated here:
The result is very misleading since one might select certain events via event_info (testing cuts etc.) and then look for the origin of these events in the truth using event_number. The result will be incorrect.
Here's an example notebook which demonstrates this issue: /dali/lgrandi/pkavrigin/2022-07-18_wfsim_test/2022-07-18_wfsim_test.ipynb
Possible solutions:
Remove event_number from truth. We can use g4id for event grouping, if needed. This way we can at least make sure that nobody tries to match truth to event-level output in a wrong way.
Propagate event_number from truth to event-level output. I do not see a way to do it without modifying straxen, so this is probably not a good idea.
Match events in event-level output to truth using time. It is feasible (and it is the only way to match them right now) but it's not clear if we can add it as some post-processing stage to wfsim.