Belle II Software  release-05-01-25
TeeggGenerationOnly.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
10 
11 from basf2 import set_log_level, LogLevel, register_module, create_path, process, statistics
12 
13 # Set the global log level
14 set_log_level(LogLevel.INFO)
15 
16 # main path
17 main = create_path()
18 
19 # event info setter
20 main.add_module("EventInfoSetter", expList=0, runList=1, evtNumList=100)
21 
22 # Register the BABAYAGA.NLO module
23 teegg = register_module('TeeggInput')
24 
25 # WEIGHTED (0) or UNWEIGHTED (1)
26 teegg.param('UNWEIGHTED', 1)
27 
28 # CONFIG
29 teegg.param('CONFIG', 'GAMMA')
30 
31 # RADCOR and MAXWEIGHTS
32 teegg.param('RADCOR', 'HARD')
33 teegg.param('WGHT1M', 1.001) # SOFT
34 teegg.param('WGHTMX', 1.150) # SOFT
35 
36 # TEVETO
37 teegg.param('TEVETO', 5.0)
38 teegg.param('EEVETO', 0.5)
39 
40 # TGMIN
41 teegg.param('TGMIN', 12.5)
42 
43 # TEMIN
44 # teegg.param('TEMIN', 0.26180* 180.0 / 3.1415)
45 
46 # CUTOFF
47 teegg.param('CUTOFF', 0.0070)
48 
49 # PEGMIN
50 # teegg.param('PEGMIN', 0.78540* 180.0 / 3.1415)
51 
52 # EEMIN
53 # teegg.param('EEMIN', 5.0)
54 
55 # EGMIN
56 teegg.param('EGMIN', 0.50)
57 
58 # UNWGHT
59 # teegg.param('UNWGHT', 1)
60 
61 # output
62 output = register_module('RootOutput')
63 output.param('outputFileName', './teegg-outfile.root')
64 
65 # Create the main path and add the modules
66 main.add_module("Progress")
67 main.add_module(teegg)
68 main.add_module(output)
69 # uncomment the following line if you want event by event info
70 main.add_module("PrintMCParticles", logLevel=LogLevel.DEBUG, onlyPrimaries=False)
71 
72 # generate events
73 process(main)
74 
75 # show call statistics
76 print(statistics)