Skip to content

Commit 06c85a6

Browse files
committed
Only run workflow 1000 over Run 1 skims
1 parent c0732b5 commit 06c85a6

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

Configuration/Applications/python/ConfigBuilder.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1909,10 +1909,16 @@ def prepare_SKIM(self, stepSpec = "all"):
19091909
print("replacing %s process name - step SKIM:%s will use '%s'" % (stdHLTProcName, sequence, newHLTProcName))
19101910

19111911
## support @Mu+DiJet+@Electron configuration via autoSkim.py
1912-
from Configuration.Skimming.autoSkim import autoSkim
1912+
from Configuration.Skimming.autoSkim import autoSkim, autoSkimRunI
19131913
skimlist = sequence.split('+')
19141914
self.expandMapping(skimlist,autoSkim)
19151915

1916+
autoSkimRunIList = list(set(
1917+
item
1918+
for v in autoSkimRunI.values()
1919+
for item in v.split('+')
1920+
))
1921+
19161922
#print("dictionary for skims:", skimConfig.__dict__)
19171923
for skim in skimConfig.__dict__:
19181924
skimstream = getattr(skimConfig, skim)
@@ -1931,6 +1937,10 @@ def prepare_SKIM(self, stepSpec = "all"):
19311937
shortname = skim.replace('SKIMStream','')
19321938
if (sequence=="all"):
19331939
self.addExtraStream(skim,skimstream)
1940+
elif (sequence=="allRun1"):
1941+
if not shortname in autoSkimRunIList:
1942+
continue
1943+
self.addExtraStream(skim,skimstream)
19341944
elif (shortname in skimlist):
19351945
self.addExtraStream(skim,skimstream)
19361946
#add a DQM eventcontent for this guy
@@ -1948,7 +1958,7 @@ def prepare_SKIM(self, stepSpec = "all"):
19481958
for i in range(skimlist.count(shortname)):
19491959
skimlist.remove(shortname)
19501960

1951-
if (skimlist.__len__()!=0 and sequence!="all"):
1961+
if (skimlist.__len__()!=0 and sequence!="all" and sequence!="allRun1"):
19521962
print('WARNING, possible typo with SKIM:'+'+'.join(skimlist))
19531963
raise Exception('WARNING, possible typo with SKIM:'+'+'.join(skimlist))
19541964

Configuration/PyReleaseValidation/python/relval_production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# the name of step1 will be used
1010

1111
## data production test
12-
workflows[1000] = [ '',['RunMinBias2011A','TIER0','SKIMD','HARVESTDfst2','ALCASPLIT']]
12+
workflows[1000] = [ '',['RunMinBias2011A','TIER0','SKIMDRun1','HARVESTDfst2','ALCASPLIT']]
1313
workflows[1001] = [ '',['RunMinBias2011A','TIER0EXP','ALCAEXP','ALCAHARVDSIPIXELCALRUN1','ALCAHARVD1','ALCAHARVD2','ALCAHARVD3','ALCAHARVD4','ALCAHARVD5','ALCAHARVD7','ALCAHARVD8']]
1414
workflows[1001.2] = [ '',['RunZeroBias2017F','TIER0EXPRUN2','ALCAEXPRUN2','ALCAHARVDSIPIXELCAL','ALCAHARVDSIPIXELCALLA','ALCAHARVD4','ALCAHARVDSIPIXELALIHG']]
1515
workflows[1001.3] = [ '',['RunSingleMuon2022B','TIER0EXPRUN3','ALCAEXPRUN3','ALCAHARVDEXPRUN3']]

Configuration/PyReleaseValidation/python/relval_steps.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4418,6 +4418,13 @@ def gen2024HiMix(fragment,howMuch):
44184418

44194419
steps['SKIMDreHLT'] = merge([ {'--conditions':'auto:run1_data_%s'%menu, '--hltProcess':'reHLT', '--filein':'file:step3.root'}, steps['SKIMD'] ])
44204420

4421+
steps['SKIMDRun1']={'-s':'SKIM:allRun1',
4422+
'--conditions':'auto:run1_data',
4423+
'--data':'',
4424+
'--scenario':'pp',
4425+
'--filein':'file:step2.root',
4426+
'--secondfilein':'filelist:step1_dasquery.log'}
4427+
44214428
steps['SKIMCOSD']={'-s':'SKIM:all',
44224429
'--conditions':'auto:run1_data',
44234430
'--data':'',

0 commit comments

Comments
 (0)