5 from FWCore.PythonUtilities.LumiList
import LumiList
8 if __name__ ==
'__main__':
10 parser = optparse.OptionParser (
"Usage: %prog alpha.json")
11 parser.add_option (
'--range', dest=
'range', action=
'store_true',
12 help=
'Print out run range only')
14 (options, args) = parser.parse_args()
16 raise RuntimeError,
"Must provide exactly one input file"
18 alphaList = LumiList (filename = args[0])
20 keys = alphaList.compactList.keys()
23 print "runs %s - %s" % (minRun, maxRun)