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