29 sys.exit(
"...py> # of arg is strange.\n 1.rootname\n Exit.")
36b2.set_log_level(b2.LogLevel.INFO)
38b2.use_central_database(
"TRGGDL_201811")
41if f_in_root[-6:] ==
".sroot":
42 input = b2.register_module(
'SeqRootInput')
43 matchobj = re.search(
"([^\\/]+)\\.sroot", f_in_root)
44 basename = re.sub(
'\\.sroot$',
'', matchobj.group())
45if f_in_root[-5:] ==
".root":
46 input = b2.register_module(
'RootInput')
47 matchobj = re.search(
"([^\\/]+)\\.root", f_in_root)
48 basename = re.sub(
'\\.root$',
'', matchobj.group())
51input.param(
'inputFileName', f_in_root)
53anarawdata = b2.register_module(
'TRGRAWDATA')
55anarawdata.param(
'nwd_2ds', 3939)
56anarawdata.param(
'nwd_3ds', 3939)
58anarawdata.param(
'print_dbmap',
True)
59anarawdata.param(
'print_clkcyc_err',
True)
60anarawdata.param(
'cc_check',
True)
61anarawdata.param(
'print_cc',
True)
62anarawdata.param(
'on_2d0',
True)
63anarawdata.param(
'on_2d1',
True)
64anarawdata.param(
'on_2d2',
True)
65anarawdata.param(
'on_2d3',
True)
66anarawdata.param(
'on_gdl',
True)
67anarawdata.param(
'on_sl5',
True)
68anarawdata.param(
'on_sl6',
True)
69anarawdata.param(
'on_sl8',
False)
70anarawdata.param(
'on_etf',
False)
71anarawdata.param(
'on_grl',
False)
72anarawdata.param(
'on_nn0',
True)
73anarawdata.param(
'on_nn1',
True)
74anarawdata.param(
'on_nn2',
True)
75anarawdata.param(
'on_nn3',
True)
76anarawdata.param(
'on_3d0',
True)
77anarawdata.param(
'on_3d1',
True)
78anarawdata.param(
'on_3d2',
True)
79anarawdata.param(
'on_3d3',
True)
80anarawdata.param(
'on_top',
True)
81anarawdata.param(
'scale_top', 32)
84main = b2.create_path()
88main.add_module(anarawdata)
91anarawdata.param(
'histRecord',
False)
93 if not os.path.isdir(
'rawdatahist'):
94 os.mkdir(
'rawdatahist')
96 histo = b2.register_module(
'HistoManager')
97 histo.param(
"histoFileName", f
"rawdatahist/raw.{basename}.root")
98 main.add_module(histo)