13 from ROOT
import Belle2
17 """Test DisplayData"""
20 """reimplementation of Module::initialize()."""
25 """reimplementation of Module::event()."""
31 displayData.obj().addLabel(
'HLT Tags:', ROOT.TVector3(200, 220, -300))
34 for name, result
in trigger_result.getResults():
35 prefix =
'software_trigger_cut&hlt&accept_'
36 if result == 1
and name.startswith(prefix):
37 name = name[len(prefix):]
38 displayData.obj().addLabel(name, ROOT.TVector3(200, 200 - dz_pos, -300))
48 if not input_files.empty()
and input_files.front().endswith(
".sroot"):
49 rootinput = register_module(
'SeqRootInput')
51 rootinput = register_module(
'RootInput')
54 gearbox = register_module(
'Gearbox')
55 geometry = register_module(
'Geometry')
58 geometry.param(
'excludedComponents', [
'ECL'])
60 main.add_module(rootinput)
61 main.add_module(gearbox)
62 main.add_module(geometry)
66 display = register_module(
'Display')
69 display.param(
'showMCInfo',
True)
72 display.param(
'assignHitsToPrimaries',
False)
75 display.param(
'showAllPrimaries',
True)
78 display.param(
'showCharged',
True)
81 display.param(
'showNeutrals',
True)
87 display.param(
'showRecoTracks',
False)
90 display.param(
'showCDCHits',
False)
93 display.param(
'showTriggerObjects',
False)
98 display.param(
'showTrackLevelObjects',
True)
111 display.param(
'options',
'MH')
116 display.param(
'automatic',
False)
119 display.param(
'fullGeometry',
False)
125 display.param(
'hideObjects', [])
128 triggered_event_path = Path()
129 triggered_event_path.add_module(display)
131 trigger_skim_module = register_module(
"TriggerSkim")
133 trigger_skim_module.param(
'triggerLines', [
'software_trigger_cut&hlt&accept_mumu_2trk',
134 'software_trigger_cut&hlt&accept_bhabha',
135 'software_trigger_cut&hlt&accept_hadron'])
137 trigger_skim_module.if_value(
"==1", triggered_event_path, AfterConditionPath.CONTINUE)
139 main.add_module(trigger_skim_module)