Belle II Software  release-06-02-00
012_first_steering_file.py
1 #!/usr/bin/env python3
2 
3 import sys
4 import basf2 as b2
5 import modularAnalysis as ma
6 import stdV0s
7 
8 # get input file number from the command line
9 filenumber = sys.argv[1]
10 
11 # create path
12 main = b2.Path()
13 
14 # load input data from mdst/udst file
15 ma.inputMdstList(
16  environmentType="default",
17  filelist=[b2.find_file(f"starterkit/2021/1111540100_eph3_BGx0_{filenumber}.root", "examples")],
18  path=main,
19 )
20 
21 # fill final state particle lists
22 ma.fillParticleList("e+:uncorrected", "", path=main)
23 stdV0s.stdKshorts(path=main)
24 
25 # Start the event loop (actually start processing things)
26 b2.process(main)
27 
28 # print out the summary
29 print(b2.statistics)
def stdKshorts(prioritiseV0=True, fitter='TreeFit', path=None)
Definition: stdV0s.py:17