From 6aaef397110c974d83ba52e75c65e5819dd9fc1d Mon Sep 17 00:00:00 2001 From: Kenneth Long Date: Fri, 17 Jan 2020 11:31:23 +0100 Subject: [PATCH] Make pdfIds untracked --- PhysicsTools/NanoAOD/plugins/LHEWeightsTableProducer.cc | 5 ++--- PhysicsTools/NanoAOD/python/nanogen_cff.py | 5 +++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PhysicsTools/NanoAOD/plugins/LHEWeightsTableProducer.cc b/PhysicsTools/NanoAOD/plugins/LHEWeightsTableProducer.cc index cc4dc25809135..ed26af86897bc 100644 --- a/PhysicsTools/NanoAOD/plugins/LHEWeightsTableProducer.cc +++ b/PhysicsTools/NanoAOD/plugins/LHEWeightsTableProducer.cc @@ -35,7 +35,7 @@ class LHEWeightsTableProducer : public edm::global::EDProducer>("weightgroups"), [](auto& c) { return gen::WeightType(c.at(0)); } )), maxGroupsPerType_(params.getParameter>("maxGroupsPerType")), - pdfIds_(params.getParameter>("pdfIds")), + pdfIds_(params.getUntrackedParameter>("pdfIds", {})), lheWeightPrecision_(params.getParameter("lheWeightPrecision")) { if (weightgroups_.size() != maxGroupsPerType_.size()) throw std::invalid_argument("Inputs 'weightgroups' and 'weightgroupNums' must have equal size"); @@ -177,7 +177,7 @@ class LHEWeightsTableProducer : public edm::global::EDProducer("genWeights"); desc.add>("weightgroups"); desc.add>("maxGroupsPerType"); - desc.add>("pdfIds"); + desc.addOptionalUntracked>("pdfIds"); desc.add("lheWeightPrecision", -1)->setComment("Number of bits in the mantissa for LHE weights"); descriptions.addDefault(desc); } @@ -203,6 +203,5 @@ class LHEWeightsTableProducer : public edm::global::EDProducer store all found maxGroupsPerType = cms.vint32([1, -1, 1, 2, 1]), - # If empty or not specified, all pdf weights are stored - pdfIds = cms.vint32([91400, 306000, 260000]), + # If empty or not specified, no critieria is applied to filter on LHAPDF IDs + pdfIds = cms.untracked.vint32([91400, 306000, 260000]), lheWeightPrecision = cms.int32(14), )