Belle II Software
development
Toggle main menu visibility
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
Enumerator
c
d
f
p
t
v
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
inspector.py
1
#!/usr/bin/env python3
2
3
10
11
import
basf2
as
b2
12
13
# this loads gui libraries
14
15
16
class
InspectorModule
(b2.Module):
17
18
"""Inspect DataStore contents"""
19
20
21
info =
None
22
23
def
initialize
(self):
24
"""reimplementation of Module::initialize()."""
25
from
ROOT
import
gClient
26
from
ROOT
import
gSystem
27
gSystem.Load(
'libdisplay'
)
28
from
ROOT
import
Belle2
29
30
root = gClient.GetRoot()
31
32
self.
info
info
=
Belle2.InfoWidget
(root)
33
self.
info
info
.MapSubwindows()
34
self.
info
info
.Resize()
35
self.
info
info
.MapWindow()
36
37
def
event
(self):
38
"""reimplementation of Module::event()."""
39
40
self.
info
info
.update()
41
42
print(
"Press Ctrl+D to exit."
)
43
import
interactive
44
interactive.embed()
45
46
47
main = b2.create_path()
48
main.add_module(
'RootInput'
)
49
main.add_module(
InspectorModule
())
50
51
b2.process(main)
Belle2::InfoWidget
text-based info viewer showing DataStore contents.
Definition:
InfoWidget.h:27
inspector.InspectorModule
Definition:
inspector.py:16
inspector.InspectorModule.info
info
initialize InfoWidget
Definition:
inspector.py:32
inspector.InspectorModule.info
None info
InfoWidget pointer.
Definition:
inspector.py:21
inspector.InspectorModule.initialize
def initialize(self)
Definition:
inspector.py:23
inspector.InspectorModule.event
def event(self)
Definition:
inspector.py:37
display
examples
inspector.py
Generated on Wed Apr 9 2025 02:38:37 for Belle II Software by
1.9.6