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

HepMC3FileReader: fix loading of run info for RootTree HepMC3 input format #1165

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

veprbl
Copy link
Contributor

@veprbl veprbl commented Aug 30, 2023

This is done by actually reading an event instead of skipping one. Skipping may be sufficient for the ASCII reader, however, RootTree reader does not perform a read on skip: https://gitlab.cern.ch/hepmc/HepMC3/-/blob/master/rootIO/src/ReaderRootTree.cc#L76-80

BEGINRELEASENOTES

  • DDG4: HepMC3Input: Fix loading of run info for RootTree HepMC3 input format

ENDRELEASENOTES

Here are a couple files, in case you'd like to test:

cc @simonge

…ormat

This is done by actually reading an event instead of skipping one.
Skipping may be sufficient for the ASCII reader, however, RootTree reader does not perform a read on skip:
https://gitlab.cern.ch/hepmc/HepMC3/-/blob/master/rootIO/src/ReaderRootTree.cc#L76-80
@github-actions
Copy link

Test Results

       6 files         6 suites   6h 25m 6s ⏱️
   358 tests    358 ✔️ 0 💤 0
1 058 runs  1 058 ✔️ 0 💤 0

Results for commit 7a37112.

@andresailer
Copy link
Member

I think I looked at ReaderRoot, which does read something when the file is opened.
https://gitlab.cern.ch/hepmc/HepMC3/-/blob/20fe22b27a0bb7225001b5bd4511e8e14b24c834/rootIO/src/ReaderRoot.cc#L28

But the ReaderRootTree is different.

@andresailer andresailer merged commit ce7bfea into AIDASoft:master Aug 31, 2023
14 checks passed
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