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