Skip to content

Commit

Permalink
Merge pull request #5823 from bendavid/lhetrackedfix_53x
Browse files Browse the repository at this point in the history
Backport fix to tracked parameter in ExternalLHEProducer causing spurious run transitions (53x)
  • Loading branch information
cmsbuild committed Feb 3, 2015
2 parents 121aa8b + 11eae22 commit 9014fdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -130,7 +130,7 @@ ExternalLHEProducer::ExternalLHEProducer(const edm::ParameterSet& iConfig) :
outputFile_(iConfig.getParameter<std::string>("outputFile")),
args_(iConfig.getParameter<std::vector<std::string> >("args")),
npars_(iConfig.getParameter<uint32_t>("numberOfParameters")),
nEvents_(iConfig.getParameter<uint32_t>("nEvents"))
nEvents_(iConfig.getUntrackedParameter<uint32_t>("nEvents"))
{
if (npars_ != args_.size())
throw cms::Exception("ExternalLHEProducer") << "Problem with configuration: " << args_.size() << " script arguments given, expected " << npars_;
Expand Down Expand Up @@ -475,7 +475,7 @@ ExternalLHEProducer::fillDescriptions(edm::ConfigurationDescriptions& descriptio
desc.add<std::string>("outputFile", "myoutput");
desc.add<std::vector<std::string> >("args");
desc.add<uint32_t>("numberOfParameters");
desc.add<uint32_t>("nEvents");
desc.addUntracked<uint32_t>("nEvents");

descriptions.addDefault(desc);
}
Expand Down
Expand Up @@ -5,6 +5,6 @@
outputFile = cms.string("W1Jet_7TeV_madgraph_final.lhe"),
numberOfParameters = cms.uint32(10),
args = cms.vstring('slc5_ia32_gcc434/madgraph/V5_1.3.27/test','W1Jet_7TeV_madgraph','false','true','wjets','5','20','false','0','99'),
nEvents = cms.uint32(100)
nEvents = cms.untracked.uint32(100)
)

0 comments on commit 9014fdc

Please sign in to comment.