PyREx

pyrex.particle.Event

class pyrex.particle.Event(roots)

Class for storing a tree of Particle objects representing an event.

The event may be comprised of any number of root Particle objects specified at initialization. Each Particle in the tree may have any number of child Particle objects. Iterating the tree will return all Particle objects, but in no guaranteed order.

Parameters
rootsParticle or list of Particle

Root Particle objects for the event tree.

See also

Particle

Class for storing particle attributes.

Attributes
rootsParticle or list of Particle

Root Particle objects for the event tree.

Methods

add_children(parent, children)

Add the given children to the parent Particle object.

get_children(parent)

Get the children of the given parent Particle object.

get_from_level(level)

Get all Particle objects some level deep into the event tree.

get_parent(child)

Get the parent of the given child Particle object.

PyREx

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

Navigation