Belle II Software  release-05-01-25
BabayagaNLOGenerationOnly.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
10 
11 import basf2
12 from generators import add_babayaganlo_generator
13 
14 
15 # Set the global log level
16 basf2.set_log_level(basf2.LogLevel.INFO)
17 
18 # main path
19 main = basf2.create_path()
20 
21 # event info setter
22 main.add_module("EventInfoSetter", expList=0, runList=1, evtNumList=100)
23 
24 # Register the BABAYAGA.NLO module
25 add_babayaganlo_generator(path=main, finalstate='ee')
26 
27 # Create the main path and add the modules
28 main.add_module("Progress")
29 main.add_module("RootOutput", outputFileName="babayaganlo_ee.root")
30 
31 main.add_module("PrintMCParticles", logLevel=basf2.LogLevel.DEBUG, onlyPrimaries=False)
32 
33 # generate events
34 basf2.process(main)
35 
36 # show call statistics
37 print(basf2.statistics)
basf2.process
def process(path, max_event=0)
Definition: __init__.py:25