Skip to content

Commit

Permalink
Merge pull request #31138 from justinasr/move-wmsplit-separate-method…
Browse files Browse the repository at this point in the history
…-cmssw-10-6-x

Move "wmsplit" dict build to a static method, remove circular import (backport to 10_6_X)
  • Loading branch information
cmsbuild committed Aug 19, 2020
2 parents 05e3886 + 454bf92 commit 97b4055
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
29 changes: 17 additions & 12 deletions Configuration/PyReleaseValidation/python/MatrixInjector.py
Expand Up @@ -161,15 +161,19 @@ def __init__(self,opt,mode='init',options=''):

self.chainDicts={}


def prepare(self,mReader, directories, mode='init'):
@staticmethod
def get_wmsplit():
"""
Return a "wmsplit" dictionary that contain non-default LumisPerJob values
"""
wmsplit = {}
try:
#from Configuration.PyReleaseValidation.relval_steps import wmsplit
wmsplit = {}
wmsplit['DIGIHI']=5
wmsplit['RECOHI']=5
wmsplit['HLTD']=5
wmsplit['RECODreHLT']=2
wmsplit['RECODreHLT']=2
wmsplit['DIGIPU']=4
wmsplit['DIGIPU1']=4
wmsplit['RECOPU1']=1
Expand Down Expand Up @@ -249,16 +253,16 @@ def prepare(self,mReader, directories, mode='init'):
wmsplit['HLTDR2_2018']=1
wmsplit['HLTDR2_2018_BadHcalMitig']=1
wmsplit['Hadronizer']=1
wmsplit['DIGIUP15']=1
wmsplit['RECOUP15']=1
wmsplit['DIGIUP15']=1
wmsplit['RECOUP15']=1
wmsplit['RECOAODUP15']=5
wmsplit['DBLMINIAODMCUP15NODQM']=5
wmsplit['DigiFull']=5
wmsplit['RecoFull']=5
wmsplit['DigiFullPU']=1
wmsplit['RecoFullPU']=1
wmsplit['RECOHID11']=1
wmsplit['DigiFullTriggerPU_2023D17PU'] = 1
wmsplit['DigiFullTriggerPU_2023D17PU'] = 1
wmsplit['RecoFullGlobalPU_2023D17PU']=1
wmsplit['DIGIUP17']=1
wmsplit['RECOUP17']=1
Expand All @@ -274,13 +278,14 @@ def prepare(self,mReader, directories, mode='init'):
wmsplit['HYBRIDZSHI2015']=1
wmsplit['RECOHID15']=1
wmsplit['RECOHID18']=1

#import pprint
#pprint.pprint(wmsplit)
except:
print("Not set up for step splitting")
wmsplit={}
except Exception as ex:
print('Exception while building a wmsplit dictionary: %s' % (str(ex)))
return {}

return wmsplit

def prepare(self,mReader, directories, mode='init'):
wmsplit = MatrixInjector.get_wmsplit()
acqEra=False
for (n,dir) in directories.items():
chainDict=copy.deepcopy(self.defaultChain)
Expand Down
@@ -1,4 +1,5 @@
from copy import deepcopy
from .MatrixUtil import Kby

# DON'T CHANGE THE ORDER, only append new keys. Otherwise the numbering for the runTheMatrix tests will change.

Expand Down Expand Up @@ -470,8 +471,6 @@
upgradeProperties[2023]['2023D42PU']['ScenToRun'] = ['GenSimHLBeamSpotFull','DigiFullTriggerPU','RecoFullGlobalPU', 'HARVESTFullGlobalPU']


from Configuration.PyReleaseValidation.relval_steps import Kby

upgradeFragments=['FourMuPt_1_200_pythia8_cfi',
'SingleElectronPt10_pythia8_cfi',
'SingleElectronPt35_pythia8_cfi',
Expand Down

0 comments on commit 97b4055

Please sign in to comment.