Skip to content

Commit

Permalink
Removing nThreads for CRAB jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
borzari committed Sep 9, 2022
1 parent 08c67e5 commit e81bcdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
14 changes: 5 additions & 9 deletions SignalMC/test/step2/AMSB_chargino_step2_Run3_124X_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step1 --filein file:AMSB_chargino_step1.root --fileout file:AMSB_chargino_step2.root --pileup_input dbs:/Neutrino_E-10_gun/Run3Summer21PrePremix-Winter22_122X_mcRun3_2021_realistic_v9-v1/PREMIX --mc --eventcontent PREMIXRAW --datatier GEN-SIM-RAW --conditions auto:phase1_2021_realistic --step DIGI,DATAMIX,L1,DIGI2RAW,HLT:GRun --procModifiers premix_stage2 --nThreads 8 --geometry DB:Extended --datamix PreMix --era Run3 --python_filename step2/AMSB_chargino_124X_step2_Run3_124X_cfg.py --no_exec --customise Configuration/DataProcessing/Utils.addMonitoring -n 10
# with command line options: step1 --filein file:AMSB_chargino_step1.root --fileout file:AMSB_chargino_step2.root --pileup_input dbs:/Neutrino_E-10_gun/Run3Summer21PrePremix-Winter22_122X_mcRun3_2021_realistic_v9-v1/PREMIX --mc --eventcontent PREMIXRAW --datatier GEN-SIM-RAW --conditions auto:phase1_2021_realistic --step DIGI,DATAMIX,L1,DIGI2RAW,HLT:GRun --procModifiers premix_stage2 --geometry DB:Extended --datamix PreMix --era Run3 --python_filename step2/AMSB_chargino_step2_Run3_124X_cfg.py --no_exec --customise Configuration/DataProcessing/Utils.addMonitoring -n 10
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Run3_cff import Run3
Expand All @@ -27,14 +27,14 @@
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1),
input = cms.untracked.int32(10),
output = cms.optional.untracked.allowed(cms.int32,cms.PSet)
)

# Input source
process.source = cms.Source("PoolSource",
dropDescendantsOfDroppedBranches = cms.untracked.bool(False),
fileNames = cms.untracked.vstring('file:../step1/pythia8/AMSB_chargino700GeV_ctau1cm_step1.root'),
fileNames = cms.untracked.vstring('file:AMSB_chargino_step1.root'),
inputCommands = cms.untracked.vstring(
'keep *',
'drop *_genParticles_*_*',
Expand Down Expand Up @@ -89,7 +89,7 @@

# Production Info
process.configurationMetadata = cms.untracked.PSet(
annotation = cms.untracked.string('step1 nevts:-1'),
annotation = cms.untracked.string('step1 nevts:10'),
name = cms.untracked.string('Applications'),
version = cms.untracked.string('$Revision: 1.19 $')
)
Expand All @@ -101,7 +101,7 @@
dataTier = cms.untracked.string('GEN-SIM-RAW'),
filterName = cms.untracked.string('')
),
fileName = cms.untracked.string('file:AMSB_chargino700GeV_ctau1cm_step2.root'),
fileName = cms.untracked.string('file:AMSB_chargino_step2.root'),
outputCommands = process.PREMIXRAWEventContent.outputCommands,
splitLevel = cms.untracked.int32(0)
)
Expand Down Expand Up @@ -131,10 +131,6 @@
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)

#Setup FWK for multithreaded
process.options.numberOfThreads = 8
process.options.numberOfStreams = 0

# customisation of the process.

# Automatic addition of the customisation function from Configuration.DataProcessing.Utils
Expand Down
10 changes: 3 additions & 7 deletions SignalMC/test/step3/AMSB_chargino_step3_Run3_124X_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step2 --filein file:AMSB_chargino_step2.root --fileout file:AMSB_chargino_step3.root --mc --eventcontent AODSIM --runUnscheduled --datatier AODSIM --conditions auto:phase1_2021_realistic --step RAW2DIGI,RECO,RECOSIM --nThreads 4 --era Run3 --python_filename step3/AMSB_chargino_step3_Run3_124X_cfg.py --no_exec --customise Configuration/DataProcessing/Utils.addMonitoring -n -1
# with command line options: step2 --filein file:AMSB_chargino_step2.root --fileout file:AMSB_chargino_step3.root --mc --eventcontent AODSIM --runUnscheduled --datatier AODSIM --conditions auto:phase1_2021_realistic --step RAW2DIGI,RECO,RECOSIM --era Run3 --python_filename step3/AMSB_chargino_step3_Run3_124X_cfg.py --no_exec --customise Configuration/DataProcessing/Utils.addMonitoring -n -1
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Run3_cff import Run3
Expand Down Expand Up @@ -30,7 +30,7 @@

# Input source
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('file:../step2/AMSB_chargino700GeV_ctau1cm_step2.root'),
fileNames = cms.untracked.vstring('file:AMSB_chargino_step2.root'),
secondaryFileNames = cms.untracked.vstring()
)

Expand Down Expand Up @@ -81,7 +81,7 @@
filterName = cms.untracked.string('')
),
eventAutoFlushCompressedSize = cms.untracked.int32(31457280),
fileName = cms.untracked.string('file:AMSB_chargino700GeV_ctau1cm_step3.root'),
fileName = cms.untracked.string('file:AMSB_chargino_step3.root'),
outputCommands = process.AODSIMEventContent.outputCommands
)

Expand All @@ -103,10 +103,6 @@
from PhysicsTools.PatAlgos.tools.helpers import associatePatAlgosToolsTask
associatePatAlgosToolsTask(process)

#Setup FWK for multithreaded
process.options.numberOfThreads = 4
process.options.numberOfStreams = 0

# customisation of the process.

# Automatic addition of the customisation function from Configuration.DataProcessing.Utils
Expand Down

0 comments on commit e81bcdd

Please sign in to comment.