16 print(
'Usage : DummyDataPacker.py <# of events> <output filename>')
20 b2.set_log_level(b2.LogLevel.ERROR)
21 b2.set_log_level(b2.LogLevel.INFO)
24 max_event = int(argvs[1])
25 packer = b2.register_module(
'DummyDataPacker')
26 packer.param(
'MaxEventNum', max_event)
30 dump = b2.register_module(
'RootOutput')
31 dump.param(
'outputFileName', argvs[2])
34 main = b2.create_path()
37 main.add_module(packer)