-
Notifications
You must be signed in to change notification settings - Fork 4.6k
HCAL: Move HF fine-grain thresholds to conditions #49012
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
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49012/46202
|
A new Pull Request was created by @konpas17 for master. It involves the following packages:
@BenjaminRS, @arunhep, @atpathak, @cmsbuild, @perrotta, @quinnanm can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild please test |
"Waiting for authorized user to issue the test command." |
please test |
-1 Failed Tests: RelVals-INPUT RelVals-INPUT
Comparison SummarySummary:
|
const HcalTPParameters* tpparameters = conditions.getHcalTPParameters(); | ||
|
||
// Read thresholds from auxi1 field | ||
const uint32_t aux1 = tpparameters->getAuxi1(); |
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.
getAux1()
returns an int
, see here: why to cast into a uint32_t
in this code?
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.
If this change is going to remain, then it would be probably appropriate to modify at least the name of the method (getFGHFThresholds()
?), if not the class member aux1_
itself in CondFormats/HcalObjects/interface/HcalTPParameters.h
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.
- So, based on the new use of
auxi1
the expected input is actually a 32-bit positive integer. So that's why I actually enforce it when casting. Thus, makes sense to me to also modify the type inside the class definition if there is no objection.
@abdoulline: On the HCAL side, would this create any sort of problem?
- Regarding the name of the class member and method, I think it would be more appropriate to keep the
aux1_
as is, considering that the remaining 16 bits of the word still remain unused and there is a plan to use them as well. That said, we can actually leave thegetAux1()
as is to serve the purpose of reading the whole word and create a new method, e.g.getFGHFThresholds()
, that reads FG Thresholds from the first 16-bits. In this way we leave room for further utilization of the rest 16-bits while also making the code cleaner.
I can proceed with these changes if there there are no objections.
@konpas17 @cms-sw/hcal-dpg-l2
|
|
Hi all, indeed, now this aux1 integer is supposed to be used bit-wise. There is no previous usage of aux1, so no back-compatibility problem, And even though there is no plans in the near future to re-assign this member, but
|
Thank you @abdoulline and @konpas17 for your feedbacks. |
Normally, 15_1_0 should be built today. Should we consider waiting a bit to accommodate the backport of this PR, such that it's part of the standard release validation? |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49012/46255 |
Pull request #49012 was updated. @BenjaminRS, @cmsbuild, @quinnanm can you please check and sign again. |
please test |
urgent |
+1 Size: This PR adds an extra 20KB to repository The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: You can see more details here: Comparison SummarySummary:
|
+l1 |
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. @sextonkennedy, @ftenchini, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Until now the LUT generation for HF fine grain bits requires thresholds hardcoded in
SimCalorimetry/HcalTrigPrimProducers/python/hcaltpdigi_cff.py
. With this update, the two HF MinBias FG thresholds are retrieved from the conditions via theHcalTPParameters
payload (using the previously unusedauxi1
field). A dedicated switch is also implemented to provide a fallback to the thresholds defined in the cff file.PR validation:
scram build code-checks
andscram build code-format
.runTheMatrix.py -l limited -i all --ibeos
completed without errors.CaloOnlineTools/HcalOnlineDb/test/genLUT.sh
. Thresholds were correctly retrieved from conditions or from the cff whenauxi1
is empty or when the fallback switch is used. LUTs for HF are produced with the expected values in both cases.If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:
Not a backport. If approved, this PR will later be backported to 15_1_X, which will be used for HI this year.
@akhukhun @abdoulline @JHiltbrand