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