-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add helper function for reading epoch and effarea #211
Conversation
Could you change also the integration test (after lines
Does this actually work with the changes you have applied? e.g.,
Meaning only one argument for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See below, this is important to find the anasum file.
utils/query_anasum_runparameters.py
Outdated
Tuple | ||
epoch and effective area | ||
''' | ||
file = up.open(f"./{run}.anasum.root") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this read a local file only? Can we change this so that the full file path (directory + file name) of the anasum file is the function argument?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
What is going wrong?
gives me
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good (and we've tested it).
Adding a small function to read out epoch and effective area from the anasum.root files using uproot. This avoids using the
printAnasumRunParameter
in the V2DL3 run script for containerized use with HTCondor.