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