Belle II Software
release-06-00-14
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
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
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
caf_simplest.py
1
12
13
import
basf2
as
b2
14
15
import
os
16
import
sys
17
18
from
ROOT.Belle2
import
TestCalibrationAlgorithm
19
from
caf.framework
import
Calibration, CAF
20
21
b2.set_log_level(b2.LogLevel.INFO)
22
23
24
def
main
(argv):
25
if
len(argv) == 1:
26
data_dir = argv[0]
27
else
:
28
print(
"Usage: basf2 CAF_simplest.py <data directory>"
)
29
sys.exit(1)
30
31
36
input_files_test = []
37
input_files_test.append(os.path.join(os.path.abspath(data_dir),
'*.root'
))
38
39
41
alg_test = TestCalibrationAlgorithm()
# Getting a calibration algorithm instance
42
43
# Create a single calibration from a collector module name + algorithm + input files
44
cal_test =
Calibration
(name=
"TestCalibration"
, collector=
"CaTest"
, algorithms=alg_test, input_files=input_files_test)
45
46
48
cal_fw = CAF()
49
cal_fw.add_calibration(cal_test)
50
cal_fw.run()
51
print(
"End of CAF processing."
)
52
53
54
if
__name__ ==
"__main__"
:
55
main
(sys.argv[1:])
Calibration
Definition:
Calibration.py:1
main
int main(int argc, char **argv)
Run all tests.
Definition:
test_main.cc:75
calibration
examples
caf_simplest.py
Generated on Thu Jul 14 2022 07:54:44 for Belle II Software by
1.9.1