Skip to content

Commit 1be6260

Browse files
committed
Naming fix for Parking; using lumis in golden wfs
1 parent 710330f commit 1be6260

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

Configuration/PyReleaseValidation/python/MatrixUtil.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ def das(self, das_options, dataset):
134134
elif self.skimEvents:
135135
from os import getenv
136136
if getenv("JENKINS_PREFIX") is not None:
137-
# to be assured that whatever happens the files are only those at CERN
138-
command = "das-up-to-nevents.py -d %s -e %d -pc"%(dataset,self.events)
137+
# to be sure that whatever happens the files are only those at CERN
138+
command = "das-up-to-nevents.py -d %s -e %d -pc -l lumi_ranges.txt"%(dataset,self.events)
139139
else:
140-
command = "das-up-to-nevents.py -d %s -e %d"%(dataset,self.events)
140+
command = "das-up-to-nevents.py -d %s -e %d -l lumi_ranges.txt"%(dataset,self.events)
141141
# Run filter on DAS output
142142
if self.ib_blacklist:
143143
command += " | grep -E -v "

Configuration/PyReleaseValidation/python/WorkFlowRunner.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,14 @@ def closeCmd(i,ID):
137137
isInputOk = False
138138

139139
inFile = 'filelist:' + basename(dasOutputPath)
140+
141+
if com.skimEvents:
142+
lumiRangeFile='step%d_lumiRanges.log'%(istep,)
143+
cmd2 = preamble + "mv lumi_ranges.txt " + lumiRangeFile
144+
retStep = self.doCmd(cmd2)
145+
140146
print("---")
147+
141148
else:
142149
#chaining IO , which should be done in WF object already and not using stepX.root but <stepName>.root
143150
cmd += com

Configuration/PyReleaseValidation/python/relval_data_highstats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
wf_number = wf_number + offset_pd * p_n
2424
wf_number = wf_number + offset_events * evs
2525
wf_number = round(wf_number,6)
26-
step_name = "Run" + pd + era.split("Run")[1] + "_" + e_key
26+
step_name = "Run" + pd.replace("ParkingDouble","Park2") + era.split("Run")[1] + "_" + e_key
2727
workflows[wf_number] = ['',[step_name,'HLTDR3_2024','AODNANORUN3_reHLT_2024','HARVESTRUN3_2024']]
2828

2929
## 2023
@@ -38,7 +38,7 @@
3838
wf_number = wf_number + offset_pd * p_n
3939
wf_number = wf_number + offset_events * evs
4040
wf_number = round(wf_number,6)
41-
step_name = "Run" + pd + era.split("Run")[1] + "_" + e_key
41+
step_name = "Run" + pd.replace("ParkingDouble","Park2") + era.split("Run")[1] + "_" + e_key
4242
workflows[wf_number] = ['',[step_name,'HLTDR3_2023','AODNANORUN3_reHLT_2023','HARVESTRUN3_2023']]
4343

4444

Configuration/PyReleaseValidation/python/relval_standard.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
wf_number = wf_number + offset_pd * p_n
580580
wf_number = wf_number + 0.0001 * 0.01
581581
wf_number = round(wf_number,6)
582-
step_name = "Run" + pd + era.split("Run")[1] + "_10k"
582+
step_name = "Run" + pd.replace("ParkingDouble","Park2") + era.split("Run")[1] + "_10k"
583583
workflows[wf_number] = ['',[step_name,'HLTDR3_2024','AODNANORUN3_reHLT_2024','HARVESTRUN3_2024']]
584584

585585
# 2023
@@ -591,7 +591,7 @@
591591
wf_number = wf_number + offset_pd * p_n
592592
wf_number = wf_number + 0.0001 * 0.01
593593
wf_number = round(wf_number,6)
594-
step_name = "Run" + pd + era.split("Run")[1] + "_10k"
594+
step_name = "Run" + pd.replace("ParkingDouble","Park2") + era.split("Run")[1] + "_10k"
595595
workflows[wf_number] = ['',[step_name,'HLTDR3_2023','AODNANORUN3_reHLT_2023','HARVESTRUN3_2023']]
596596

597597
# 2022

Configuration/PyReleaseValidation/python/relval_steps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@
653653
for pd in pds_2024:
654654
dataset = "/" + pd + "/" + era + "-v1/RAW"
655655
for e_key,evs in event_steps_dict.items():
656-
step_name = "Run" + pd + era.split("Run")[1] + "_" + e_key
656+
step_name = "Run" + pd.replace("ParkingDouble","Park2") + era.split("Run")[1] + "_" + e_key
657657
steps[step_name] = {'INPUT':InputInfo(dataSet=dataset,label=era.split("Run")[1],events=int(evs*1e6), skimEvents=True, location='STD')}
658658

659659
###2023
@@ -665,7 +665,7 @@
665665
for pd in pds_2023:
666666
dataset = "/" + pd + "/" + era + "-v1/RAW"
667667
for e_key,evs in event_steps_dict.items():
668-
step_name = "Run" + pd + era.split("Run")[1] + "_" + e_key
668+
step_name = "Run" + pd.replace("ParkingDouble","Park2") + era.split("Run")[1] + "_" + e_key
669669
steps[step_name] = {'INPUT':InputInfo(dataSet=dataset,label=era.split("Run")[1],events=int(evs*1e6), skimEvents=True, location='STD')}
670670

671671
###2022

Configuration/PyReleaseValidation/scripts/das-up-to-nevents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def no_intersection():
237237
files = df.file
238238

239239
if lumis is not None:
240-
lumi_ranges = { int(r) : list(get_lumi_ranges(np.sort(np.concatenate(df.loc[df["run"]==r,"lumis"].values).ravel()).tolist())) for r in np.unique(df.run.values)}
240+
lumi_ranges = { int(r) : list(get_lumi_ranges(np.sort(np.concatenate(df.loc[df["run"]==r,"lumis"].values).ravel()).tolist())) for r in np.unique(df.run.values).tolist()}
241241

242242
with open(lumis, 'w') as fp:
243243
json.dump(lumi_ranges, fp)

0 commit comments

Comments
 (0)