Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

Mismatch in event_number #394

@PavelKavrigin

Description

@PavelKavrigin

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:

  • 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.

@ramirezdiego @terliuk @petergaemers @shenyangshi - Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions