Condense the run lumi configuration into a simple list describing the number of events per run, for trigger reco trf.
Definition at line 3 of file RunLumiConfigTools.py.
4 """ Condense the run lumi configuration into a simple list describing the number of events per run, for trigger reco trf.
10 if ((
not condensed)
or (condensed[-1][
'run'] != r)):
11 condensed.append({
'run':r,
'evts':e})
13 condensed[-1][
'evts'] += e
16 with open( filename,
'w' )
as f:
17 f.write(
"#Configuration describing nEvents for each run number in digi file.\nlistOfRunsEvents = %s" % condensed )