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
simplify elementLoop flow, add comments #27901
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-27901/11699
|
A new Pull Request was created by @jpata (Joosep Pata) for master. It involves the following packages: RecoParticleFlow/PFProducer @perrotta, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
unsigned iTrack = iEle; | ||
reco::MuonRef muonRef = elements[iTrack].muonRef(); | ||
if (muonRef.isNonnull()) { | ||
LogTrace("PFAlgo|elementLoop") << "track " << iTrack << " has a valid muon reference. " << 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.
I do not see a replacement for this check on muonRef.
Is this just an unnecessary debugging piece?
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.
Thanks for spotting that. Since isNonnull
does not throw, in essence, this is just a debugging piece. I removed it since muonRef
is not used anywhere else in function, so we might as well keep the code simpler.
-1 Tested at: 69c32c6
I found compilation error when building: STRXFRM_INTERCEPTOR_IMPL(wcsxfrm, dest, src, len); ^ [2361/4208] /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/c++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Passes -I/build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/llvm/lib/Passes -Iinclude -I/build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC -MD -MT lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -MF lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o.d -o lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o -c /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/llvm/lib/Passes/PassBuilder.cpp [2362/4208] /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/slc7_amd64_gcc700/external/gcc/7.0.0-pafccj/bin/c++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Itools/lld/lib/Driver -I/build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/lld/lib/Driver -I/build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/lld/include -Itools/lld/include -Iinclude -I/build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fPIC -MD -MT tools/lld/lib/Driver/CMakeFiles/lldDriver.dir/DarwinLdDriver.cpp.o -MF tools/lld/lib/Driver/CMakeFiles/lldDriver.dir/DarwinLdDriver.cpp.o.d -o tools/lld/lib/Driver/CMakeFiles/lldDriver.dir/DarwinLdDriver.cpp.o -c /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/BUILD/slc7_amd64_gcc700/external/llvm/8.0.1-27600e/llvm-8.0.1-a0f653798ce2e441cabef0311f11f8fd2ce8b1f0/lld/lib/Driver/DarwinLdDriver.cpp ninja: build stopped: subcommand failed. error: Bad exit status from /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/tmp/rpm-tmp.vJZyZ3 (%build) RPM build errors: Bad exit status from /build/cmsbld/jenkins/workspace/ib-run-pr-tests/testBuildDir/tmp/rpm-tmp.vJZyZ3 (%build) You can see the results of the tests here: |
please test |
The tests are being triggered in jenkins. |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
@smuzaffar @slava77 it looks to me that the last issue discussed in this PR is unrelated to the PR itself but more a problem being debugged with the latest llvm settings, so this PR in itself could move forward |
@fabiocos , yes this is correct. |
+1 |
PR description:
PFAlgo::elementLoop
to identify core functionality.PR validation:
Checked that the output of
runTheMatrix.py -l 38
did not change (7344 bytes in step3.root).Other related PRs
#27505
#27153
#26894