pyrex.particle.Event.get_parent¶
-
Event.
get_parent
(child)¶ Get the parent of the given child
Particle
object.- Parameters
- childParticle or None
Particle
object in the tree.None
if the child has no parent.
- Returns
- Particle
Particle
object which is the parent of the child.
- Raises
- ValueError
If the child is not a part of the event tree.
See also
Particle
Class for storing particle attributes.