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