From ce7a6d11d68516414fdaf2282a64f0abdf396aa2 Mon Sep 17 00:00:00 2001 From: Kevin Pedro Date: Mon, 7 Jan 2019 13:35:40 -0600 Subject: [PATCH] set num events --- AnalysisFW/python/jetImageTest_mc_cfg.py | 5 +---- README.md | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/AnalysisFW/python/jetImageTest_mc_cfg.py b/AnalysisFW/python/jetImageTest_mc_cfg.py index dd02c80..e1c7cc8 100644 --- a/AnalysisFW/python/jetImageTest_mc_cfg.py +++ b/AnalysisFW/python/jetImageTest_mc_cfg.py @@ -32,7 +32,7 @@ process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff") process.GlobalTag.globaltag = cms.string('100X_upgrade2018_realistic_v10') -process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) ) +process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(options.maxEvents) ) process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring('file:store_mc_RunIISpring18MiniAOD_BulkGravTohhTohbbhbb_narrow_M-2000_13TeV-madgraph_MINIAODSIM_100X_upgrade2018_realistic_v10-v1_30000_24A0230C-B530-E811-ADE3-14187741120B.root') ) @@ -63,9 +63,6 @@ process.jetImageProducer ) -# Change number of events here: -process.maxEvents.input = 25 - process.MessageLogger.cerr.FwkReport.reportEvery = 1 keep_msgs = ['JetImageProducer','TFClientRemote','TFClientLocal'] for msg in keep_msgs: diff --git a/README.md b/README.md index aa7e4f1..7e5138f 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,11 @@ This script creates a JSON file with the address and port for the remote server, Now, the producer can run in either local or remote mode. * Local mode: ``` -cmsRun jetImageTest_mc_cfg.py +cmsRun jetImageTest_mc_cfg.py maxEvents=25 ``` * Remote mode: ``` -cmsRun jetImageTest_mc_cfg.py remote=1 params=$CMSSW_BASE/src/SonicCMS/AnalysisFW/python/service_model_params.json +cmsRun jetImageTest_mc_cfg.py remote=1 params=$CMSSW_BASE/src/SonicCMS/AnalysisFW/python/service_model_params.json maxEvents=25 ``` The remote mode timeout is set to 30 seconds by default. It can be changed e.g. to 10 seconds by adding the argument `timeout=10`.