Belle II Software  release-05-02-19
dbobject_access.py
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 import basf2 as b2
5 
6 b2.set_log_level(b2.LogLevel.INFO)
7 
8 b2.reset_database()
9 b2.use_local_database('calibration_results/TestCalibration/outputdb/database.txt',
10  directory='calibration_results/TestCalibration/outputdb')
11 
12 main = b2.create_path()
13 main.add_module('EventInfoSetter', expList=[1, 1, 1, 1], runList=[1, 2, 3, 4], evtNumList=[1, 1, 1, 1])
14 main.add_module('TestCalibDBAccess')
15 main.add_module('Progress')
16 b2.process(main)
17 print(b2.statistics)