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: small fix of HcalTBSource #38910
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38910/31351
|
A new Pull Request was created by @abdoulline (Salavat Abdullin) for master. It involves the following packages:
@malbouis, @yuanchao, @cmsbuild, @francescobrivio, @ChrisMisan, @tvami can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
type hcal, bug-fix |
please test |
m_i = m_skip; | ||
|
||
if (m_skip != 0) | ||
edm::LogWarning("HcalTBSource: skipEvents != 0 works only for the first input file ") << std::endl; |
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.
edm::LogWarning("HcalTBSource: skipEvents != 0 works only for the first input file ") << std::endl; | |
edm::LogWarning("HcalTBSource") << "skipEvents != 0 works only for the first input file"; |
- this is the correct structure
- you dont need
std::endl
, theLogWarning
takes care of that
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.
Sorry, as a (frequent) user of sdt::cout (during debugging) added it kind of "automatically"... Now has removed.
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4a2336/26556/summary.html Comparison SummarySummary:
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38910/31361
|
Pull request #38910 was updated. @malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please check and sign again. |
m_i = m_skip; | ||
|
||
if (m_skip != 0) | ||
edm::LogWarning("HcalTBSource: skipEvents != 0 works only for the first input file "); |
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.
edm::LogWarning("HcalTBSource: skipEvents != 0 works only for the first input file "); | |
edm::LogWarning("HcalTBSource") << "skipEvents != 0 works only for the first input file"; |
haha
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.
You only dealt with half of what I suggested earlier :)
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.
@abdoulline also, can you please squash these 3 commits now into 1? 3 commits changing 1 file is not great :) Thanks
@tvami I've got with ! [rejected] fix_HcalTBSource -> fix_HcalTBSource (non-fast-forward) Probably better would be to close this PR and (re)submit it properly... |
@abdoulline this is because you need to do a force push after squashing. |
|
523e71b
to
1ad781f
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38910/31369
|
Pull request #38910 was updated. @malbouis, @yuanchao, @cmsbuild, @saumyaphor4252, @francescobrivio, @ChrisMisan, @tvami can you please check and sign again. |
@cmsbuild , please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4a2336/26575/summary.html Comparison SummarySummary:
|
+alca
Maybe you could implement a unit test for next time? |
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:
Fixes a handling of skipEvents parameter
which functionally is similar to that of PoolSource, but specific for HcalTBSource producer.
Used for processing of HCAL local runs (pedestals, led, laser etc.)
PR validation:
As this code is not used in any standard workflow, just for reading HCAL local runs data,
checked by me and one of my colleagues in private.
NB: this is not a backport