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