Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the event number 64 bits and unsigned #398

Merged
merged 5 commits into from
Jan 31, 2025

Conversation

tmadlener
Copy link
Contributor

BEGINRELEASENOTES

  • Make the EventHeader::eventNumber a 64 bit unsigned integer to avoid issues with the range of 32 bit integers.

ENDRELEASENOTES

This is another small fix that came out of the discussion with HepMC folks (and their experience from LHC). We are likely to run into issues with the range of 32 bit integers and the exepected event numbers. LHC is going beyond 32 bit range already in long runs.

@tmadlener
Copy link
Contributor Author

This breaks backwards compatibility for RNTuple as that does not have the necessary schema evolution support to do this on the fly (at least for RC2 of RNTuple).

@jmcarcell
Copy link
Member

But I guess it's quite unlikely someone has RNTuples files and a file with event headers at the same time. So recreate the RNTuple file for version 0.99 with a 64 bit event number? It will be unreadable by EDM4hep 0.99, but is that even going to happen?

@tmadlener
Copy link
Contributor Author

So recreate the RNTuple file for version 0.99 with a 64 bit event number?

Yes that is also what I would do. We should also go to the release RNTuple format there, i.e. ROOT >= 6.34, I think.

Likely to run into issues with the range of 32 bit integers and the
exepected event numbers. LHC is going beyond 32 bit range already in
long runs.
edm4hep.yaml Outdated Show resolved Hide resolved
Copy link
Member

@jmcarcell jmcarcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is nothing left to do in this one. I think the check for the version of ROOT greater or equal than 6.34 is better than the previous check (below 6.33), which would have meant that the test would have stopped running forever until someone noticed. Related to this PR, maybe we could review some of the int32_t that are in other types in EDM4hep.

@jmcarcell jmcarcell merged commit 5219b52 into key4hep:main Jan 31, 2025
8 of 10 checks passed
@tmadlener tmadlener deleted the event-number-u64 branch January 31, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants