Belle II Software
release-08-01-10
space_reso_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
b2.reset_database()
16
b2.use_database_chain()
17
b2.use_central_database(
"332_COPY-OF_GT_gen_prod_004.11_Master-20171213-230000"
, b2.LogLevel.INFO)
18
b2.use_central_database(
"MagneticFieldPhase2QCSoff"
)
19
# use_local_database("localDB/database.txt", "localDB")
20
b2.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
23
# logging.log_level = LogLevel.DEBUG
24
algo =
Belle2.CDC.SpaceResolutionCalibrationAlgorithm
()
25
algo.setInputFileNames([
'rootfile/*/CollectorOutput.root'
])
26
# algo.setInputFileNames(['calib_result/10/rootfile/*/CollectorOutput.root'])
27
28
# Ture, f you set IOV for whole exp and runs.
29
# iov = Belle2.IntervalOfValidity.always()
30
# print("Result of calibration =", algo.execute([], 0, iov))
31
print(
"Result of calibration ="
, algo.execute())
32
algo.commit()
Belle2::CDC::SpaceResolutionCalibrationAlgorithm
Class for Space resolution calibration.
Definition:
SpaceResolutionCalibrationAlgorithm.h:28
cdc
examples
caf
space_reso_cal_algo.py
Generated on Mon Sep 23 2024 14:00:56 for Belle II Software by
1.9.1