Belle II Software development
basic_basf2.py
1#!/usr/bin/env python3
2
3
10
11# Simple basf2 steering file that pulls in data files passed to it and does nothing
12# with it. For use with the Backend examples
13
14from basf2 import process, create_path, statistics
15import sys
16# The backend provides the input data files to the job and you can get the list of
17# files from this function
18from caf.backends import get_input_data
19
20input_data = get_input_data()
21
22main = create_path()
23main.add_module("RootInput", inputFileNames=input_data)
24main.add_module("Progress")
25process(main)
26print(statistics)
27print("Testing that stderr works, no problems here.", file=sys.stderr)