20from ROOT
import Belle2
24 """Test DisplayData"""
27 """reimplementation of Module::initialize()."""
32 """reimplementation of Module::event()."""
38 displayData.obj().addLabel(
'HLT Tags:', ROOT.Math.XYZVector(200, 220, -300))
41 for name, result
in trigger_result.getResults():
42 prefix =
'software_trigger_cut&hlt&accept_'
43 if result == 1
and name.startswith(prefix):
44 name = name[len(prefix):]
45 displayData.obj().addLabel(name, ROOT.Math.XYVector(200, 200 - dz_pos, -300))
51main = b2.create_path()
55if not input_files.empty()
and input_files.front().endswith(
".sroot"):
56 rootinput = b2.register_module(
'SeqRootInput')
58 rootinput = b2.register_module(
'RootInput')
61gearbox = b2.register_module(
'Gearbox')
62geometry = b2.register_module(
'Geometry')
64main.add_module(rootinput)
65main.add_module(gearbox)
66main.add_module(geometry)
70display = b2.register_module(
'Display')
73display.param(
'showMCInfo',
True)
76display.param(
'assignHitsToPrimaries',
False)
79display.param(
'showAllPrimaries',
True)
82display.param(
'showCharged',
True)
85display.param(
'showNeutrals',
True)
91display.param(
'showRecoTracks',
False)
94display.param(
'showCDCHits',
False)
97display.param(
'showTriggerObjects',
False)
102display.param(
'showTrackLevelObjects',
True)
115display.param(
'options',
'MH')
120display.param(
'automatic',
False)
123display.param(
'fullGeometry',
False)
129display.param(
'hideObjects', [])
132triggered_event_path = b2.Path()
133triggered_event_path.add_module(display)
135trigger_skim_module = b2.register_module(
"TriggerSkim")
137trigger_skim_module.param(
'triggerLines', [
'software_trigger_cut&hlt&accept_mumu_2trk',
138 'software_trigger_cut&hlt&accept_bhabha',
139 'software_trigger_cut&hlt&accept_hadron'])
141trigger_skim_module.if_value(
"==1", triggered_event_path, b2.AfterConditionPath.CONTINUE)
143main.add_module(trigger_skim_module)
static Environment & Instance()
Static method to get a reference to the Environment instance.
a (simplified) python wrapper for StoreObjPtr.