Select all things related to a Particle
Definition at line 21 of file highlight_particle.py.
◆ event()
reimplementation of Module::event().
Definition at line 29 of file highlight_particle.py.
29 def event(self):
30 """reimplementation of Module::event()."""
31
33 displayData.create()
34
36 for p in particles:
37 if abs(p.getPDGCode()) == 413:
38 b2.B2WARNING("highlighting D*+ candidate")
39
40 daughters = p.getFinalStateDaughters()
41 for d in daughters:
42
43 mcp = d.getRelated('MCParticles')
44 displayData.obj().select(mcp)
45 break
46
47
A (simplified) python wrapper for StoreArray.
a (simplified) python wrapper for StoreObjPtr.
◆ initialize()
reimplementation of Module::initialize().
Definition at line 24 of file highlight_particle.py.
24 def initialize(self):
25 """reimplementation of Module::initialize()."""
26
28
The documentation for this class was generated from the following file: