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