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