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

Public Member Functions

def initialize (self)
 
def event (self)
 

Detailed Description

Select all things related to a Particle

Definition at line 22 of file highlight_particle.py.

Member Function Documentation

◆ event()

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

Definition at line 30 of file highlight_particle.py.

30  def event(self):
31  """reimplementation of Module::event()."""
32 
33  displayData = Belle2.PyStoreObj("DisplayData")
34  displayData.create()
35 
36  particles = Belle2.PyStoreArray('Particles')
37  for p in particles:
38  if abs(p.getPDGCode()) == 413:
39  b2.B2WARNING("highlighting D*+ candidate")
40  # displayData.obj().select(p)
41  daughters = p.getFinalStateDaughters()
42  for d in daughters:
43  # selecting the MCParticle also gets the tracks
44  mcp = d.getRelated('MCParticles')
45  displayData.obj().select(mcp)
46  break # only one
47 
48 
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 25 of file highlight_particle.py.


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