Skip to content

Commit 2145e05

Browse files
committed
Lighter das-up-to-nevents when running tests, moving limited matrix data wfs to fixed events
1 parent 05248a5 commit 2145e05

File tree

3 files changed

+36
-21
lines changed

3 files changed

+36
-21
lines changed

Configuration/PyReleaseValidation/python/relval_steps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,11 +2340,11 @@ def lhegensim2018ml(fragment,howMuch):
23402340

23412341
steps['HLTDR3_2023B']=merge( [ {'-s':'L1REPACK:Full,HLT:@%s'%hltKey2023,},{'--conditions':'auto:run3_hlt_relval'},{'--era' : 'Run3'},steps['HLTD'] ] )
23422342

2343-
steps['HLTDR3_2024']=merge( [ {'-s':'L1REPACK:Full,HLT:@%s'%hltKey2025,},{'--conditions':'auto:run3_hlt_relval'},{'--era' : 'Run3_2024'},steps['HLTD'] ] )
2343+
steps['HLTDR3_2024']=merge( [ {'-s':'L1REPACK:Full,HLT:@%s'%hltKey2024,},{'--conditions':'auto:run3_hlt_relval'},{'--era' : 'Run3_2024'},steps['HLTD'] ] )
23442344

23452345
steps['HLTDR3_2025']=merge( [ {'-s':'L1REPACK:Full,HLT:@%s'%hltKey2025,},{'--conditions':'auto:run3_hlt_relval'},{'--era' : 'Run3_2025'},steps['HLTD'] ] )
23462346

2347-
steps['HLTDR3_ScoutingPFMonitor_2024']=merge( [ {'-s':'L1REPACK:Full,HLT:@%s'%hltKey2025,},
2347+
steps['HLTDR3_ScoutingPFMonitor_2024']=merge( [ {'-s':'L1REPACK:Full,HLT:@%s'%hltKey2024,},
23482348
{'--conditions':'auto:run3_hlt_relval'},
23492349
{'--era' : 'Run3_2024'},
23502350
{'--filein' : '/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/Scouting/Run3/ScoutingPFMonitor/300684ed-1a51-474f-8c4f-b3bf1e1f5044_skimmed.root'},

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

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def get_lumi_ranges(i):
3737
return result
3838

3939
def das_do_command(cmd):
40+
print( "Running DAS command: %s"%cmd) ##TODO: remove me
4041
out = subprocess.check_output(cmd, shell=True, executable="/bin/bash").decode('utf8')
4142
return out.split("\n")
4243

@@ -197,30 +198,38 @@ def no_intersection():
197198
if (len(golden_data_runs)==0):
198199
no_intersection()
199200

201+
if testing:
202+
golden_data_runs = golden_data_runs[:1] # take only the first run
200203
# building the dataframe, cleaning for bad lumis
201204
golden_data_runs_tocheck = golden_data_runs
202205

203-
if testing or args.precheck:
206+
if args.precheck and not testing:
204207
golden_data_runs_tocheck = []
205208
# Here we check run per run.
206209
# This implies more dasgoclient queries, but smaller outputs
207210
# useful when running the IB/PR tests not to have huge
208211
# query results that have to be cached.
209-
210212
sum_events = 0
211-
212213
for r in golden_data_runs:
213214
sum_events = sum_events + int(das_run_events_data(dataset,r))
214215
golden_data_runs_tocheck.append(r)
215216
if events > 0 and sum_events > events:
216217
break
217-
218218
das_opt = "run in %s"%(str([int(g) for g in golden_data_runs_tocheck]))
219-
220-
df = das_lumi_data(dataset,opt=das_opt).merge(das_file_data(dataset,opt=das_opt),on="file",how="inner") # merge file informations with run and lumis
219+
220+
if testing:
221+
golden_data_runs_tocheck = golden_data_runs[:1] # take only the first run
222+
# in testing mode we just take the first file
223+
das_opt = "run=%s"%(golden_data_runs_tocheck[0])
224+
225+
if not testing:
226+
df = das_lumi_data(dataset,opt=das_opt).merge(das_file_data(dataset,opt=das_opt),on="file",how="inner") # merge file informations with run and lumis
227+
else:
228+
df = das_lumi_data(dataset,opt=das_opt)
229+
221230
df["lumis"] = [[int(ff) for ff in f.replace("[","").replace("]","").split(",")] for f in df.lumis.values]
222231

223-
if not args.nogolden:
232+
if not args.nogolden and not testing:
224233

225234
df_rs = []
226235
for r in golden_data_runs_tocheck:
@@ -247,13 +256,15 @@ def no_intersection():
247256
df.loc[:,"max_lumi"] = [max(f) for f in df.lumis]
248257
df = df.sort_values(["run","min_lumi","max_lumi"])
249258

259+
if testing:
260+
df = df.head(1) # take only the first file
250261
if site is not None:
251262
df = df.merge(das_file_site(dataset,site),on="file",how="inner")
252263

253264
if args.pandas:
254265
df.to_csv(dataset.replace("/","")+".csv")
255266

256-
if events > 0:
267+
if events > 0 and not testing:
257268
df = df[df["events"] <= events] #jump too big files
258269
df.loc[:,"sum_evs"] = df.loc[:,"events"].cumsum()
259270
df = df[df["sum_evs"] < events]

Configuration/PyReleaseValidation/scripts/runTheMatrix.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def runSelected(opt):
9999
12846.0, # RelValZEE_13 2024
100100
13034.0, # RelValTTbar_14TeV 2024 PU = Run3_Flat55To75_PoissonOOTPU
101101
16834.0, # RelValTTbar_14TeV 2025
102-
17034.0, # RelValTTbar_14TeV 2025 PU = Run3_Flat55To75_PoissonOOTPU
102+
17034.0, # RelValTTbar_14TeV 2025 PU = Run3_Flat55To75_PoissonOOTPU
103103
14034.0, # RelValTTbar_14TeV Run3_2023_FastSim
104104
14234.0, # RelValTTbar_14TeV Run3_2023_FastSim PU = Run3_Flat55To75_PoissonOOTPU
105105
2500.3001, # RelValTTbar_14TeV NanoAOD from existing MINI
@@ -110,20 +110,24 @@ def runSelected(opt):
110110
139.001, # Run2021 MinimumBias Commissioning2021
111111

112112
# 2022
113-
140.045, # Run2022C JetHT
113+
2022.106001, # Run2022C JetHT
114114

115115
# 2023
116-
141.042, # Run2023D ZeroBias
116+
2023.211001, # Run2023D ZeroBias
117117

118118
# 2024
119-
145.014, # Run2024B ZeroBias
120-
145.104, # Run2024C JetMet0
121-
145.202, # Run2024D EGamma0
122-
145.301, # Run2024E DisplacedJet
123-
145.408, # Run2024F ParkingDoubleMuonLowMass0
124-
145.500, # Run2024G BTagMu
125-
145.604, # Run2024H JetMET0
126-
145.713, # Run2024I Tau
119+
2024.014001, # Run2024B ZeroBias
120+
2024.204001, # Run2024C JetMet0
121+
2024.202001, # Run2024D EGamma0
122+
2024.301001, # Run2024E DisplacedJet
123+
2024.408001, # Run2024F ParkingDoubleMuonLowMass0
124+
2024.500001, # Run2024G BTagMu
125+
2024.504001, # Run2024H JetMET0
126+
2024.713001, # Run2024I Tau
127+
128+
# 2025
129+
2025.014001, # Run2025B ZeroBias
130+
2025.104001, # Run2025C JetMet0
127131
],
128132

129133
'phase2' : [

0 commit comments

Comments
 (0)