Belle II Software  release-05-02-19
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 16 of file highlight_particle.py.

Member Function Documentation

◆ event()

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

Definition at line 24 of file highlight_particle.py.

24  def event(self):
25  """reimplementation of Module::event()."""
26 
27  displayData = Belle2.PyStoreObj("DisplayData")
28  displayData.create()
29 
30  particles = Belle2.PyStoreArray('Particles')
31  for p in particles:
32  if abs(p.getPDGCode()) == 413:
33  B2WARNING("highlighting D*+ candidate")
34  # displayData.obj().select(p)
35  daughters = p.getFinalStateDaughters()
36  for d in daughters:
37  # selecting the MCParticle also gets the tracks
38  mcp = d.getRelated('MCParticles')
39  displayData.obj().select(mcp)
40  break # only one
41 
42 

◆ initialize()

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

Definition at line 19 of file highlight_particle.py.


The documentation for this class was generated from the following file:
Belle2::PyStoreObj
a (simplified) python wrapper for StoreObjPtr.
Definition: PyStoreObj.h:69
ClusterEfficiency.ClusterEfficiency.event
def event(self)
Definition: ClusterEfficiency.py:146
Belle2::PyStoreArray
a (simplified) python wrapper for StoreArray.
Definition: PyStoreArray.h:58