-
Notifications
You must be signed in to change notification settings - Fork 9
Mismatch in event_number #394
Comments
@PavelKavrigin , you can use pema for this purpose: It basically implements your third option You can checkout an example notebook here: |
Thanks! But I think we still need to remove event_number from truth to avoid confusion unless we add this matching using pema as a default option in wfsim. |
Hi Pavel, yeah I see the point in that, it's super frustrating if two things look the same but mean something completely different. Perhaps just renaming the event_number -> sim_number is indeed a good idea. The g4id is not used for the default (non-epix) simulation. |
I was trying to use truth_events from pema to do the matching, and it failed with this assertion:
I've checked the output, and we do indeed have interactions in truth where time equals endtime. Is this a bug or are they allowed to be equal? |
I think this could be an issue in WFSim, probably we should make sure that |
In all of these suspicious events there are no electrons and no photons, but amp is non-zero. |
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:
https://github.com/XENONnT/straxen/blob/f6e0966e3d78c7e663f7cd4caca2eff32b12643e/straxen/plugins/event_processing.py#L127
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:
@ramirezdiego @terliuk @petergaemers @shenyangshi - Any ideas?
The text was updated successfully, but these errors were encountered: