pyrex.Event¶
-
class
pyrex.
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. EachParticle
in the tree may have any number of childParticle
objects. Iterating the tree will return allParticle
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.