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