20from optparse
import OptionParser
22from basf2
import conditions
23conditions.override_globaltags()
24conditions.append_globaltag(
'online')
25conditions.append_globaltag(
'ARICH_phase3_test')
29b2.set_log_level(b2.LogLevel.INFO)
31parser = OptionParser()
32parser.add_option(
'-i',
'--inputpath', dest=
'path', default=
'')
33(options, args) = parser.parse_args()
35input = b2.register_module(
'SeqRootInput')
36file_list = [options.path + f
for f
in os.listdir(options.path)
if f.endswith(
'.sroot')]
38input.param(
'inputFileNames', file_list)
40histo = b2.register_module(
'HistoManager')
42cal = b2.register_module(
'ARICHRateCal')
44cal.param(
"nevents", 1000)
45cal.param(
"dth", 0.0096)
46cal.param(
"th0", -0.48)
47cal.param(
"internal",
True)
49unpack = b2.register_module(
'ARICHUnpacker')
53convert = b2.register_module(
'Convert2RawDet')
54output = b2.register_module(
'RootOutput')
55progress = b2.register_module(
'Progress')
58main = b2.create_path()
63main.add_module(convert)
64main.add_module(unpack)
66main.add_module(progress)