Belle II Software  release-08-01-10
DisplayHLTTags Class Reference
Inheritance diagram for DisplayHLTTags:
Collaboration diagram for DisplayHLTTags:

Public Member Functions

def initialize (self)
 
def event (self)
 

Detailed Description

Test DisplayData

Definition at line 24 of file displaytriggered.py.

Member Function Documentation

◆ event()

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

Definition at line 32 of file displaytriggered.py.

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

◆ initialize()

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

Definition at line 27 of file displaytriggered.py.


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