12from optparse
import OptionParser
24parser = OptionParser()
25parser.add_option(
'-f',
'--file', dest=
'filename',
27parser.add_option(
'-o',
'--output', dest=
'output_filename',
28 default=
'output.root')
30(options, args) = parser.parse_args()
33b2.set_log_level(b2.LogLevel.ERROR)
36main = b2.create_path()
39input_module = b2.register_module(
'RootInput')
40input_module.param(
'inputFileName', options.filename)
41main.add_module(input_module)
43histo = b2.register_module(
'HistoManager')
44histo.param(
'histoFileName', options.output_filename)
48gearbox = b2.register_module(
'Gearbox')
49main.add_module(gearbox)
52he3digi = b2.register_module(
'He3Digitizer')
53main.add_module(he3digi)
56he3study = b2.register_module(
'He3tubeStudy')
57main.add_module(he3study)
68progress = b2.register_module(
'Progress')
69main.add_module(progress)