25 from ROOT
import Belle2
28 main = b2.create_path()
32 if not input_files.empty()
and input_files.front().endswith(
".sroot"):
33 rootinput = b2.register_module(
'SeqRootInput')
35 rootinput = b2.register_module(
'RootInput')
38 gearbox = b2.register_module(
'Gearbox')
40 gearbox.param(
'fileName',
'beast/microtpc/detector.xml')
41 geometry = b2.register_module(
'Geometry')
46 main.add_module(rootinput)
47 main.add_module(gearbox)
48 main.add_module(geometry)
50 display = b2.register_module(
'Display')
53 display.param(
'showMCInfo',
True)
56 display.param(
'assignHitsToPrimaries',
False)
59 display.param(
'showAllPrimaries',
True)
62 display.param(
'showCharged',
True)
65 display.param(
'showNeutrals',
True)
71 display.param(
'showRecoTracks',
False)
74 display.param(
'showCDCHits',
False)
79 display.param(
'showTrackLevelObjects',
True)
92 display.param(
'options',
'MH')
97 display.param(
'automatic',
False)
100 display.param(
'fullGeometry',
True)
106 display.param(
'hideObjects', [])
108 main.add_module(display)
static Environment & Instance()
Static method to get a reference to the Environment instance.