Belle II Software  release-08-01-10
Simulation.py
1 #!/usr/bin/env python3
2 
3 
10 
11 # KLM alignment: simulation.
12 
13 import sys
14 import basf2
15 from simulation import add_simulation
16 
17 # Use local database.
18 basf2.conditions.append_testing_payloads('localdb/database.txt')
19 
20 # Create path.
21 main = basf2.create_path()
22 
23 # Input.
24 main.add_module('RootInput', inputFileName=sys.argv[1])
25 
26 # Simulation.
27 add_simulation(main)
28 
29 # Output.
30 main.add_module('RootOutput', outputFileName=sys.argv[2])
31 
32 # Progress.
33 main.add_module('Progress')
34 
35 # Processing.
36 basf2.process(main)
37 
38 # Print call statistics
39 print(basf2.statistics)