Package pyana
Module event
Class Event
Construction
Usage: evt = Event(dg)
Creates event object from the corresponding XTC datagram object.
Parameters:
dg
– datagram object of type_pdsdata.xtc.Dgram
Method seq()
Usage: s = evt.seq()
Returns _pdsdata.xtc.Seq
object, equivalent to dg.seq
Method getTime()
Usage: t = evt.getTime()
Returns _pdsdata.xtc.ClockTime
object, equivalent to dg.seq.clock()
Method find()
Usage: objects = evt.find(...)
Returns possibly empty list of data objects contained in the event. This method accepts a number of arguments, but all arguments are optional. If no arguments are given then a list of all data objects is returned. If some arguments are given then only those objects that satisfy a particular criteria are returned. The list of possible keyword arguments:
typeId
– accepts one of thextc.TypeId.Type.<Xxx>
, only return objects which have that TypeIdversion
– accepts number, only return objects whose type version number is equal to numberlevel
– accepts one ofxtc.Level.<Xxx>
values, only returns objects originated at that leveldetector
– accepts one ofxtc.DetInfo.Detector.<Xxx>
values, only returns objects produced by this detectordetId
– accepts number, only returns objects produced by this detector IDdetector
– accepts one ofxtc.DetInfo.Device.<Xxx>
values, only returns objects produced by this devicedevId
– accepts number, only returns objects produced by this device ID
Overview
Content Tools