Belle II Software
release-05-01-25
space_reso_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
reset_database()
13
use_database_chain()
14
use_central_database(
"332_COPY-OF_GT_gen_prod_004.11_Master-20171213-230000"
, LogLevel.INFO)
15
use_central_database(
"MagneticFieldPhase2QCSoff"
)
16
# use_local_database("localDB/database.txt", "localDB")
17
use_local_database(
"/home/belle/muchida/basf2/release/cdc/examples/caf/localDB/database.txt"
)
18
# use_local_database("/home/belle/muchida/basf2/work/caf/gcr2/test7/localDB/database.txt")
19
20
# logging.log_level = LogLevel.DEBUG
21
algo =
Belle2.CDC.SpaceResolutionCalibrationAlgorithm
()
22
algo.setInputFileNames([
'rootfile/*/CollectorOutput.root'
])
23
# algo.setInputFileNames(['calib_result/10/rootfile/*/CollectorOutput.root'])
24
25
# Ture, f you set IOV for whole exp and runs.
26
# iov = Belle2.IntervalOfValidity.always()
27
# print("Result of calibration =", algo.execute([], 0, iov))
28
print(
"Result of calibration ="
, algo.execute())
29
algo.commit()
Belle2::CDC::SpaceResolutionCalibrationAlgorithm
Class for Space resolution calibration.
Definition:
SpaceResolutionCalibrationAlgorithm.h:38
cdc
examples
caf
space_reso_cal_algo.py
Generated on Fri Nov 5 2021 03:48:39 for Belle II Software by
1.8.17