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

Public Member Functions

def initialize (self)
 
def event (self)
 

Detailed Description

Select all things related to a Particle

Definition at line 21 of file highlight_particle.py.

Member Function Documentation

◆ event()

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

Definition at line 29 of file highlight_particle.py.

29 def event(self):
30 """reimplementation of Module::event()."""
31
32 displayData = Belle2.PyStoreObj("DisplayData")
33 displayData.create()
34
35 particles = Belle2.PyStoreArray('Particles')
36 for p in particles:
37 if abs(p.getPDGCode()) == 413:
38 b2.B2WARNING("highlighting D*+ candidate")
39 # displayData.obj().select(p)
40 daughters = p.getFinalStateDaughters()
41 for d in daughters:
42 # selecting the MCParticle also gets the tracks
43 mcp = d.getRelated('MCParticles')
44 displayData.obj().select(mcp)
45 break # only one
46
47
A (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:72
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:67

◆ initialize()

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

Definition at line 24 of file highlight_particle.py.

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

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