Belle II Software
release-08-01-10
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
filelist=[b2.find_file(f
"starterkit/2021/1111540100_eph3_BGx0_{filenumber}.root"
,
"examples"
)],
16
path=main,
17
)
18
19
# start the event loop (actually start processing things)
20
b2.process(main)
online_book
basf2
steering_files
011_first_steering_file.py
Generated on Mon Sep 23 2024 14:03:30 for Belle II Software by
1.9.1