26 from ROOT
import Belle2
29 main = b2.create_path()
33 if not input_files.empty()
and input_files.front().endswith(
".sroot"):
34 rootinput = b2.register_module(
'SeqRootInput')
36 rootinput = b2.register_module(
'RootInput')
39 gearbox = b2.register_module(
'Gearbox')
41 gearbox.param(
'fileName',
'beast/microtpc/detector.xml')
42 geometry = b2.register_module(
'Geometry')
47 main.add_module(rootinput)
48 main.add_module(gearbox)
49 main.add_module(geometry)
51 display = b2.register_module(
'Display')
54 display.param(
'showMCInfo',
True)
57 display.param(
'assignHitsToPrimaries',
False)
60 display.param(
'showAllPrimaries',
True)
63 display.param(
'showCharged',
True)
66 display.param(
'showNeutrals',
True)
72 display.param(
'showRecoTracks',
False)
75 display.param(
'showCDCHits',
False)
80 display.param(
'showTrackLevelObjects',
True)
93 display.param(
'options',
'MH')
98 display.param(
'automatic',
False)
101 display.param(
'fullGeometry',
True)
107 display.param(
'hideObjects', [])
109 main.add_module(display)
static Environment & Instance()
Static method to get a reference to the Environment instance.