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