ATLAS Offline Software
Loading...
Searching...
No Matches
RatesOverlapAnalysis Namespace Reference

Functions

 stream_json (menu_in, psks_in, stream1, stream2)
 chain_json (menu_in, psks_in, chain, stream)
 chain_comp_json (menu_in, ref_chain, comp_chain)
 chain_ref_json (menu_in, chain)
 psk_file (dict, psk_file)
 chain_set_json (menu_in, psks_in, chains)
 chain_regex (menu_in)
 exec_rates (hlt_ps, dir)
 stream_rate (stream1, stream2, dir)
 chain_rate (chain, stream, dir)
 chain_comp_rate (chain1, chain2)
 chain_set_rate (chains)
 pretty_csvs (chains_list)

Variables

 parser = argparse.ArgumentParser(description='Compare the rates of different streams')
 type
 str
 help
 default
 float
 e34
 int
 nargs
 False
 action
 args = parser.parse_args()
 filesIn = glob(f'{os.path.abspath(args.aod_dir)}/*')
str HLTMenu_filen = args.HLTMenu.split('/', 1)[1] if '/' in args.HLTMenu else args.HLTMenu
str hlt_in_filen = args.hlt_in.split('/', 1)[1] if '/' in args.hlt_in else args.hlt_in
str l1_ps_filen = args.l1_ps.split('/', 1)[1] if '/' in args.l1_ps else args.l1_ps
str hlt_ps_stream0_filen = args.hlt_ps_stream0.split('/', 1)[1] if '/' in args.hlt_ps_stream0 else args.hlt_ps_stream0
str hlt_ps_stream_filen = args.hlt_ps_stream.split('/', 1)[1] if '/' in args.hlt_ps_stream else args.hlt_ps_stream
str hlt_ps_chain_filen = args.hlt_ps_chain.split('/', 1)[1] if '/' in args.hlt_ps_chain else args.hlt_ps_chain
str hlt_ps_chain_set_filen = args.hlt_ps_chain_set.split('/', 1)[1] if '/' in args.hlt_ps_chain_set else args.hlt_ps_chain_set
str hlt_ps_chain_ref_filen = args.hlt_ps_chain_ref.split('/', 1)[1] if '/' in args.hlt_ps_chain_ref else args.hlt_ps_chain_ref
str hlt_ps_chain_comp_filen = args.hlt_ps_chain_comp.split('/', 1)[1] if '/' in args.hlt_ps_chain_comp else args.hlt_ps_chain_comp
str stream0_filen = args.stream0.split('/', 1)[1] if '/' in args.stream0 else args.stream0
str stream_filen = args.stream.split('/', 1)[1] if '/' in args.stream else args.stream
str chain_filen = args.chain.split('/', 1)[1] if '/' in args.chain else args.chain
str chain_set_filen = args.chain_set.split('/', 1)[1] if '/' in args.chain_set else args.chain_set
str chain_comp_filen = args.chain_comp.split('/', 1)[1] if '/' in args.chain_comp else args.chain_comp
str output_stream_filen = args.stream_out.split('/', 1)[1] if '/' in args.stream_out else args.stream_out
str output_chain_filen = args.chain_out.split('/', 1)[1] if '/' in args.chain_out else args.chain_out
str output_chain_comp_filen = args.chain_comp_out.split('/', 1)[1] if '/' in args.chain_comp_out else args.chain_comp_out
 origdir = os.getcwd()
list cmd_total
int s = 0
 streamdir = os.getcwd()
 dict_stream0 = stream_json(HLTMenu_filen, hlt_in_filen, stream0_filen, stream_filen[j])[0]
 dict_stream = stream_json(HLTMenu_filen, hlt_in_filen, stream0_filen, stream_filen[j])[1]
 chaindir = os.getcwd()
 regex_chains = chain_regex(HLTMenu_filen)
 dict_chain = chain_json(HLTMenu_filen, hlt_in_filen, regex_chains[i], stream0_filen)[1]
