Belle II Software
release-08-02-06
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
e
f
g
n
p
s
v
z
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
time_walk_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
# logging.log_level = LogLevel.DEBUG
16
17
b2.reset_database()
18
b2.use_database_chain()
19
b2.use_central_database(
"332_COPY-OF_GT_gen_prod_004.11_Master-20171213-230000"
, b2.LogLevel.INFO)
20
b2.use_central_database(
"MagneticFieldPhase2QCSoff"
)
21
# use_local_database("localDB/database.txt", "localDB")
22
b2.use_local_database(
"/home/belle/muchida/basf2/release/cdc/examples/caf/localDB/database.txt"
)
23
# use_local_database("/home/belle/muchida/basf2/work/caf/gcr2/test7/localDB/database.txt")
24
25
26
algo =
Belle2.CDC.TimeWalkCalibrationAlgorithm
()
27
algo.setStoreHisto(
True
)
28
algo.setInputFileNames([
'rootfile/*/CollectorOutput.root'
])
29
# algo.setInputFileNames(['calib_result/10/rootfile/*/CollectorOutput.root'])
30
# algo.setInputFileNames(['5/output_cdc.*.root'])
31
32
# Ture, f you set IOV for whole exp and runs.
33
# iov = Belle2.IntervalOfValidity.always()
34
# print("Result of calibration =", algo.execute([], 0, iov))
35
print(
"Result of calibration ="
, algo.execute())
36
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 Jan 28 2025 01:53:13 for Belle II Software by
1.9.1