Belle II Software development
011_first_steering_file.py
1#!/usr/bin/env python3
2
3import sys
4import basf2 as b2
5import modularAnalysis as ma
6
7# get input file number from the command line
8filenumber = sys.argv[1]
9
10# create path
11main = b2.Path()
12
13# load input data from mdst/udst file
14ma.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)
20b2.process(main)