Belle II Software development
fastTSIM.py
1#!/usr/bin/env python3
2
3
10
11# The example of running simulation of L1 trigger
12
13import basf2 as b2
14from simulation import add_simulation
15
16# b2.set_log_level(b2.LogLevel.DEBUG)
17
18main = b2.create_path()
19eventinfosetter = b2.register_module('EventInfoSetter')
20eventinfosetter.param({'evtNumList': [10], 'runList': [1]})
21main.add_module(eventinfosetter)
22
23babayaganlo = b2.register_module('BabayagaNLOInput')
24babayaganlo.param('FMax', 7.5e4)
25babayaganlo.param('FinalState', 'ee')
26babayaganlo.param('MaxAcollinearity', 180.0)
27babayaganlo.param('ScatteringAngleRange', [15, 165])
28# babayaganlo.param('VacuumPolarization', 'hadr5')
29babayaganlo.param('VacuumPolarization', 'hlmnt')
30babayaganlo.param('SearchMax', 10000)
31babayaganlo.param('VPUncertainty', True)
32main.add_module(babayaganlo)
33
34
35# trigger simulation is included by default
36add_simulation(main, simulateT0jitter=True, usePXDDataReduction=False, forceSetPXDDataReduction=True)
37
38for m in main.modules():
39 if m.name() == "TRGGDL":
40 m.set_log_level(b2.LogLevel.DEBUG)
41# m.set_debug_level(25)
42
43# output
44rootoutput = b2.register_module('RootOutput')
45rootoutput.param('outputFileName', "test.root")
46main.add_module(rootoutput)
47
48
49# main
50b2.process(main)
51print(b2.statistics)
52# ===<END>