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