-
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
FastTimerService: removed explicit calls to MonitorElement::getTH1 #32726
FastTimerService: removed explicit calls to MonitorElement::getTH1 #32726
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32726/20867
|
A new Pull Request was created by @missirol (Marino Missiroli) for master. It involves the following packages: HLTrigger/Timer @Martin-Grunewald, @cmsbuild, @fwyzard can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f06192/12500/summary.html Comparison SummarySummary:
|
Thanks @missirol ! |
+1 |
(1) seems like a magic number, how about (kTrue) as used in other PRs? |
Good point, Martin. I thought it might be better to use the same type as required by the function ( cmssw/DQMServices/Core/src/MonitorElement.cc Line 907 in dc7bcc5
It's not clear to me why void MonitorElement::setStatOverflows(unsigned int value) {
auto access = this->accessMut();
if (value == 0)
access.value.object_->SetStatOverflows(TH1::kIgnore);
else if (value == 1)
access.value.object_->SetStatOverflows(TH1::kConsider);
else if (value == 2)
access.value.object_->SetStatOverflows(TH1::kNeutral);
else
WARNING
} (see: https://root.cern.ch/doc/v622/classTH1.html#a476f6c171ecaad7e811fd615e8a2468a) @jfernan2 do you have any suggestions? Anyways, I can certainly change to |
IMHO, kNeutral option is misleading and we should avoid it since the global flag in CMSSW is unclear: behaviour should be to consider overflows or not. I sticked to kTrue since it implied the least number of modifications around: but I am open to suggestions and to move everything to numbers. I don't have a strong preference |
Hi @jfernan2 , thanks for your comment. I don't have a strong opinion either, here are just my 2 cents:
The only weak spot I see in the current impl is that if someone mistakenly calls My 2 cents aside, unless there are other comments on this by you or others, later today I will change this to |
This is what seems to make the most sense to me. |
please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32726/20883
|
Pull request #32726 was updated. @Martin-Grunewald, @fwyzard can you please check and sign again. |
In agreement with discussion on: cms-sw#32726 (comment)
I have created: |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-f06192/12519/summary.html Comparison SummarySummary:
|
+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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR is a simple follow-up to #32343 (see this comment): now that the
MonitorElement::setStatOverflows
implementation has been updated in #32364, it is possible to remove explicit calls togetTH1()
in theFastTimerService
, in compliance with DQM recommendations.No changes expected (this is only a change in syntax).
FYI: @jfernan2
PR validation:
Code compiles.