Skip to content

Commit

Permalink
Add an alternative sample for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kdlong committed Sep 3, 2019
1 parent de0ad7a commit 59691bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,13 +380,9 @@ ExternalLHEProducer::beginRunProduce(edm::Run& run, edm::EventSetup const& es)
//gen::WeightGroupInfo scaleInfo = getExampleScaleWeightsOutOfOrder();

// setup file reader
std::string LHEfilename ="cmsgrid_final.lhe";
LHEWeightGroupReaderHelper reader;
//std::string LHEfilename ="cmsgrid_final.lhe";
//reader.parseLHEFile(LHEfilename);
std::cout << "Trying to find header initrwgt. Size is ";
std::cout << runInfo->findHeader("initrwgt").size() << std::endl;
for (auto line : runInfo->findHeader("initrwgt"))
std::cout << "Line in header is " << line << std::endl;
reader.parseWeightGroupsFromHeader(runInfo->findHeader("initrwgt"));

for (auto weightGroup : reader.getWeightGroups())
Expand Down
3 changes: 2 additions & 1 deletion GeneratorInterface/LHEInterface/test/test_Weights_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
process.GlobalTag = GlobalTag(process.GlobalTag, '102X_upgrade2018_realistic_v11', '')

process.externalLHEProducer = cms.EDProducer("ExternalLHEProducer",
args = cms.vstring('/afs/hep.wisc.edu/home/kdlong/public/DarkMatter_MonoZPrime_V_Mx50_Mv500_gDMgQ1_LO_slc6_amd64_gcc481_CMSSW_7_1_30_tarball_Dummy.tgz'),
#args = cms.vstring('/afs/hep.wisc.edu/home/kdlong/public/DarkMatter_MonoZPrime_V_Mx50_Mv500_gDMgQ1_LO_slc6_amd64_gcc481_CMSSW_7_1_30_tarball_Dummy.tgz'),
args = cms.vstring('/afs/cern.ch/user/k/kelong/work/public/DummyGridpacks/ZZ_slc6_amd64_gcc630_CMSSW_9_3_0_ZZTo4L2017_pdf306000.tgz'),
nEvents = cms.untracked.uint32(10),
numberOfParameters = cms.uint32(1),
outputFile = cms.string('cmsgrid_final.lhe'),
Expand Down

0 comments on commit 59691bc

Please sign in to comment.