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
Update the convertToRaw
script
#39047
Conversation
Add the -r/--range option to restrict the processing to a range of runs and lumisections.
please test |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39047/31538
|
A new Pull Request was created by @fwyzard (Andrea Bocci) for master. It involves the following packages:
@Martin-Grunewald, @missirol can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-689334/26793/summary.html Comparison SummarySummary:
|
+hlt |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
events_per_file = 50 | ||
events_per_lumi = 11650 | ||
events_per_file = 100 | ||
events_per_lumi = 11655 |
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.
Just for my education: how was 11655
chosen?
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.
That's how many events we can expect an HLT node to process in each lumisection under nominal conditions: 100 kHz / 200 nodes × 23.31 s = 11655 events
After processing each run, write a cff.py file with the Source and the necessary Services to process the converted files. Improve the handling of the output and exit status of the subprocesses, and add a -v/--verbose option to print additional message while preprocessing and converting the input files.
8317e73
to
9a4b207
Compare
Fixed the case where the output has a single .raw file. |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39047/31547
|
Pull request #39047 was updated. @Martin-Grunewald, @missirol can you please check and sign again. |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-689334/26801/summary.html Comparison SummarySummary:
|
f.close() | ||
with open(eor_file, 'w') as file: | ||
file.write('{\n "data" : [ "%d", "%d", "%d", "%d" ],\n "definition" : "%s",\n "source" : "%s"\n}\n' % (summary['data'][0], summary['data'][1], summary['data'][2], summary['data'][3], summary['definition'], summary['source'])) | ||
file.close() |
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.
I thought with-open-as takes care of closing the file (so close
wouldnt be needed).
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.
it does, but I don't mind doing it explicitly
from EventFilter.Utilities.FastMonitoringService_cfi import FastMonitoringService as _FastMonitoringService | ||
FastMonitoringService = _FastMonitoringService.clone() | ||
""" % ('\n'.join(" '" + f + "'," for f in converted_files), args.output_directory, run)) | ||
file.close() |
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.
I thought with-open-as takes care of closing the file (so close
wouldnt be needed).
+hlt Review comment is minor. |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Update the
convertToRaw
script:run####_cff.py
file with the Source and Services to process the converted files;-r
/--range
option to restrict the processing to a range of runs and lumisections;-v/--verbose
option to print additional message while preprocessing and converting the input files.PR validation:
The new version runs and selects lumisections correctly.
Here is a sample output from running
convertToRaw
over one .root file:And the corresponding
/gpu_data/store/data/Run2022C/HLTPhysics/FED/v1/run357329_cff.py
file:If this PR will be backported please specify to which release cycle the backport is meant for:
To be backported to 12.4.x to convert data for use by the HLT.
See #39048.