15 basf2.set_log_level(basf2.LogLevel.ERROR)
18 cosmics = basf2.register_module(
'Cosmics')
19 cosmics.param(
'level', 1)
20 cosmics.param(
'ipRequirement', 0)
36 eventinfosetter = basf2.register_module(
'EventInfoSetter')
38 progress = basf2.register_module(
'Progress')
41 output = basf2.register_module(
'RootOutput')
44 eventinfosetter.param({
'evtNumList': [100],
'runList': [1]})
47 output.param(
'outputFileName',
'CosmicsOutput.root')
52 main = basf2.create_path()
53 main.add_module(eventinfosetter)
54 main.add_module(progress)
55 main.add_module(cosmics)
56 main.add_module(output)
62 print(basf2.statistics)