GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-5 > ebfio / rhel4-32
#include <EDS/EBF_evt.h>
#include <EDS/io/EBF_evt.ih>
#include <EDS/io/EBF_pkts.h>
Classes | |
struct | _EBF_evts_es |
The iterator control structure. More... | |
union | _EBF_evts_u |
The iterator control structure. More... | |
Typedefs | |
typedef struct _EBF_evts_es | EBF_evts_es |
Typedef for struct _EBF_evts_es. | |
typedef union _EBF_evts_u | EBF_evts_u |
Typedef for struct _EBF_evts. | |
typedef EBF_evts_es | EBF_evts |
Opaque type for the events vector. | |
Functions | |
static __inline EBF_evt * | EBF__evtsEvt (EBF_evts evts) |
Retrieves the next event. | |
static __inline int | EBF__evtsSize (EBF_evts evts) |
Retrieves the length in bytes of the events vector. | |
static __inline EBF_evts | EBF__evtsNext (EBF_evts evts) |
Pushes the event iterator to the next event. | |
static __inline EBF_evts | EBF__evtsAdvance (EBF_evts evts, int nbytes) |
Advances the specified event iterator forward by the specified number of bytes. | |
static __inline EBF_pkts | EBF__evtsToPkts (EBF_evts pkts) |
Converts a vector of events to a vector of packets. | |
static __inline EBF_evts | EBF__evtsFromPkts (EBF_pkts pkts) |
Converts a vector of packets to a vector of events. | |
int | EBF_evtsCount (EBF_evts evts) |
Counts the number of events. | |
EBF_evts | EBF_evtsLimit (EBF_evts evts, int nevts) |
Limits the events to the specified number of events. | |
EBF_evts | EBF_evtsSkip (EBF_evts evts, int skip) |
Returns an events vector with the specified number of events skipped. | |
EBF_evts | EBF_evtsSetup (EBF_evts evts, int skip, int limit) |
Skips and limits the number of events. | |
EBF_evts | EBF_evtsMcSeek (EBF_evts evts, unsigned int mcNumber) |
Advances the evts to the event with Monte Carlo number mcNumber. | |
EBF_evts | EBF_evtsSeqSeek (EBF_evts evts, unsigned int seqNumber) |
Advances the evts to the event with trigger event sequence number seqNumber. |
CVS $Id: EBF_evts.h,v 1.4 2011/08/04 19:46:11 russell Exp $
When all the events are exhausted, the empty events vector will be returned. The empty events vector is defined as the vector with
unsigned long long int EBF_evts |
Opaque type for the events vector.
Advances the specified event iterator forward by the specified number of bytes.
evts | The current state of the event iteractor | |
nbytes | The number of bytes to advance the event iterator |
References _EBF_evts_u::es, _EBF_evts_es::evt, and _EBF_evts_es::size.
Retrieves the next event.
evts | The current state of the event interactor |
References _EBF_evts_u::es, and _EBF_evts_es::evt.
Converts a vector of packets to a vector of events.
pkts | The packets vector to convert |
References _EBF_evts_u::es, and _EBF_evts_u::ps.
Referenced by EBF_streamProcess().
Pushes the event iterator to the next event.
evts | The current state of the event interactor |
References EBF__evtSize(), _EBF_evts_u::es, _EBF_evts_es::evt, and _EBF_evts_es::size.
Referenced by EBF_evtsCount(), EBF_evtsLimit(), EBF_evtsMcSeek(), EBF_evtsSeqSeek(), and EBF_evtsSkip().
static __inline int EBF__evtsSize | ( | EBF_evts | evts | ) | [static] |
Retrieves the length in bytes of the events vector.
evts | The current state of the event interactor |
References _EBF_evts_u::es, and _EBF_evts_es::size.
Converts a vector of events to a vector of packets.
evts | The events vector to convert |
References _EBF_evts_u::es, and _EBF_evts_u::ps.
Referenced by EBF_streamProcess().
int EBF_evtsCount | ( | EBF_evts | evts | ) |
Counts the number of events.
evts | The vector of events to count |
References EBF__evtsNext(), _EBF_evts_u::es, and _EBF_evts_es::size.
Limits the events to the specified number of events.
evts | The vector of events to limit | |
limit | The number of events to limit the vector of events to |
References EBF__evtsNext(), _EBF_evts_u::es, and _EBF_evts_es::size.
Referenced by EBF_evtsSetup().
Advances the evts to the event with Monte Carlo number mcNumber.
evts | The target vector of events | |
mcNumber | The Monte Carlo event number to seek |
References EBF__evtsNext(), _EBF_evts_u::es, _EBF_evts_es::evt, _EBF_evt::hdr, _EBF_evts_es::size, and _EBF_pktHdr::undef.
Advances the evts to the event with trigger event sequence number seqNumber.
evts | The target vector of events | |
seqNumber | The trigger event sequence number |
References _EBF_evt::ctb, EBF__evtsNext(), EBF_ESW_SEQ, _EBF_evts_u::es, _EBF_ctbHdr::esw, _EBF_evts_es::evt, _EBF_ctb::hdr, _EBF_evts_es::size, and _EBF_esw::ui.
Skips and limits the number of events.
evts | Pointer to the vector of events to be skipped and limited | |
skip | The number of events to skip | |
limit | The number of events to limit the vector of events to |
References EBF_evtsLimit(), and EBF_evtsSkip().
Referenced by EBF_streamProcess().
Returns an events vector with the specified number of events skipped.
evts | The base vector of events | |
skip | The number of events to skip |
References EBF__evtsNext(), _EBF_evts_u::es, and _EBF_evts_es::size.
Referenced by EBF_evtsSetup().