Belle II Software development
space_reso_cal_algo.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12from ROOT import Belle2
13
14b2.reset_database()
15b2.use_database_chain()
16b2.use_central_database("332_COPY-OF_GT_gen_prod_004.11_Master-20171213-230000", b2.LogLevel.INFO)
17b2.use_central_database("MagneticFieldPhase2QCSoff")
18# use_local_database("localDB/database.txt", "localDB")
19b2.use_local_database("/home/belle/muchida/basf2/release/cdc/examples/caf/localDB/database.txt")
20# use_local_database("/home/belle/muchida/basf2/work/caf/gcr2/test7/localDB/database.txt")
21
22# logging.log_level = LogLevel.DEBUG
24algo.setInputFileNames(['rootfile/*/CollectorOutput.root'])
25# algo.setInputFileNames(['calib_result/10/rootfile/*/CollectorOutput.root'])
26
27# Ture, f you set IOV for whole exp and runs.
28# iov = Belle2.IntervalOfValidity.always()
29# print("Result of calibration =", algo.execute([], 0, iov))
30print("Result of calibration =", algo.execute())
31algo.commit()