Belle II Software
release-08-01-10
inspector.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
11
12
import
basf2
as
b2
13
14
# this loads gui libraries
15
16
17
class
InspectorModule
(b2.Module):
18
19
"""Inspect DataStore contents"""
20
21
22
info =
None
23
24
def
initialize
(self):
25
"""reimplementation of Module::initialize()."""
26
from
ROOT
import
gClient
27
from
ROOT
import
gSystem
28
gSystem.Load(
'libdisplay'
)
29
from
ROOT
import
Belle2
30
31
root = gClient.GetRoot()
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:17
inspector.InspectorModule.info
info
InfoWidget pointer.
Definition:
inspector.py:22
inspector.InspectorModule.initialize
def initialize(self)
Definition:
inspector.py:24
inspector.InspectorModule.event
def event(self)
Definition:
inspector.py:37
display
examples
inspector.py
Generated on Mon Sep 23 2024 14:01:33 for Belle II Software by
1.9.1