Belle II Software development
t0_cal_algo.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12from ROOT import Belle2
13
14
15b2.reset_database()
16b2.use_database_chain()
17b2.use_central_database("Calibration_Offline_Development", b2.LogLevel.INFO)
18b2.use_central_database("MagneticFieldPhase2QCSoff")
19# use_local_database("localDB/database.txt", "localDB")
20b2.use_local_database("/home/belle/muchida/basf2/release/cdc/examples/caf/localDB/database.txt")
21# use_local_database("/home/belle/muchida/basf2/work/caf/gcr2/test7/localDB/database.txt")
22
24# algo.setInputFileNames(['../test5/calib_result/8/rootfile/*/CollectorOutput.root'])
25algo.setInputFileNames(['rootfile/*/CollectorOutput.root'])
26algo.storeHisto(True)
27algo.setDebug(True)
28algo.setMinimumNDF(20)
29# algo.setMinimumPval(0.00001)
30# algo.enableTextOutput(True)
31
32# Ture, f you set IOV for whole exp and runs.
33# iov = Belle2.IntervalOfValidity.always()
34# print("Result of calibration =", algo.execute([], 0, iov))
35print("Result of calibration =", algo.execute())
36algo.commit()