26from ROOT
import Belle2
28ap = argparse.ArgumentParser()
29ap.add_argument(
"--play", action=
'store_true', help=
"Start event display advancing through events.")
33main = b2.create_path()
37if not input_files.empty()
and input_files.front().endswith(
".sroot"):
38 rootinput = b2.register_module(
'SeqRootInput')
40 rootinput = b2.register_module(
'RootInput')
43gearbox = b2.register_module(
'Gearbox')
44geometry = b2.register_module(
'Geometry')
47geometry.param(
'excludedComponents', [
'ECL'])
49main.add_module(rootinput)
50main.add_module(gearbox)
51main.add_module(geometry)
53display = b2.register_module(
'Display')
56display.param(
'showMCInfo',
True)
59display.param(
'assignHitsToPrimaries',
False)
62display.param(
'showAllPrimaries',
True)
65display.param(
'showCharged',
True)
68display.param(
'showNeutrals',
True)
74display.param(
'showRecoTracks',
False)
77display.param(
'showCDCHits',
False)
80display.param(
'showTriggerObjects',
False)
85display.param(
'showTrackLevelObjects',
True)
98display.param(
'options',
'MH')
103display.param(
'automatic',
False)
106display.param(
'fullGeometry',
False)
110display.param(
'customGeometryExtractPath',
'')
116display.param(
'hideObjects', [])
120 display.param(
'playOnStartup',
True)
122main.add_module(display)
static Environment & Instance()
Static method to get a reference to the Environment instance.