diff --git a/CommonTools/RecoAlgos/plugins/JetConstituentSelector.cc b/CommonTools/RecoAlgos/plugins/JetConstituentSelector.cc index 70ea3d6091a60..757a322bb40c9 100644 --- a/CommonTools/RecoAlgos/plugins/JetConstituentSelector.cc +++ b/CommonTools/RecoAlgos/plugins/JetConstituentSelector.cc @@ -44,16 +44,10 @@ class JetConstituentSelector : public edm::stream::EDProducer<> { static void fillDescriptions(edm::ConfigurationDescriptions& descriptions) { edm::ParameterSetDescription desc; - desc.add("src")->setComment("InputTag used for retrieving jets in event."); - desc.add("cut")->setComment( - "Cut used by which to select jets. For example:\n" - " \"pt > 100.0 && abs(rapidity()) < 2.4\"."); - - // addDefault must be used here instead of add unless this function is specialized - // for different sets of template parameter types. Each specialization would need - // a different module label. Otherwise the generated cfi filenames will conflict - // for the different plugins. - descriptions.addDefault(desc); + desc.add("src", edm::InputTag(""))->setComment("InputTag used for retrieving jets in event."); + desc.add("cut", "")->setComment( + "Cut used by which to select jets. For example:\n \"pt > 100.0 && abs(rapidity()) < 2.4\"."); + descriptions.addWithDefaultLabel(desc); } // Default initialization is for edm::FwdPtr. Specialization (below) is for edm::Ptr.