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
HCAL HcalTBSource: adding skipEvents parameter #37058
Conversation
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37058/28506
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
Strange. I did run scram build code-format... |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-37058/28507
|
A new Pull Request was created by @abdoulline (Salavat Abdullin) for master. It involves the following packages:
@cmsbuild, @malbouis, @tvami, @yuanchao, @francescobrivio can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Hi @abdoulline sorry I'm not sure I understand why this needs to be in the cc code. IIRC the cmsDriver based configs have the skip event option, i.e what you do here can be done at the config level, no? I mean the |
@cmsbuild , please test |
@tvami actually it's a "private" HCAL code (initially created/intended for the test beam of detector prototypes) used mostly locally for HCAL prompt feedback data analysis. So mimicking regular PoolSource "skipEvents" parameter is quite convenient for using this kind of fragment in config. E.g. to select specified events from HCAL local run. process.source = cms.Source("HcalTBSource", NB: recently some colleagues started using it as shown above and found this didn't work, so I've just "parched" the code to make it work... |
@abdoulline I see, thanks for the explanation. I was wondering if you were interested in adding a unit test that runs this code in the Jenkins? |
@tvami this code is not running in any wf, it's a specialized input source code, which is all the time used in HCAL, so don't think it needs a unit test. |
@cmsbuild , please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-74ccdd/22655/summary.html Comparison SummarySummary:
|
+alca |
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 (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Minor amendment to HCAL proprietary HcalTBSource in a way similar to regular source "skipEvents" for analysis convenience.
PR validation:
runTheMatrix -l limited