3 from __future__
import print_function
6 from FWCore.PythonUtilities.LumiList
import LumiList
9 if __name__ ==
'__main__':
11 parser = optparse.OptionParser (
"Usage: %prog alpha.json")
12 parser.add_option (
'--range', dest=
'range', action=
'store_true',
13 help=
'Print out run range only')
15 (options, args) = parser.parse_args()
17 raise RuntimeError(
"Must provide exactly one input file")
19 alphaList = LumiList (filename = args[0])
21 keys = alphaList.compactList.keys()
24 print(
"runs %s - %s" % (minRun, maxRun))