-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Replace reference to ParameterSet with explicit parameter values in HBHEDarkening #42528
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-42528/36541
|
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages:
@perrotta, @consuegs, @cmsbuild, @saumyaphor4252, @francescobrivio, @tvami can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
-1 Failed Tests: RelVals-INPUT RelVals-INPUTThe relvals timed out after 4 hours. Comparison SummarySummary:
|
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5e0c20/34236/summary.html Comparison SummarySummary:
|
for (const auto& p_dosemap : dosemaps_) { | ||
dosemaps.emplace(p_dosemap.file_energy, HBHEDarkening::readDoseMap(p_dosemap.fp.fullPath())); |
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.
Maybe this is stupid question (in that case sorry!), but why do you need to define a dosemaps_
private member, fill it in the constructor, and here define another object "reading the dose" from the filepath stored in dosemaps_
?
Couldn't you just use HBHEDarkening::readDoseMap(filePath)
directly in the constuctor (modifying the dosemaps_
definition to std::map<int, std::vector<std::vector<float>>>
, of course) and just use it here?
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.
Couldn't you just use
HBHEDarkening::readDoseMap(filePath)
directly in the constuctor (modifying thedosemaps_
definition tostd::map<int, std::vector<std::vector<float>>>
, of course) and just use it here?
I could, but not knowing how much memory that would take, I didn't want to. In this way the file is also read only if some other module in the job actually consumes HBHEDarkening
.
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.
ok makes sense, thanks Matti!
+1
|
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, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR replaces a reference to
edm::ParameterSet
with explicitly parsed data structures for the configuration parameters. This change is needed for #42503.Resolves cms-sw/framework-team#621
PR validation:
Code compiles.