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
caf_state_machine.py
1
8
import
basf2
as
b2
9
from
ROOT.Belle2
import
TestCalibrationAlgorithm
as
TestAlgo
10
from
caf.state_machines
import
CalibrationMachine
11
from
caf.framework
import
Calibration
12
13
alg = TestAlgo()
14
cal1 =
Calibration
(
'TestCalibrationClass1'
,
"CaTest"
, alg,
'/path/to/file.root'
)
15
cal2 =
Calibration
(
'TestCalibrationClass2'
,
"CaTest"
, alg,
'/path/to/file.root'
)
16
17
cm1 = CalibrationMachine(cal1)
18
cm1.save_graph(
"calibration_graph.dot"
,
"CalibrationMachine"
)
19
20
b2.B2INFO(
"Currently in "
+ cm1.state.name +
" state."
)
21
cm1.submit_collector(msg_before=
"About to submit"
, msg_after=
"Now submitted"
)
22
cm1.complete(msg_before=
"Finishing"
, msg_after=
"Collector finished"
)
23
b2.B2INFO(
"Currently in "
+ cm1.state.name +
" state."
)
Calibration
Definition:
Calibration.py:1
calibration
examples
caf_state_machine.py
Generated on Tue Jan 28 2025 01:53:06 for Belle II Software by
1.9.1