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
Handle Depth 7-only Signal in HcalTriggerPrimitiveAlgo #29634
Handle Depth 7-only Signal in HcalTriggerPrimitiveAlgo #29634
Conversation
The code-checks are being triggered in jenkins. |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29634/15014
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29634/15017
|
A new Pull Request was created by @JHiltbrand (Joshua Hiltbrand) for master. It involves the following packages: SimCalorimetry/HcalTrigPrimAlgos @cmsbuild, @rekovic, @benkrikler can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
-1 Tested at: b2cfec7 CMSSW: CMSSW_11_1_X_2020-05-04-2300 I found follow errors while testing this PR Failed tests: ClangBuild
I found compilation error while trying to compile with clang. Command used:
++ scram build outputlog Entering library rule at SimCalorimetry/HcalTrigPrimAlgos >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_1_X_2020-05-04-2300/src/SimCalorimetry/HcalTrigPrimAlgos/src/HcalFinegrainBit.cc >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_1_X_2020-05-04-2300/src/SimCalorimetry/HcalTrigPrimAlgos/src/HcalFeatureHFEMBit.cc >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_1_X_2020-05-04-2300/src/SimCalorimetry/HcalTrigPrimAlgos/src/HcalTriggerPrimitiveAlgo.cc /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_1_X_2020-05-04-2300/src/SimCalorimetry/HcalTrigPrimAlgos/src/HcalTriggerPrimitiveAlgo.cc:816:59: error: expression result unused [-Werror,-Wunused-value] fgUpgradeMap_.insert(std::make_pair(id, element)).first; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~ 1 error generated. gmake: *** [tmp/slc7_amd64_gcc820/src/SimCalorimetry/HcalTrigPrimAlgos/src/SimCalorimetryHcalTrigPrimAlgos/HcalTriggerPrimitiveAlgo.cc.o] Error 1 ++ /data/cmsbld/jenkins/workspace/ib-run-pr-tests/cms-bot/buildLogAnalyzer.py --logDir /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_1_X_2020-05-04-2300/tmp/slc7_amd64_gcc820/cache/log/src |
Comparison not run due to Build errors/Fireworks only changes/No short matrix requested (RelVals and Igprof tests were also skipped) |
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29634/15043
|
Pull request #29634 was updated. @cmsbuild, @rekovic, @benkrikler can you please check and sign again. |
please test |
The tests are being triggered in jenkins. |
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
Do you have any comments @rekovic ? |
+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 (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
This PR addresses the issue described in JIRA ticket CMSHCALTRG-9. When a signal is only in depth 7 of HCAL TT26, TT27, or TT28, the corresponding
HcalTriggerPrimitiveDigi
is not fully formed.PR validation:
To understand this fix, the
HcalTriggerPrimitiveAlgo
code was run before and after and these depth 7 special cases were investigated. Example printout is provided below:Prefix
Here, since the TP is not fully formed, its
size()
andpresamples()
members are left initialized at 0.Postfix
After the fix, when the TP is fully constructed, it has valid
size()
andpresamples()
values. Likewise, there are non-zero number ofHcalTriggerPrimitiveSamples
.Only one additional
static const
variable is added to the code.