int c = 0
 regex_chainsComp = chain_regex(HLTMenu_filen)
 chain_comp_dir = os.getcwd()
 dict_chain_ref = chain_ref_json(HLTMenu_filen, regex_chainsComp[0])
 dict_chain_comp = chain_comp_json(HLTMenu_filen, regex_chainsComp[0], regex_chainsComp[i])
 regex_chainsSet = chain_regex(HLTMenu_filen)
 chain_set_dir = os.getcwd()
 dict_chain_set = chain_set_json(HLTMenu_filen, hlt_in_filen, regex_chainsSet)

Function Documentation

◆ chain_comp_json()

RatesOverlapAnalysis.chain_comp_json ( menu_in,
ref_chain,
comp_chain )

Definition at line 172 of file RatesOverlapAnalysis.py.

172def chain_comp_json(menu_in, ref_chain, comp_chain):
173 # PSKs are set to 1! no need for input prescales
174 f = open(menu_in)
175 menu = json.load(f)
176
177 dict_chain = {}
178
179 for i in menu['chains']:
180 if i == ref_chain:
181 dict_chain[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": 1, "enabled": True}
182 elif i == comp_chain:
183 dict_chain[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": 1, "enabled": True}
184 else:
185 dict_chain[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": -1, "enabled": False}
186
187 return dict_chain
188

◆ chain_comp_rate()

RatesOverlapAnalysis.chain_comp_rate ( chain1,
chain2 )

Definition at line 378 of file RatesOverlapAnalysis.py.

378def chain_comp_rate(chain1, chain2):
379
380 df1 = pd.read_csv(f"{chain1}/output/csv/Table_Rate_ChainHLT_HLT_All.csv")
381 df1.set_index('Name', inplace=True)
382
383 df2 = pd.read_csv(f"{chain2}/output/csv/Table_Rate_ChainHLT_HLT_All.csv")
384 df2.set_index('Name', inplace=True)
385
386 # rate where only one chain is enabled
387 wrate1 = float(df1.loc[chain1]['Weighted PS Rate [Hz]'])
388 urate1 = float(df1.loc[chain1]['Unique Rate [Hz]'])
389 wrate1err = float(df1.loc[chain1]['Weighted PS Rate Err [Hz]'])
390 urate1err = float(df1.loc[chain1]['Unique Rate Err [Hz]'])
391
392 # rate when both chains are enabled
393 wrate1_comb = float(df2.loc[chain1]['Weighted PS Rate [Hz]'])
394 urate1_comb = float(df2.loc[chain1]['Unique Rate [Hz]'])
395 wrate2 = float(df2.loc[chain2]['Weighted PS Rate [Hz]'])
396 urate2 = float(df2.loc[chain2]['Unique Rate [Hz]'])
397 wrate1_comb_err = float(df2.loc[chain1]['Weighted PS Rate Err [Hz]'])
398 urate1_comb_err = float(df2.loc[chain1]['Unique Rate Err [Hz]'])
399 wrate2err = float(df2.loc[chain2]['Weighted PS Rate Err [Hz]'])
400 urate2err = float(df2.loc[chain2]['Unique Rate Err [Hz]'])
401
402 try:
403 percentage = wrate2/wrate1_comb * 100
404 except ZeroDivisionError:
405 print("Cannot compute chains' overlap percentage (ZeroDivisionError): percentage set to None")
406 percentage = None
407
408 with open(f"ChainComp_{i}", 'w') as f:
409 table = [[wrate1, wrate1err, urate1, urate1err],
410 [wrate1_comb, wrate1_comb_err, urate1_comb, urate1_comb_err],
411 [wrate2, wrate2err, urate2, urate2err]]
412 pd.set_option('display.max_colwidth', None)
413 df_out = pd.DataFrame(table, columns = ['Weighted PS Rate', 'Weighted PS Rate Error', 'Unique Rate', 'Unique Rate Error'],
414 index = ['Reference Chain Only', 'Reference Chain', 'Comparison Chain'])
415 print(df_out, file=f)
416 print('The overlap between ' f"{chain1} and " f"{chain2} is", percentage, '%', file=f)
417
void print(char *figname, TCanvas *c1)

◆ chain_json()

RatesOverlapAnalysis.chain_json ( menu_in,
psks_in,
chain,
stream )

Definition at line 147 of file RatesOverlapAnalysis.py.

147def chain_json(menu_in, psks_in, chain, stream):
148 dict_stream = {}
149 dict_chain = {}
150
151 f = open(menu_in)
152 menu = json.load(f)
153
154 h = open(psks_in)
155 psks = json.load(h)
156
157 for i in menu['chains']: # go through all the chains
158 for k in psks['prescales']: # go through all the chains in the psk_in (k)
159 if i == k: # make sure you work with the same chains
160 for j in menu['chains'][i]['streams']: # go through all the streams
161 if j == stream:
162 dict_stream[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": psks['prescales'][k]['prescale'],
163 "enabled": True}
164 dict_chain[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": psks['prescales'][k]['prescale'],
165 "enabled": True}
166 if k == chain:
167 dict_stream[i] = {"hash": menu['chains'][i]['nameHash'],
168 "prescale": psks['prescales'][k]['prescale'], "enabled": True}
169 dict_chain[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": -1, "enabled": False} # here chain is the one when it is DISABLED
170 return dict_stream, dict_chain
171

◆ chain_rate()

RatesOverlapAnalysis.chain_rate ( chain,
stream,
dir )

Definition at line 342 of file RatesOverlapAnalysis.py.

342def chain_rate(chain, stream, dir):
343 # df where the chain is disabled - get the menu rate when this is alone
344 df = pd.read_csv(f"{chain}/output/csv/Table_Rate_Group_HLT_All.csv")
345 df.set_index('Name', inplace=True)
346
347 df_chain = pd.read_csv(f"{dir}/output/csv/Table_Rate_ChainHLT_HLT_All.csv")
348 df_stream = pd.read_csv(f"{dir}/output/csv/Table_Rate_Group_HLT_All.csv")
349 df_chain.set_index('Name', inplace=True)
350 df_stream.set_index('Name', inplace=True)
351
352 chain_rate = float(df_chain.loc[chain]['Unique Rate [Hz]'])
353 chain_rate_err = float(df_chain.loc[chain]['Unique Rate Err [Hz]'])
354
355 global_rate = float(df_stream.loc[f"STREAM:{stream}"]['Weighted PS Rate [Hz]'])
356 global_rate_err = float(df_stream.loc[f"STREAM:{stream}"]['Weighted PS Rate Err [Hz]'])
357
358 global_dis_rate = float(df.loc['RATE_GLOBAL_HLT']['Weighted PS Rate [Hz]']) # chain is disabled
359 global_dis_rate_err = float(df.loc['RATE_GLOBAL_HLT']['Weighted PS Rate Err [Hz]']) # chain is disabled
360
361 unique_contri = global_rate - global_dis_rate
362 percentage = unique_contri/global_rate * 100
363
364 with open(output_chain_filen, 'w') as f:
365 print('Computing the unique rate of a chain w.r.t. a stream', file=f)
366 print('Reference Stream: ', stream, file=f)
367 print('Compared Chain: ', chain, file=f)
368 table = [[chain_rate, chain_rate_err],
369 [global_rate, global_rate_err],
370 [global_dis_rate, global_dis_rate_err],
371 [unique_contri, '---']]
372 df_out = pd.DataFrame(table, index = ['Chain Unique Rate', 'Stream and Chain Rate',
373 'Stream without Chain Rate', 'Unique Contribution'],
374 columns = ['Rate [Hz]', 'Rate Error [Hz]'])
375 print(df_out, file=f)
376 print(f"{chain} has a unique contribution of", percentage, '% to ' f"{stream}", file=f)
377

◆ chain_ref_json()

RatesOverlapAnalysis.chain_ref_json ( menu_in,
chain )

Definition at line 189 of file RatesOverlapAnalysis.py.

189def chain_ref_json(menu_in, chain):
190 # PSKs are set to 1! no need for input prescales
191 f = open(menu_in)
192 menu = json.load(f)
193
194 dict_chain = {}
195
196 for i in menu['chains']:
197 if i == chain:
198 dict_chain[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": 1, "enabled": True}
199 else:
200 dict_chain[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": -1, "enabled": False}
201
202 return dict_chain
203

◆ chain_regex()

RatesOverlapAnalysis.chain_regex ( menu_in)

Definition at line 239 of file RatesOverlapAnalysis.py.

239def chain_regex(menu_in):
240
241 f = open(menu_in)
242 menu = json.load(f)
243
244 while True:
245 regex_input = input("RegEx expression: ")
246
247 list_of_chains = []
248 chains_to_analyse = []
249
250 for i in menu['chains']:
251 list_of_chains.append(i)
252
253 m = 0
254 for chain in list_of_chains:
255 if re.match(regex_input, chain):
256 m += 1
257 chains_to_analyse.append(chain)
258 else:
259 continue
260
261 if m != 0:
262 print('These are the chains you are trying to compare: ', "\n".join(chains_to_analyse))
263 user_conf = input('Are you sure you want to continue? [y/n]')
264 if user_conf.lower() in ["yes", "y"]:
265 print("sure, let's go")
266 return chains_to_analyse
267 if user_conf.lower() in ["no", 'n']:
268 print("alright, then try again")
269 else:
270 print('Are you sure you are RegEx entering the expression correctly? Try again :)')
271
272# -------------------------------------------------------------------------------------------------------------------
273# RATES ANALYSIS
274# -------------------------------------------------------------------------------------------------------------------
275
276# Run full rates analysis using RatesAnalysisProcessingWrapper.py

◆ chain_set_json()

RatesOverlapAnalysis.chain_set_json ( menu_in,
psks_in,
chains )

Definition at line 214 of file RatesOverlapAnalysis.py.

214def chain_set_json(menu_in, psks_in, chains):
215 f = open(menu_in)
216 menu = json.load(f)
217
218 h = open(psks_in)
219 psks = json.load(h)
220
221 dict_chain_set = {}
222
223 for i in menu['chains']: # go through all the chains
224 for k in psks['prescales']: # go through all the chains in the psk_in (k)
225 if i == k:
226 dict_chain_set[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": psks['prescales'][k]['prescale'],
227 "enabled": True}
228 for j in range(len(chains)):
229 if i == chains[j]:
230 dict_chain_set[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": -1, "enabled": False}
231
232 return dict_chain_set
233
234
235# ------------------------------------------------------------------------------------------------------------
236# GETTING REGEX INPUTS
237# ------------------------------------------------------------------------------------------------------------
238

◆ chain_set_rate()

RatesOverlapAnalysis.chain_set_rate ( chains)

Definition at line 418 of file RatesOverlapAnalysis.py.

418def chain_set_rate(chains):
419 df1 = pd.read_csv("fullMenu/output/csv/Table_Rate_Group_HLT_All.csv")
420 df1.set_index('Name', inplace=True)
421
422 df2 = pd.read_csv("setMenu/output/csv/Table_Rate_Group_HLT_All.csv")
423 df2.set_index('Name', inplace=True)
424
425 # Global HLT Rate
426 fullrate = float(df1.loc['RATE_GLOBAL_HLT']['Weighted PS Rate [Hz]'])
427 setrate = float(df2.loc['RATE_GLOBAL_HLT']['Weighted PS Rate [Hz]'])
428 fullrate_err = float(df1.loc['RATE_GLOBAL_HLT']['Weighted PS Rate Err [Hz]'])
429 setrate_err = float(df2.loc['RATE_GLOBAL_HLT']['Weighted PS Rate Err [Hz]'])
430
431 unique_rate = fullrate - setrate
432 percentage = unique_rate/setrate * 100
433
434 with open("SetMonitoring.txt", 'w') as f:
435 table = [[fullrate, fullrate_err],
436 [setrate, setrate_err]]
437 pd.set_option('display.max_colwidth', None)
438 df_out = pd.DataFrame(table, columns = ['Global HLT Rate', 'Global HLT Rate Error'],
439 index = ['Full Menu', 'Chains disabled'])
440 print("The chains that have been disabled are: ", file=f)
441 for i in range(len(chains)):
442 print(f"{chains[i]}", file=f)
443 print("-------------------------------------------------------", file=f)
444 print(df_out, file=f)
445 print("-------------------------------------------------------", file=f)
446 print('Unique rate of the set: ', unique_rate, file=f)
447 print('The set has a contribution of', percentage, '% to the Global HLT Rate', file=f)
448

◆ exec_rates()

RatesOverlapAnalysis.exec_rates ( hlt_ps,
dir )

Definition at line 277 of file RatesOverlapAnalysis.py.

277def exec_rates(hlt_ps, dir):
278
279 #filesIn_str = "','".join(filesIn)
280
281 cmd_rates = [
282 'RatesAnalysisProcessingWrapper.py',
283 '--hlt_ps', hlt_ps,
284 '--l1_ps', l1_ps_filen,
285 '--targetlumi', str(args.targetlumi),
286 args.aod_dir,
287 '--workdir', dir
288 ]
289
290 if args.maxEvents>0:
291 cmd_rates += ['--maxEvents',str(args.maxEvents)]
292
293 command = ' '.join(cmd_rates)
294
295 status = os.WEXITSTATUS(os.system(command))
296 if status != 0:
297 exit('fail')
298
299# ------------------------------------------------------------------------------------------------------------
300# GETTING THE STREAM AND CHAIN RATE - CSVs
301# ------------------------------------------------------------------------------------------------------------
302

◆ pretty_csvs()

RatesOverlapAnalysis.pretty_csvs ( chains_list)

Definition at line 449 of file RatesOverlapAnalysis.py.

449def pretty_csvs(chains_list):
450
451 # csv part goes here now
452 with open('ChainAnalysisSummary.txt', 'w') as t:
453
454 pd.set_option('max_colwidth', 400)
455
456 print('The reference chain is ',chains_list[0] , file=t)
457 print('--------------------------------------------------------------------------------', file=t)
458 print('--------------------------------------------------------------------------------', file=t)
459
460 for p in range(1, len(chains_list)):
461
462 print('For chain', chains_list[p], ':' , file=t)
463 df = pd.read_csv(f"ChainComp_{p}")
464 print(df.drop([0]), file=t)
465 print('--------------------------------------------------------------------------------', file=t)
466
467# ------------------------------------------------------------------------------------------------------------
468# CALLING THE FUNCTIONS
469# ------------------------------------------------------------------------------------------------------------
470

◆ psk_file()

RatesOverlapAnalysis.psk_file ( dict,
psk_file )

Definition at line 204 of file RatesOverlapAnalysis.py.

204def psk_file(dict, psk_file):
205 psk_dict = {
206 "filetype": "hltprescale",
207 "name": "Physics_pp_2.0e+34_2340b",
208 "prescales":dict
209 }
210
211 with open(psk_file, 'w') as file:
212 json.dump(psk_dict, file, indent=4)
213

◆ stream_json()

RatesOverlapAnalysis.stream_json ( menu_in,
psks_in,
stream1,
stream2 )

Definition at line 120 of file RatesOverlapAnalysis.py.

120def stream_json(menu_in, psks_in, stream1, stream2):
121 f = open(menu_in)
122 menu = json.load(f)
123
124 h = open(psks_in)
125 psks = json.load(h)
126
127 dict_stream1 = {}
128 dict_stream2 = {}
129 for i in menu['chains']: # go through all the chains
130 for k in psks['prescales']: # go through all the chains in the psk_in (k)
131 if i == k: # make sure you work with the same chains
132 for j in menu['chains'][i]['streams']:
133 if j == stream1:
134 dict_stream1[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": psks['prescales'][k]['prescale'],
135 "enabled": True}
136 dict_stream2[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": psks['prescales'][k]['prescale'],
137 "enabled": True}
138 elif j == stream2:
139 dict_stream2[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": psks['prescales'][k]['prescale'],
140 "enabled": True}
141 dict_stream1[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": -1, "enabled": False}
142 else:
143 dict_stream1[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": -1, "enabled": False}
144 dict_stream2[i] = {"hash": menu['chains'][i]['nameHash'], "prescale": -1, "enabled": False}
145 return dict_stream1, dict_stream2
146

◆ stream_rate()

RatesOverlapAnalysis.stream_rate ( stream1,
stream2,
dir )

Definition at line 303 of file RatesOverlapAnalysis.py.

303def stream_rate(stream1, stream2, dir):
304
305 df_stream0 = pd.read_csv(f"{dir}/output/csv/Table_Rate_Group_HLT_All.csv")
306 df_stream0.set_index('Name', inplace=True)
307 rate0 = float(df_stream0.loc['RATE_GLOBAL_HLT']['Weighted PS Rate [Hz]'])
308 rate0err = float(df_stream0.loc['RATE_GLOBAL_HLT']['Weighted PS Rate Err [Hz]'])
309
310 df_global = pd.read_csv(f"{stream2}/output/csv/Table_Rate_Group_HLT_All.csv")
311 df_global.set_index('Name', inplace=True)
312 rateglobal = float(df_global.loc['RATE_GLOBAL_HLT']['Weighted PS Rate [Hz]'])
313 rateglobalerr = float(df_global.loc['RATE_GLOBAL_HLT']['Weighted PS Rate Err [Hz]'])
314
315 df_stream2 = pd.read_csv(f"{stream2}/output/csv/Table_Rate_ChainHLT_HLT_All.csv")
316 df_stream2.set_index('Name', inplace=True)
317 rate2 = float(df_global.loc[f"STREAM:{stream2}"]['Weighted PS Rate [Hz]'])
318 rate2err = float(df_global.loc[f"STREAM:{stream2}"]['Weighted PS Rate Err [Hz]'])
319
320 unique_rate = rateglobal - rate0
321
322 try:
323 percentage = (rate2 - unique_rate)/rate2 * 100
324 except ZeroDivisionError:
325 print("Cannot compute streams' overlap percentage (ZeroDivisionError): percentage set to None")
326 percentage = None
327
328
329 with open(output_stream_filen, 'w') as f:
330 print('Computing the unique rate of a stream w.r.t. a different stream', file=f)
331 print('Reference Stream: ', stream1, file=f)
332 print('Compared Stream: ', stream2, file=f)
333 table = [[rate0, rate0err],
334 [rateglobal, rateglobalerr],
335 [rate2, rate2err],
336 [unique_rate, ' ']]
337 df_out = pd.DataFrame(table, index = [f'Total rate of {stream1}' ,'Rate of the two streams including overlap', f'Total rate of {stream2}', f"Unique rate of {stream2}"],
338 columns = ['Weighted PS Rate [Hz]', "Weighted PS Rate Err [Hz]"])
339 print(df_out, file=f)
340 print(f"The overlap between {stream1} and {stream2} is {percentage}", file=f)
341

Variable Documentation

◆ action

RatesOverlapAnalysis.action

Definition at line 53 of file RatesOverlapAnalysis.py.

◆ args

RatesOverlapAnalysis.args = parser.parse_args()

Definition at line 56 of file RatesOverlapAnalysis.py.

◆ c

int RatesOverlapAnalysis.c = 0

Definition at line 541 of file RatesOverlapAnalysis.py.

◆ chain_comp_dir

RatesOverlapAnalysis.chain_comp_dir = os.getcwd()

Definition at line 588 of file RatesOverlapAnalysis.py.

◆ chain_comp_filen

str RatesOverlapAnalysis.chain_comp_filen = args.chain_comp.split('/', 1)[1] if '/' in args.chain_comp else args.chain_comp

Definition at line 92 of file RatesOverlapAnalysis.py.

◆ chain_filen

str RatesOverlapAnalysis.chain_filen = args.chain.split('/', 1)[1] if '/' in args.chain else args.chain

Definition at line 90 of file RatesOverlapAnalysis.py.

◆ chain_set_dir

RatesOverlapAnalysis.chain_set_dir = os.getcwd()

Definition at line 657 of file RatesOverlapAnalysis.py.

◆ chain_set_filen

str RatesOverlapAnalysis.chain_set_filen = args.chain_set.split('/', 1)[1] if '/' in args.chain_set else args.chain_set

Definition at line 91 of file RatesOverlapAnalysis.py.

◆ chaindir

RatesOverlapAnalysis.chaindir = os.getcwd()

Definition at line 502 of file RatesOverlapAnalysis.py.

◆ cmd_total

list RatesOverlapAnalysis.cmd_total
Initial value:
1= [
2 '--inputPrescalesHLTJSON', hlt_in_filen,
3 '--outputPrescalesHLTJSON1', hlt_ps_stream0_filen,
4 '--outputPrescalesHLTJSON2', hlt_ps_stream_filen,
5 '--stream0', stream0_filen,
6 '--stream', stream_filen,
7 '--chain', chain_filen,
8 '--chainSet', chain_set_filen,
9 '--chainComp', chain_comp_filen,
10 ]

Definition at line 105 of file RatesOverlapAnalysis.py.

◆ default

RatesOverlapAnalysis.default

Definition at line 19 of file RatesOverlapAnalysis.py.

◆ dict_chain

RatesOverlapAnalysis.dict_chain = chain_json(HLTMenu_filen, hlt_in_filen, regex_chains[i], stream0_filen)[1]

Definition at line 520 of file RatesOverlapAnalysis.py.

◆ dict_chain_comp

RatesOverlapAnalysis.dict_chain_comp = chain_comp_json(HLTMenu_filen, regex_chainsComp[0], regex_chainsComp[i])

Definition at line 598 of file RatesOverlapAnalysis.py.

◆ dict_chain_ref

RatesOverlapAnalysis.dict_chain_ref = chain_ref_json(HLTMenu_filen, regex_chainsComp[0])

Definition at line 591 of file RatesOverlapAnalysis.py.

◆ dict_chain_set

RatesOverlapAnalysis.dict_chain_set = chain_set_json(HLTMenu_filen, hlt_in_filen, regex_chainsSet)

Definition at line 661 of file RatesOverlapAnalysis.py.

◆ dict_stream

RatesOverlapAnalysis.dict_stream = stream_json(HLTMenu_filen, hlt_in_filen, stream0_filen, stream_filen[j])[1]

Definition at line 488 of file RatesOverlapAnalysis.py.

◆ dict_stream0

RatesOverlapAnalysis.dict_stream0 = stream_json(HLTMenu_filen, hlt_in_filen, stream0_filen, stream_filen[j])[0]

Definition at line 487 of file RatesOverlapAnalysis.py.

◆ e34

RatesOverlapAnalysis.e34

Definition at line 20 of file RatesOverlapAnalysis.py.

◆ False

RatesOverlapAnalysis.False

Definition at line 53 of file RatesOverlapAnalysis.py.

◆ filesIn

RatesOverlapAnalysis.filesIn = glob(f'{os.path.abspath(args.aod_dir)}/*')

Definition at line 74 of file RatesOverlapAnalysis.py.

◆ float

RatesOverlapAnalysis.float

Definition at line 20 of file RatesOverlapAnalysis.py.

◆ help

RatesOverlapAnalysis.help

Definition at line 18 of file RatesOverlapAnalysis.py.

◆ hlt_in_filen

str RatesOverlapAnalysis.hlt_in_filen = args.hlt_in.split('/', 1)[1] if '/' in args.hlt_in else args.hlt_in

Definition at line 78 of file RatesOverlapAnalysis.py.

◆ hlt_ps_chain_comp_filen

str RatesOverlapAnalysis.hlt_ps_chain_comp_filen = args.hlt_ps_chain_comp.split('/', 1)[1] if '/' in args.hlt_ps_chain_comp else args.hlt_ps_chain_comp

Definition at line 86 of file RatesOverlapAnalysis.py.

◆ hlt_ps_chain_filen

str RatesOverlapAnalysis.hlt_ps_chain_filen = args.hlt_ps_chain.split('/', 1)[1] if '/' in args.hlt_ps_chain else args.hlt_ps_chain

Definition at line 83 of file RatesOverlapAnalysis.py.

◆ hlt_ps_chain_ref_filen

str RatesOverlapAnalysis.hlt_ps_chain_ref_filen = args.hlt_ps_chain_ref.split('/', 1)[1] if '/' in args.hlt_ps_chain_ref else args.hlt_ps_chain_ref

Definition at line 85 of file RatesOverlapAnalysis.py.

◆ hlt_ps_chain_set_filen

str RatesOverlapAnalysis.hlt_ps_chain_set_filen = args.hlt_ps_chain_set.split('/', 1)[1] if '/' in args.hlt_ps_chain_set else args.hlt_ps_chain_set

Definition at line 84 of file RatesOverlapAnalysis.py.

◆ hlt_ps_stream0_filen

str RatesOverlapAnalysis.hlt_ps_stream0_filen = args.hlt_ps_stream0.split('/', 1)[1] if '/' in args.hlt_ps_stream0 else args.hlt_ps_stream0

Definition at line 81 of file RatesOverlapAnalysis.py.

◆ hlt_ps_stream_filen

str RatesOverlapAnalysis.hlt_ps_stream_filen = args.hlt_ps_stream.split('/', 1)[1] if '/' in args.hlt_ps_stream else args.hlt_ps_stream

Definition at line 82 of file RatesOverlapAnalysis.py.

◆ HLTMenu_filen

str RatesOverlapAnalysis.HLTMenu_filen = args.HLTMenu.split('/', 1)[1] if '/' in args.HLTMenu else args.HLTMenu

Definition at line 77 of file RatesOverlapAnalysis.py.

◆ int

RatesOverlapAnalysis.int

Definition at line 21 of file RatesOverlapAnalysis.py.

◆ l1_ps_filen

str RatesOverlapAnalysis.l1_ps_filen = args.l1_ps.split('/', 1)[1] if '/' in args.l1_ps else args.l1_ps

Definition at line 79 of file RatesOverlapAnalysis.py.

◆ nargs

RatesOverlapAnalysis.nargs

Definition at line 39 of file RatesOverlapAnalysis.py.

◆ origdir

RatesOverlapAnalysis.origdir = os.getcwd()

Definition at line 102 of file RatesOverlapAnalysis.py.

◆ output_chain_comp_filen

str RatesOverlapAnalysis.output_chain_comp_filen = args.chain_comp_out.split('/', 1)[1] if '/' in args.chain_comp_out else args.chain_comp_out

Definition at line 96 of file RatesOverlapAnalysis.py.

◆ output_chain_filen

str RatesOverlapAnalysis.output_chain_filen = args.chain_out.split('/', 1)[1] if '/' in args.chain_out else args.chain_out

Definition at line 95 of file RatesOverlapAnalysis.py.

◆ output_stream_filen

str RatesOverlapAnalysis.output_stream_filen = args.stream_out.split('/', 1)[1] if '/' in args.stream_out else args.stream_out

Definition at line 94 of file RatesOverlapAnalysis.py.

◆ parser

RatesOverlapAnalysis.parser = argparse.ArgumentParser(description='Compare the rates of different streams')

Definition at line 17 of file RatesOverlapAnalysis.py.

◆ regex_chains

RatesOverlapAnalysis.regex_chains = chain_regex(HLTMenu_filen)

Definition at line 505 of file RatesOverlapAnalysis.py.

◆ regex_chainsComp

RatesOverlapAnalysis.regex_chainsComp = chain_regex(HLTMenu_filen)

Definition at line 580 of file RatesOverlapAnalysis.py.

◆ regex_chainsSet

RatesOverlapAnalysis.regex_chainsSet = chain_regex(HLTMenu_filen)

Definition at line 649 of file RatesOverlapAnalysis.py.

◆ s

int RatesOverlapAnalysis.s = 0

Definition at line 473 of file RatesOverlapAnalysis.py.

◆ str

RatesOverlapAnalysis.str

Definition at line 18 of file RatesOverlapAnalysis.py.

◆ stream0_filen

str RatesOverlapAnalysis.stream0_filen = args.stream0.split('/', 1)[1] if '/' in args.stream0 else args.stream0

Definition at line 88 of file RatesOverlapAnalysis.py.

◆ stream_filen

str RatesOverlapAnalysis.stream_filen = args.stream.split('/', 1)[1] if '/' in args.stream else args.stream

Definition at line 89 of file RatesOverlapAnalysis.py.

◆ streamdir

RatesOverlapAnalysis.streamdir = os.getcwd()

Definition at line 474 of file RatesOverlapAnalysis.py.

◆ type

RatesOverlapAnalysis.type

Definition at line 18 of file RatesOverlapAnalysis.py.