21 from ROOT
import Belle2
25 """Test DisplayData"""
28 """reimplementation of Module::initialize()."""
33 """reimplementation of Module::event()."""
39 displayData.obj().addLabel(
'HLT Tags:', ROOT.Math.XYZVector(200, 220, -300))
42 for name, result
in trigger_result.getResults():
43 prefix =
'software_trigger_cut&hlt&accept_'
44 if result == 1
and name.startswith(prefix):
45 name = name[len(prefix):]
46 displayData.obj().addLabel(name, ROOT.Math.XYVector(200, 200 - dz_pos, -300))
52 main = b2.create_path()
56 if not input_files.empty()
and input_files.front().endswith(
".sroot"):
57 rootinput = b2.register_module(
'SeqRootInput')
59 rootinput = b2.register_module(
'RootInput')
62 gearbox = b2.register_module(
'Gearbox')
63 geometry = b2.register_module(
'Geometry')
65 main.add_module(rootinput)
66 main.add_module(gearbox)
67 main.add_module(geometry)
71 display = b2.register_module(
'Display')
74 display.param(
'showMCInfo',
True)
77 display.param(
'assignHitsToPrimaries',
False)
80 display.param(
'showAllPrimaries',
True)
83 display.param(
'showCharged',
True)
86 display.param(
'showNeutrals',
True)
92 display.param(
'showRecoTracks',
False)
95 display.param(
'showCDCHits',
False)
98 display.param(
'showTriggerObjects',
False)
103 display.param(
'showTrackLevelObjects',
True)
116 display.param(
'options',
'MH')
121 display.param(
'automatic',
False)
124 display.param(
'fullGeometry',
False)
130 display.param(
'hideObjects', [])
133 triggered_event_path = b2.Path()
134 triggered_event_path.add_module(display)
136 trigger_skim_module = b2.register_module(
"TriggerSkim")
138 trigger_skim_module.param(
'triggerLines', [
'software_trigger_cut&hlt&accept_mumu_2trk',
139 'software_trigger_cut&hlt&accept_bhabha',
140 'software_trigger_cut&hlt&accept_hadron'])
142 trigger_skim_module.if_value(
"==1", triggered_event_path, b2.AfterConditionPath.CONTINUE)
144 main.add_module(trigger_skim_module)
static Environment & Instance()
Static method to get a reference to the Environment instance.
a (simplified) python wrapper for StoreObjPtr.