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 PoolSource parameter to specify run number for each lumi #12753
Add PoolSource parameter to specify run number for each lumi #12753
Conversation
A new Pull Request was created by @wmtan for CMSSW_8_0_X. It involves the following packages: DataFormats/Provenance @cmsbuild, @smuzaffar, @Dr15Jones, @davidlange6 can you please review it and eventually sign? Thanks. Following commands in first line of a comment are recognized
|
Please test |
The tests are being triggered in jenkins. |
@@ -319,6 +365,8 @@ namespace edm { | |||
->setComment("Size of ROOT TTree TBasket cache. Affects performance."); | |||
desc.addUntracked<unsigned int>("setRunNumber", 0U) | |||
->setComment("If non-zero, change number of first run to this number. Apply same offset to all runs. Allowed only for simulation."); | |||
desc.addUntracked<std::vector<unsigned int> >("setRunNumberForEachLumi", std::vector<unsigned int>()) |
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.
Talk with David Dagenhart about how to specify that this new parameter and the setRun can not be used simultaneously.
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.
There already is such protection, but I will talk with David to see if this protection can be done in the descriptions instead.
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.
Yes, this protection can be done in the descriptions. Will do.
9e16b46
to
0a7fee8
Compare
Pull request #12753 was updated. @cmsbuild, @smuzaffar, @Dr15Jones, @davidlange6 can you please check and sign again. |
@Dr15Jones This PR has been redone using a strategy pattern to encapsulate the new (and some old) functionality to enhance maintainability, as per a suggestion from Chris Jones. |
0a7fee8
to
06ad69d
Compare
Pull request #12753 was updated. @cmsbuild, @smuzaffar, @Dr15Jones, @davidlange6 can you please check and sign again. |
Corrected a minor typo. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar |
Add PoolSource parameter to specify run number for each lumi
This PR implements a new parameter "setRunNumberForEachLumi" for PoolSource, which allows a user to specify a new run number for each consecutive lumi in a single run in the simulation input. The run may be split across multiple input files. There must be at least as many entries in the parameter as the number of lumis that are read.
Unit tests for this feature are also implemented.
While implementing this new parameter, I made four synergistic improvements not directly related to the new feature: