2 from __future__
import print_function
6 lumi_ranges = sys.argv[1].
split(
':')
7 for lumi_range
in lumi_ranges:
8 input_range.append(tuple(lumi_range.split(
',')))
10 jdata = sys.stdin.read()
12 lumi_data = json.loads(jdata)
16 lumi_data = lumi_data[
'data']
19 for i
in range(int(sub_list[0]),int(sub_list[1])+1):
20 if len(lumi_list) == 1:
21 if i == int(lumi_list[0]):
return True
23 if i >= int(lumi_list[0])
and i <= int(lumi_list[1]):
return True
27 for lumi_r
in given_lumi_list:
33 for lumi_info
in data:
34 if isinstance(lumi_info[
'lumi'], list):
35 lumi_nums = lumi_info[
'lumi'][0][
'number']
36 lumi_file = lumi_info[
'file'][0][
'name']
38 lumi_nums = lumi_info[
'lumi'][
'number']
39 lumi_file = lumi_info[
'file'][
'name']
40 if not isinstance(lumi_nums[0], list): lumi_rang = [ [n,n]
for n
in lumi_nums ]
41 else: lumi_rang = lumi_nums
42 for sub_list
in lumi_rang:
44 output_files_list.append(lumi_file)
46 for out_file_name
in output_files_list:
const uint16_t range(const Frame &aFrame)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)