Belle II Software
development
raw2mdst.py
1
#!/usr/bin/env python3
2
3
10
11
import
basf2
as
b2
12
from
mdst
import
add_mdst_output
13
from
softwaretrigger.constants
import
SoftwareTriggerModes
14
from
softwaretrigger.processing
import
add_hlt_processing
15
16
# create path
17
main = b2.create_path()
18
19
# input
20
main.add_module(
'RootInput'
)
21
22
# gearbox and geometry
23
main.add_module(
'Gearbox'
)
24
main.add_module(
'Geometry'
)
25
26
# reconstruction
27
# No filter is applied in monitoring mode. To enable filtering, use, for example,
28
# softwaretrigger_mode=SoftwareTriggerModes.filter
29
add_hlt_processing(main, softwaretrigger_mode=SoftwareTriggerModes.monitor, prune_output=
False
, calcROIs=
False
)
30
31
# mdst output
32
add_mdst_output(main)
33
34
# process events and print call statistics
35
b2.process(main)
36
print(b2.statistics)
softwaretrigger.constants
Definition:
constants.py:1
softwaretrigger.processing
Definition:
processing.py:1
reconstruction
examples
raw2mdst.py
Generated on Tue Nov 12 2024 02:41:00 for Belle II Software by
1.9.6