pyrex.ListGenerator¶
-
class
pyrex.ListGenerator(events, loop=True)¶ Class to generate neutrino events from a list.
Generates events by simply pulling them from a list of
Eventobjects. By default returns to the start of the list once the end is reached, but can optionally fail after reaching the list’s end.- Parameters
- eventsEvent, or list of Event
List of
Eventobjects to draw from. If only a singleEventobject is given, creates a list of that event alone.- loopboolean, optional
Whether or not to return to the start of the list after throwing the last
Event. IfFalse, raises an error if trying to throw after the lastEvent.
See also
pyrex.EventClass for storing a tree of
Particleobjects representing an event.pyrex.ParticleClass for storing particle attributes.
- Attributes
Methods
Generate a neutrino event.
