pyrex.Event¶
-
class
pyrex.Event(roots)¶ Class for storing a tree of
Particleobjects representing an event.The event may be comprised of any number of root
Particleobjects specified at initialization. EachParticlein the tree may have any number of childParticleobjects. Iterating the tree will return allParticleobjects, but in no guaranteed order.- Parameters
- rootsParticle or list of Particle
Root
Particleobjects for the event tree.
See also
ParticleClass for storing particle attributes.
- Attributes
- rootsParticle or list of Particle
Root
Particleobjects for the event tree.
Methods
add_children(parent, children)Add the given children to the parent
Particleobject.get_children(parent)Get the children of the given parent
Particleobject.get_from_level(level)Get all
Particleobjects some level deep into the event tree.get_parent(child)Get the parent of the given child
Particleobject.
