Belle II Software
release-06-00-14
011_first_steering_file.py
1
#!/usr/bin/env python3
2
3
import
sys
4
import
basf2
as
b2
5
import
modularAnalysis
as
ma
6
7
# get input file number from the command line
8
filenumber = sys.argv[1]
9
10
# create path
11
main = b2.Path()
12
13
# load input data from mdst/udst file
14
ma.inputMdstList(
15
environmentType=
"default"
,
16
filelist=[b2.find_file(f
"starterkit/2021/1111540100_eph3_BGx0_{filenumber}.root"
,
"examples"
)],
17
path=main,
18
)
19
20
# Start the event loop (actually start processing things)
21
b2.process(main)
online_book
basf2
steering_files
011_first_steering_file.py
Generated on Thu Jul 14 2022 08:03:56 for Belle II Software by
1.9.1