Belle II Software development
DisplayHLTTags Class Reference
Inheritance diagram for DisplayHLTTags:

Public Member Functions

def initialize (self)
 
def event (self)
 

Detailed Description

Test DisplayData

Definition at line 23 of file displaytriggered.py.

Member Function Documentation

◆ event()

def event (   self)
reimplementation of Module::event().

Definition at line 31 of file displaytriggered.py.

31 def event(self):
32 """reimplementation of Module::event()."""
33
34 displayData = Belle2.PyStoreObj("DisplayData")
35 displayData.create()
36
37 print("HLT Tags:")
38 displayData.obj().addLabel('HLT Tags:', ROOT.Math.XYZVector(200, 220, -300))
39 trigger_result = Belle2.PyStoreObj('SoftwareTriggerResult')
40 dz_pos = 0
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))
46 dz_pos += 15
47 print(name)
48
49
50# create paths
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ initialize()

def initialize (   self)
reimplementation of Module::initialize().

Definition at line 26 of file displaytriggered.py.

26 def initialize(self):
27 """reimplementation of Module::initialize()."""
28
29 Belle2.PyStoreObj("DisplayData").registerInDataStore()
30

The documentation for this class was generated from the following file: