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 setting EDPutTokenT via call to produces #34926
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34926/24734
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages:
@makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
-1 Failed Tests: Build HeaderConsistency ClangBuild 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: BuildI found compilation error when building: from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/interface/Event.h:35, from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/DQMServices/Core/interface/DQMEDAnalyzer.h:21, from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/CalibPPS/AlignmentGlobal/plugins/PPSAlignmentWorker.cc:13: /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Utilities/interface/EDPutToken.h: In instantiation of 'constexpr edm::EDPutTokenT& edm::EDPutTokenT::operator=(ADAPTER&&) [with ADAPTER = edm::EDPutTokenT&; T = DQMToken]': /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/DQMServices/Core/interface/DQMEDAnalyzer.h:72:45: required from here /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Utilities/interface/EDPutToken.h:88:45: error: 'class edm::EDPutTokenT' has no member named 'produces' 88 | EDPutTokenT temp(iAdapter.template produces()); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ gmake: *** [tmp/slc7_amd64_gcc900/src/CalibPPS/AlignmentGlobal/plugins/CalibPPSAlignmentPlugins/PPSAlignmentWorker.cc.o] Error 1 >> Building edm plugin tmp/slc7_amd64_gcc900/src/CalibPPS/AlignmentGlobal/plugins/CalibPPSAlignmentPlugins/libCalibPPSAlignmentPlugins.so c++: error: tmp/slc7_amd64_gcc900/src/CalibPPS/AlignmentGlobal/plugins/CalibPPSAlignmentPlugins/PPSAlignmentWorker.cc.o: No such file or directory Clang BuildI found compilation error while trying to compile with clang. Command used:
>> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/stream_filter_t.cppunit.cc >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/limited_producer_t.cppunit.cc >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/limited_filter_t.cppunit.cc >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/limited_outputmodule_t.cppunit.cc >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/checkForModuleDependencyCorrectness_t.cppunit.cc /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/test/maker2_t.cppunit.cc:30:41: error: no matching member function for call to 'produces' TestMod::TestMod(ParameterSet const&) { produces(); } ^~~~~~~~~~~~~ /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_1_X_2021-08-17-1100/src/FWCore/Framework/interface/ProducerBase.h:112:24: note: candidate template ignored: invalid explicitly-specified argument for template parameter 'Tr' [[nodiscard]] auto produces() noexcept { ^ |
Call to produces does not require specifying the data product type as it will be deduced via EDPutTokenT.
07f14de
to
4011a22
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34926/24744
|
Pull request #34926 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again. |
please test |
} | ||
|
||
private: | ||
//only ConsumesCollector is allowed to make an instance of this class |
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.
Should this be
//only ConsumesCollector is allowed to make an instance of this class | |
//only ProducesCollector is allowed to make an instance of this class |
?
} | ||
|
||
private: | ||
//only ConsumesCollector is allowed to make an instance of this class |
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.
//only ConsumesCollector is allowed to make an instance of this class | |
//only ProducesCollector is allowed to make an instance of this class |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34926/24800
|
Pull request #34926 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8ff0b1/17927/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. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Call to
produces
does not require specifying the data product type as it will be deduced via EDPutTokenT.Also did some minor code modernization.
PR validation:
Code compiles.