5 lumi_ranges = sys.argv[1].
split(
':')
6 for lumi_range
in lumi_ranges:
7 input_range.append(tuple(lumi_range.split(
',')))
9 jdata = sys.stdin.read()
11 lumi_data = json.loads(jdata)
15 lumi_data = lumi_data[
'data']
18 sub_list =
map(int,sub_list)
19 lumi_list =
map(int,lumi_list)
20 for i
in range(sub_list[0],sub_list[1]+1):
21 if i >= lumi_list[0]
and i <= lumi_list[1]:
return True 25 for lumi_r
in given_lumi_list:
31 for lumi_info
in data:
32 if type(lumi_info[
'lumi'])
is list:
33 lumi_nums = lumi_info[
'lumi'][0][
'number']
34 lumi_file = lumi_info[
'file'][0][
'name']
36 lumi_nums = lumi_info[
'lumi'][
'number']
37 lumi_file = lumi_info[
'file'][
'name']
38 if not type(lumi_nums[0])
is list: lumi_rang = [ [n,n]
for n
in lumi_nums ]
39 else: lumi_rang = lumi_nums
40 for sub_list
in lumi_rang:
42 output_files_list.append(lumi_file)
44 for out_file_name
in output_files_list:
def check_lumi_ranges(given_lumi_list, sub_range)
def match_in(sub_list, lumi_list)