PyREx

pyrex.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.

PyREx

A Python package for simulation of neutrinos and radio antennas in ice. Version 1.10.0

Navigation