Belle II Software
development
time_walk_cal_algo.py
1
#!/usr/bin/env python3
2
3
10
11
import
basf2
as
b2
12
from
ROOT
import
Belle2
13
14
# logging.log_level = LogLevel.DEBUG
15
16
b2.reset_database()
17
b2.use_database_chain()
18
b2.use_central_database(
"332_COPY-OF_GT_gen_prod_004.11_Master-20171213-230000"
, 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
25
algo =
Belle2.CDC.TimeWalkCalibrationAlgorithm
()
26
algo.setStoreHisto(
True
)
27
algo.setInputFileNames([
'rootfile/*/CollectorOutput.root'
])
28
# algo.setInputFileNames(['calib_result/10/rootfile/*/CollectorOutput.root'])
29
# algo.setInputFileNames(['5/output_cdc.*.root'])
30
31
# Ture, f you set IOV for whole exp and runs.
32
# iov = Belle2.IntervalOfValidity.always()
33
# print("Result of calibration =", algo.execute([], 0, iov))
34
print(
"Result of calibration ="
, algo.execute())
35
algo.commit()
Belle2::CDC::TimeWalkCalibrationAlgorithm
Class for Time walk calibration.
Definition:
TimeWalkCalibrationAlgorithm.h:27
cdc
examples
caf
time_walk_cal_algo.py
Generated on Tue Nov 12 2024 02:34:39 for Belle II Software by
1.9.6