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.TVector3(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.TVector3(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')
66 geometry.param(
'excludedComponents', [
'ECL'])
68 main.add_module(rootinput)
69 main.add_module(gearbox)
70 main.add_module(geometry)
74 display = b2.register_module(
'Display')
77 display.param(
'showMCInfo',
True)
80 display.param(
'assignHitsToPrimaries',
False)
83 display.param(
'showAllPrimaries',
True)
86 display.param(
'showCharged',
True)
89 display.param(
'showNeutrals',
True)
95 display.param(
'showRecoTracks',
False)
98 display.param(
'showCDCHits',
False)
101 display.param(
'showTriggerObjects',
False)
106 display.param(
'showTrackLevelObjects',
True)
119 display.param(
'options',
'MH')
124 display.param(
'automatic',
False)
127 display.param(
'fullGeometry',
False)
133 display.param(
'hideObjects', [])
136 triggered_event_path = b2.Path()
137 triggered_event_path.add_module(display)
139 trigger_skim_module = b2.register_module(
"TriggerSkim")
141 trigger_skim_module.param(
'triggerLines', [
'software_trigger_cut&hlt&accept_mumu_2trk',
142 'software_trigger_cut&hlt&accept_bhabha',
143 'software_trigger_cut&hlt&accept_hadron'])
145 trigger_skim_module.if_value(
"==1", triggered_event_path, b2.AfterConditionPath.CONTINUE)
147 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.