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

Allow xrootd files as inputs to eicrecon #1690

Merged
merged 3 commits into from
Dec 20, 2024
Merged

Allow xrootd files as inputs to eicrecon #1690

merged 3 commits into from
Dec 20, 2024

Conversation

simonge
Copy link
Contributor

@simonge simonge commented Dec 18, 2024

Briefly, what does this PR introduce?

Currently eicrecon has two checks for files existing, neither of which allow the file to be on a remote xrootd server. This PR adapts JEventSourcePODIO.cc so that the first check allows for remote files and (currently) removes the second check.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

tbd

Does this PR change default behavior?

Allows remote files to be passed directly to eicrecon

@simonge
Copy link
Contributor Author

simonge commented Dec 18, 2024

Questions:
Is there a situation in which both checks are required?
Can Open() just do the second check with CheckOpenable()?

@veprbl
Copy link
Member

veprbl commented Dec 20, 2024

After testing this on my side, I think, I understand this better now. The check being removed is seemingly impossible to even trigger as TFile's exception in CheckOpenable happen before it and are not being caught. Thus this change does not modify the current behaviour and does provide promised functionality (streaming from XRootD).

veprbl
veprbl previously approved these changes Dec 20, 2024
Copy link
Member

@veprbl veprbl left a comment

Choose a reason for hiding this comment

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

LGTM

@simonge simonge added this pull request to the merge queue Dec 20, 2024
Merged via the queue into main with commit 78b4c5d Dec 20, 2024
84 of 86 checks passed
@simonge simonge deleted the allow_xrootd_input branch December 20, 2024 08:39
@simonge
Copy link
Contributor Author

simonge commented Dec 20, 2024

Should a test be added for this or is the Jlab XRootD server and file locations potentially too volatile to want to rely on?

@veprbl
Copy link
Member

veprbl commented Dec 20, 2024

You are welcome to add a test. I don't think full simulations are published anymore. There will be some old ones, and reconstruction can be restricted to few detectors that don't rely on [a consistent] geometry being used.

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