Skip to content

Commit daa7948

Browse files
committed
Merge pull request cms-sw#2619 from franzoni/from-CMSSW_7_1_0_pre3_revertDQMIO_HIrecycle
Operations -- option in the matrix --revertDqmio and HI min bias 2k
2 parents 40d7b9a + 8001f38 commit daa7948

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

Configuration/PyReleaseValidation/python/MatrixReader.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def __init__(self, opt):
2020
self.reset(opt.what)
2121

2222
self.wm=opt.wmcontrol
23+
self.revertDqmio=opt.revertDqmio
2324
self.addCommand=opt.command
2425
self.apply=opt.apply
2526
self.commandLineWf=opt.workflow
@@ -243,8 +244,11 @@ def readMatrix(self, fileNameIn, useInput=None, refRel=None, fromScratch=None):
243244
if self.apply:
244245
if stepIndex in self.apply or stepName in self.apply:
245246
cmd +=' '+self.addCommand
246-
else:
247-
cmd +=' '+self.addCommand
247+
else:
248+
cmd +=' '+self.addCommand
249+
if self.wm and self.revertDqmio=='yes':
250+
cmd=cmd.replace('DQMROOT','DQM')
251+
cmd=cmd.replace('--filetype DQM','')
248252
commands.append(cmd)
249253
ranStepList.append(stepName)
250254
stepIndex+=1
@@ -332,6 +336,8 @@ def showRaw(self, useInput, refRel=None, fromScratch=None, what='all',step1Only=
332336
line += ' @@@'
333337
else:
334338
line += ' @@@ '+commands[0]
339+
if self.revertDqmio=='yes':
340+
line=line.replace('DQMROOT','DQM')
335341
writtenWF+=1
336342
outFile.write(line+'\n')
337343

@@ -344,6 +350,8 @@ def showRaw(self, useInput, refRel=None, fromScratch=None, what='all',step1Only=
344350
stepIndex=index+1
345351
if 'dasquery.log' in cmd: continue
346352
line = 'STEP%d ++ '%(stepIndex,) +stepName + ' @@@ '+cmd
353+
if self.revertDqmio=='yes':
354+
line=line.replace('DQMROOT','DQM')
347355
outFile.write(line+'\n')
348356
outFile.write('\n'+'\n')
349357
outFile.close()

Configuration/PyReleaseValidation/python/relval_steps.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -771,15 +771,15 @@ def gen2017(fragment,howMuch):
771771
steps['AMPT_PPb_5020GeV_MinimumBiasINPUT']={'INPUT':InputInfo(dataSet='/RelValAMPT_PPb_5020GeV_MinimumBias/%s/GEN-SIM'%(baseDataSetRelease[5],),location='STD')}
772772

773773
## heavy ions tests
774-
U500by1={'--relval': '500,1'}
774+
U2000by1={'--relval': '2000,1'}
775775
U80by1={'--relval': '80,1'}
776776

777777
hiDefaults={'--conditions':'auto:starthi_HIon',
778778
'--scenario':'HeavyIons'}
779779

780-
steps['HydjetQ_MinBias_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_MinBias_2760GeV_cfi',U500by1)])
780+
steps['HydjetQ_MinBias_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_MinBias_2760GeV_cfi',U2000by1)])
781781
steps['HydjetQ_MinBias_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_MinBias_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[1],),location='STD',split=5)}
782-
steps['HydjetQ_MinBias_2760GeV_UP15']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_MinBias_2760GeV_cfi',U500by1)])
782+
steps['HydjetQ_MinBias_2760GeV_UP15']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_MinBias_2760GeV_cfi',U2000by1)])
783783
steps['HydjetQ_MinBias_2760GeV_UP15INPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_MinBias_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[1],),location='STD',split=5)}
784784
steps['HydjetQ_B0_2760GeV']=merge([{'-n':1},hiDefaults,genS('Hydjet_Quenched_B0_2760GeV_cfi',U80by1)])
785785
steps['HydjetQ_B0_2760GeVINPUT']={'INPUT':InputInfo(dataSet='/RelValHydjetQ_B0_2760GeV/%s/GEN-SIM'%(baseDataSetRelease[4],),location='STD')}

Configuration/PyReleaseValidation/scripts/runTheMatrix.py

+6
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ def runSelected(opt):
132132
dest='wmcontrol',
133133
default=None,
134134
)
135+
parser.add_option('--revertDqmio',
136+
help='When submitting workflows to wmcontrol, force DQM outout to use pool and not DQMIO',
137+
choices=['yes','no'],
138+
dest='revertDqmio',
139+
default='no',
140+
)
135141
parser.add_option('--optionswm',
136142
help='Specify a few things for wm injection',
137143
default='',

0 commit comments

Comments
 (0)