From f12beb68c90f4f591fbcffdf69236b3133752ad8 Mon Sep 17 00:00:00 2001 From: Sam Harper Date: Sun, 14 Jun 2020 18:28:28 +0100 Subject: [PATCH 1/2] updating to use an input tag like it should... --- .../GenFilters/plugins/MCSmartSingleParticleFilter.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GeneratorInterface/GenFilters/plugins/MCSmartSingleParticleFilter.cc b/GeneratorInterface/GenFilters/plugins/MCSmartSingleParticleFilter.cc index c8ccb35a45126..cc255cbffdebb 100644 --- a/GeneratorInterface/GenFilters/plugins/MCSmartSingleParticleFilter.cc +++ b/GeneratorInterface/GenFilters/plugins/MCSmartSingleParticleFilter.cc @@ -55,8 +55,7 @@ class MCSmartSingleParticleFilter : public edm::global::EDFilter<> { using namespace std; MCSmartSingleParticleFilter::MCSmartSingleParticleFilter(const edm::ParameterSet& iConfig) - : token_(consumes( - edm::InputTag(iConfig.getUntrackedParameter("moduleLabel", std::string("generator")), "unsmeared"))), + : token_(consumes(iConfig.getUntrackedParameter("moduleLabel", edm::InputTag("generator","unsmeared")))), betaBoost(iConfig.getUntrackedParameter("BetaBoost", 0.)) { vector defpid; defpid.push_back(0); From d27b8236e271b3aaa3b21918482b40625d19eecb Mon Sep 17 00:00:00 2001 From: Sam Harper Date: Mon, 14 Dec 2020 14:25:30 +0100 Subject: [PATCH 2/2] code checks --- .../GenFilters/plugins/MCSmartSingleParticleFilter.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GeneratorInterface/GenFilters/plugins/MCSmartSingleParticleFilter.cc b/GeneratorInterface/GenFilters/plugins/MCSmartSingleParticleFilter.cc index cc255cbffdebb..200531a26e15c 100644 --- a/GeneratorInterface/GenFilters/plugins/MCSmartSingleParticleFilter.cc +++ b/GeneratorInterface/GenFilters/plugins/MCSmartSingleParticleFilter.cc @@ -55,7 +55,8 @@ class MCSmartSingleParticleFilter : public edm::global::EDFilter<> { using namespace std; MCSmartSingleParticleFilter::MCSmartSingleParticleFilter(const edm::ParameterSet& iConfig) - : token_(consumes(iConfig.getUntrackedParameter("moduleLabel", edm::InputTag("generator","unsmeared")))), + : token_(consumes( + iConfig.getUntrackedParameter("moduleLabel", edm::InputTag("generator", "unsmeared")))), betaBoost(iConfig.getUntrackedParameter("BetaBoost", 0.)) { vector defpid; defpid.push_back(0);