-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Provide easier to use ::get and ::getHandle methods for Event, Run and LuminosityBlock #25707
Conversation
Instead of passing BasicHandle in as an argument, we now return it directly from the function. This allowed removal of the default constructor. Attempted to optimize convert_handle.
Returns directly the object with which one wants to interact.
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25707/8093
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages: DataFormats/Common @cmsbuild, @smuzaffar, @Dr15Jones 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: 6d61969 You can see the results of the tests here: I found follow errors while testing this PR Failed tests: Build HeaderConsistency
I found compilation error when building: >> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-18-2300/src/SimGeneral/PreMixingModule/plugins/PreMixingCrossingFrameWorker.cc >> Compiling edm plugin /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-18-2300/src/SimGeneral/PreMixingModule/plugins/PreMixingDigiAccumulatorWorker.cc In file included from /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-18-2300/src/SimGeneral/PreMixingModule/plugins/PreMixingPileupCopy.cc:5:0: /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-18-2300/src/SimGeneral/MixingModule/interface/PileUpEventPrincipal.h: In instantiation of 'bool PileUpEventPrincipal::getByLabel(const edm::InputTag&, edm::Handle&) const [with T = std::vector]': /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-18-2300/src/SimGeneral/PreMixingModule/plugins/PreMixingPileupCopy.cc:37:57: required from here /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-18-2300/src/SimGeneral/MixingModule/interface/PileUpEventPrincipal.h:46:19: error: no matching function for call to 'convert_handle(std::remove_reference::type, edm::Handle >&)' convert_handle(std::move(bh), result); ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-18-2300/src/FWCore/Framework/interface/Event.h:21:0, from /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-18-2300/src/SimGeneral/PreMixingModule/plugins/PreMixingPileupCopy.h:12, from /build/cmsbld/jenkins/workspace/ib-any-integration/CMSSW_10_5_X_2019-01-18-2300/src/SimGeneral/PreMixingModule/plugins/PreMixingPileupCopy.cc:1: |
Comparison not run due to Build errors (RelVals and Igprof tests were also skipped) |
-1 Tested at: 6d31f49 You can see the results of the tests here: I found follow errors while testing this PR Failed tests: UnitTests
I found errors in the following unit tests: |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
@smuzaffar looks like the unit test failure was from one of the tests never ending
[NOTE: that test makes no use of the code I changed, or even any part of the framework] |
+1 |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (but tests are reportedly failing). This pull request will now be reviewed by the release team before it's merged. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
@fabiocos what is your thoughts on integrating this? The test failure was not from this change. |
@Dr15Jones I'll integrate it in next IB, so we may see |
+1 |
merge |
@Dr15Jones , look like this change has caused 3 compilation warnings in IBs. |
@smuzaffar I actually saw those warnings before this change when I build FWCore/Integration as part of my usual build. I have yet to figure out what the compiler is complaining about. |
@smuzaffar I just tracked down what caused that compilation warning. [It is not this pull request.] |
@smuzaffar the fix is in #25764 |
By using an
edm::EDGetTokenT<T>
one can now door if one needs the
edm::Handle
auto hTracks = event.getHandle(tracksToken);