A script that takes in and parses a GRL xml file, and outputs a list of good lumi blocks.
The lines are formatted: RUNNUMBER, STARTLUMIBLOCK, ENDLUMIBLOCK.
Definition at line 8 of file TIDAparseGRL.py.
9 """A script that takes in and parses a GRL xml file, and outputs a list of good lumi blocks.
10 The lines are formatted: RUNNUMBER, STARTLUMIBLOCK, ENDLUMIBLOCK."""
11 GRLlist =
open(filePath)
15 splitLine = line.split(
'<Run>')
16 splitLine = splitLine[1].
split(
'</Run>')
19 if '<LBRange Start="' in line :
20 line = line.replace(
'<LBRange Start="', runNum+
', ')
21 line = line.replace(
'" End="',
', ')
22 line = line.replace(
'"/>',
'')