From d1fede22e810e0d2e4bd4326606aeae1c41131bb Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Thu, 18 Jul 2024 14:43:56 +0200 Subject: [PATCH] [CLANG] Phase2L1GT: Fix compilation warnings --- .../plugins/L1GTAlgoBlockProducer.cc | 2 +- .../plugins/L1GTOutputObjectWriter.cc | 61 ++++++++----------- 2 files changed, 28 insertions(+), 35 deletions(-) diff --git a/L1Trigger/Phase2L1GT/plugins/L1GTAlgoBlockProducer.cc b/L1Trigger/Phase2L1GT/plugins/L1GTAlgoBlockProducer.cc index 73294f78fe714..5ecf0dc5a3796 100644 --- a/L1Trigger/Phase2L1GT/plugins/L1GTAlgoBlockProducer.cc +++ b/L1Trigger/Phase2L1GT/plugins/L1GTAlgoBlockProducer.cc @@ -337,7 +337,7 @@ class L1GTAlgoBlockProducer std::shared_ptr> globalBeginRun(edm::Run const&, edm::EventSetup const&) const override; - void globalEndRun(edm::Run const&, edm::EventSetup const&) {} + void globalEndRun(edm::Run const&, edm::EventSetup const&) override {} edm::GetterOfProducts getterOfPassedReferences_; std::map algoDefinitions_; diff --git a/L1Trigger/Phase2L1GT/plugins/L1GTOutputObjectWriter.cc b/L1Trigger/Phase2L1GT/plugins/L1GTOutputObjectWriter.cc index 5195c5fe85823..b8d5760bb30bd 100644 --- a/L1Trigger/Phase2L1GT/plugins/L1GTOutputObjectWriter.cc +++ b/L1Trigger/Phase2L1GT/plugins/L1GTOutputObjectWriter.cc @@ -269,42 +269,35 @@ static std::vector> vpack(const Args&... vobjects) { void L1GTOutputObjectWriter::analyze(const edm::Event& event, const edm::EventSetup&) { std::map>> outputObjects; - outputObjects.emplace("GCTNonIsoEg", std::move(fillCollection>(event, gctNonIsoEgToken_))); - outputObjects.emplace("GCTIsoEg", std::move(fillCollection>(event, gctIsoEgToken_))); - outputObjects.emplace("GCTJets", std::move(fillCollection>(event, gctJetsToken_))); - outputObjects.emplace("GCTTaus", std::move(fillCollection(event, gctTausToken_))); - outputObjects.emplace("GCTHtSum", std::move(fillCollection(event, gctHtSumToken_))); - outputObjects.emplace("GCTEtSum", std::move(fillCollection(event, gctEtSumToken_))); + outputObjects.emplace("GCTNonIsoEg", fillCollection>(event, gctNonIsoEgToken_)); + outputObjects.emplace("GCTIsoEg", fillCollection>(event, gctIsoEgToken_)); + outputObjects.emplace("GCTJets", fillCollection>(event, gctJetsToken_)); + outputObjects.emplace("GCTTaus", fillCollection(event, gctTausToken_)); + outputObjects.emplace("GCTHtSum", fillCollection(event, gctHtSumToken_)); + outputObjects.emplace("GCTEtSum", fillCollection(event, gctEtSumToken_)); outputObjects.emplace("GMTSaPromptMuons", - std::move(fillCollection(event, gmtSaPromptMuonsToken_))); + fillCollection(event, gmtSaPromptMuonsToken_)); outputObjects.emplace("GMTSaDisplacedMuons", - std::move(fillCollection(event, gmtSaDisplacedMuonsToken_))); - outputObjects.emplace("GMTTkMuons", std::move(fillCollection(event, gmtTkMuonsToken_))); - outputObjects.emplace("GMTTopo", std::move(fillCollection(event, gmtTopoToken_))); - outputObjects.emplace("GTTPromptJets", std::move(fillCollection(event, gttPromptJetsToken_))); - outputObjects.emplace("GTTDisplacedJets", - std::move(fillCollection(event, gttDisplacedJetsToken_))); - outputObjects.emplace("GTTPhiCandidates", - std::move(fillCollection(event, gttPhiCandidatesToken_))); - outputObjects.emplace("GTTRhoCandidates", - std::move(fillCollection(event, gttRhoCandidatesToken_))); - outputObjects.emplace("GTTBsCandidates", - std::move(fillCollection(event, gttBsCandidatesToken_))); - outputObjects.emplace("GTTHadronicTaus", - std::move(fillCollection(event, gttHadronicTausToken_))); - outputObjects.emplace("GTTPrimaryVert", - std::move(fillCollection(event, gttPrimaryVertToken_))); - outputObjects.emplace("GTTPromptHtSum", std::move(fillCollection(event, gttPromptHtSumToken_))); - outputObjects.emplace("GTTDisplacedHtSum", - std::move(fillCollection(event, gttDisplacedHtSumToken_))); - outputObjects.emplace("GTTEtSum", std::move(fillCollection(event, gttEtSumToken_))); - outputObjects.emplace("CL2JetsSC4", std::move(fillCollection(event, cl2JetsSc4Token_))); - outputObjects.emplace("CL2JetsSC8", std::move(fillCollection(event, cl2JetsSc8Token_))); - outputObjects.emplace("CL2Taus", std::move(fillCollection(event, cl2TausToken_))); - outputObjects.emplace("CL2Electrons", std::move(fillCollection(event, cl2ElectronsToken_))); - outputObjects.emplace("CL2Photons", std::move(fillCollection(event, cl2PhotonsToken_))); - outputObjects.emplace("CL2HtSum", std::move(fillCollection(event, cl2HtSumToken_))); - outputObjects.emplace("CL2EtSum", std::move(fillCollection(event, cl2EtSumToken_))); + fillCollection(event, gmtSaDisplacedMuonsToken_)); + outputObjects.emplace("GMTTkMuons", fillCollection(event, gmtTkMuonsToken_)); + outputObjects.emplace("GMTTopo", fillCollection(event, gmtTopoToken_)); + outputObjects.emplace("GTTPromptJets", fillCollection(event, gttPromptJetsToken_)); + outputObjects.emplace("GTTDisplacedJets", fillCollection(event, gttDisplacedJetsToken_)); + outputObjects.emplace("GTTPhiCandidates", fillCollection(event, gttPhiCandidatesToken_)); + outputObjects.emplace("GTTRhoCandidates", fillCollection(event, gttRhoCandidatesToken_)); + outputObjects.emplace("GTTBsCandidates", fillCollection(event, gttBsCandidatesToken_)); + outputObjects.emplace("GTTHadronicTaus", fillCollection(event, gttHadronicTausToken_)); + outputObjects.emplace("GTTPrimaryVert", fillCollection(event, gttPrimaryVertToken_)); + outputObjects.emplace("GTTPromptHtSum", fillCollection(event, gttPromptHtSumToken_)); + outputObjects.emplace("GTTDisplacedHtSum", fillCollection(event, gttDisplacedHtSumToken_)); + outputObjects.emplace("GTTEtSum", fillCollection(event, gttEtSumToken_)); + outputObjects.emplace("CL2JetsSC4", fillCollection(event, cl2JetsSc4Token_)); + outputObjects.emplace("CL2JetsSC8", fillCollection(event, cl2JetsSc8Token_)); + outputObjects.emplace("CL2Taus", fillCollection(event, cl2TausToken_)); + outputObjects.emplace("CL2Electrons", fillCollection(event, cl2ElectronsToken_)); + outputObjects.emplace("CL2Photons", fillCollection(event, cl2PhotonsToken_)); + outputObjects.emplace("CL2HtSum", fillCollection(event, cl2HtSumToken_)); + outputObjects.emplace("CL2EtSum", fillCollection(event, cl2EtSumToken_)); std::map>> eventData;