Belle II Software development
BabayagaNLOGenerationOnly.py
1#!/usr/bin/env python3
2
3
10
11
17
18import basf2
19from generators import add_babayaganlo_generator
20
21
22# Set the global log level
23basf2.set_log_level(basf2.LogLevel.INFO)
24
25# main path
26main = basf2.create_path()
27
28# event info setter
29main.add_module("EventInfoSetter", expList=0, runList=1, evtNumList=100)
30
31# Register the BABAYAGA.NLO module
32add_babayaganlo_generator(path=main, finalstate='ee')
33
34# Create the main path and add the modules
35main.add_module("Progress")
36main.add_module("RootOutput", outputFileName="babayaganlo_ee.root")
37
38main.add_module("PrintMCParticles", logLevel=basf2.LogLevel.DEBUG, onlyPrimaries=False)
39
40# generate events
41basf2.process(main)
42
43# show call statistics
44print(basf2.statistics)