Belle II Software development
trggdl.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12import os
13
14# ...suppress messages and warnings during processing...
15b2.set_log_level(b2.LogLevel.ERROR)
16b2.set_random_seed(0)
17
18# ...Register modules...
19eventinfosetter = b2.register_module('EventInfoSetter')
20gdltrg = b2.register_module('TRGGDL')
21
22# ...EventInfoSetter...
23eventinfosetter.param({'evtNumList': [5], 'runList': [1]})
24
25# ...EventInfoSetter...
26gdltrg.param('DebugLevel', 1)
27gdltrg.param('ConfigFile',
28 os.path.join(os.environ['BELLE2_LOCAL_DIR'],
29 "trg/gdl/data/ftd/0.01/ftd_0.01"))
30
31# ...Create paths...
32main = b2.create_path()
33
34# ...Add modules to paths...
35main.add_module(eventinfosetter)
36main.add_module(gdltrg)
37
38# ...Process events...
39b2.process(main)
40
41# ...Print call statistics...
42print(b2.statistics)