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