Belle II Software  release-08-01-10
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 
14 from basf2 import process, create_path, statistics
15 import sys
16 # The backend provides the input data files to the job and you can get the list of
17 # files from this function
18 from caf.backends import get_input_data
19 
20 input_data = get_input_data()
21 
22 main = create_path()
23 main.add_module("RootInput", inputFileNames=input_data)
24 main.add_module("Progress")
25 process(main)
26 print(statistics)
27 print("Testing that stderr works, no problems here.", file=sys.stderr)