Belle II Software development
inspector.py
1#!/usr/bin/env python3
2
3
10
11import basf2 as b2
12
13# this loads gui libraries
14
15
16class 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
33 self.infoinfo.MapSubwindows()
34 self.infoinfo.Resize()
35 self.infoinfo.MapWindow()
36
37 def event(self):
38 """reimplementation of Module::event()."""
39
40 self.infoinfo.update()
41
42 print("Press Ctrl+D to exit.")
43 import interactive
44 interactive.embed()
45
46
47main = b2.create_path()
48main.add_module('RootInput')
49main.add_module(InspectorModule())
50
51b2.process(main)
text-based info viewer showing DataStore contents.
Definition: InfoWidget.h:27
info
initialize InfoWidget
Definition: inspector.py:32
None info
InfoWidget pointer.
Definition: inspector.py:21