Skip to content

Add sanity checks to BuildIndex() in case of multiple events matching the keys #18963

@TomasDado

Description

@TomasDado

Explain what you would like to see improved and how.

Hi,

currently, if there are mutiple events with the same matching criteria for BuildIndex() with e.g. the same eventNumbers and runNumbers, the code wil not produce any error or warning. However, its almost guaranteed that the output of the code will not be what is expected.

Please note, that this is not a hypothetical issues, we have seen this in ATLAS in many cases and although it was related to limitations of the ATLAS pipelines, there should be some safe guards on the ROOT side.

THe suggestion is to simply throw an error or at least print a warning when during the creation of the hash map for the matching of events a duplicate entry is found.

ROOT version

any

Installation method

any

Operating system

any

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions