27 from ROOT
import Belle2
29 ap = argparse.ArgumentParser()
30 ap.add_argument(
"--play", action=
'store_true', help=
"Start event display advancing through events.")
31 args = ap.parse_args()
34 main = b2.create_path()
38 if not input_files.empty()
and input_files.front().endswith(
".sroot"):
39 rootinput = b2.register_module(
'SeqRootInput')
41 rootinput = b2.register_module(
'RootInput')
44 gearbox = b2.register_module(
'Gearbox')
45 geometry = b2.register_module(
'Geometry')
48 geometry.param(
'excludedComponents', [
'ECL'])
50 main.add_module(rootinput)
51 main.add_module(gearbox)
52 main.add_module(geometry)
54 display = b2.register_module(
'Display')
57 display.param(
'showMCInfo',
True)
60 display.param(
'assignHitsToPrimaries',
False)
63 display.param(
'showAllPrimaries',
True)
66 display.param(
'showCharged',
True)
69 display.param(
'showNeutrals',
True)
75 display.param(
'showRecoTracks',
False)
78 display.param(
'showCDCHits',
False)
81 display.param(
'showTriggerObjects',
False)
86 display.param(
'showTrackLevelObjects',
True)
99 display.param(
'options',
'MH')
104 display.param(
'automatic',
False)
107 display.param(
'fullGeometry',
False)
111 display.param(
'customGeometryExtractPath',
'')
117 display.param(
'hideObjects', [])
121 display.param(
'playOnStartup',
True)
123 main.add_module(display)
static Environment & Instance()
Static method to get a reference to the Environment instance.