GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EFC / V4-2-2
Constituent: defc     Tag: sun-gcc
#include "EFA_p.h"
#include "EFC_time.ih"
#include "EDS/EDS_cfg.h"
#include "LSF/LSF_reason.h"
#include "dprintf.h"
#include "EFA_synch.c"
Include dependency graph for EFA.c:
Defines | |
#define | PAUSED |
Defines a bit mask representing which close reasons will force the state to paused. | |
#define | STOPPED |
Defines a bit mask representing which close reasons will force the state to stopped. | |
Functions | |
static __inline void | efa_get_new_packet (EFA *efa) |
Gets a new packet after the current packet has been postedefa The Event Filter Analysis control handle. | |
static __inline void | efa_compose_end_hdr (EFA *efa) |
Composes the end of sample header from the information of the last event efa The Event Filter Analysis control handle. | |
int | EFA_enable (EFA *efa, int enable) |
Enables/disables EFA. This can only be done outside the context of a run, i.e. the state must be STOPPED. | |
int | EFA_sizeof (int result_size, int result_cnt) |
Computes the size, in bytes, of the EFA control structure. | |
int | EFA_resultSizeof (const EFA *efa) |
Returns the size, in bytes, of one result vector. | |
int | EFA_construct (EFA *efa, void *pool, int enable, const EFA_services *services, void *ctx, unsigned int size, unsigned int postCnt, unsigned int flushCnt) |
Set up the internal data structures of the EFA control structure. | |
int | EFA_notify (EFA *efa, int mode, const EDS_cfgInfo *cfg) |
Callback signature to notify an analyis routine of a mode change. | |
int | EFA_flush (EFA *efa, int reason) |
Forces a posting of the current results. | |
void | EFA_postprocess (EFA *efa) |
Processes a packet when it has been filled. This is just the logic to drive EFA_flush. | |
int | EFA_start (EFA *efa, int reason, int run_id, int startTime, int mode) |
Callback signature to start or prepare a posting stream to receive events. | |
unsigned int | EFA_hdrCompose (EFA_hdr *hdr, unsigned int relative, unsigned long long seq, unsigned int gemClock, unsigned int gemStrobe) |
Composes specified event header. |
CVS $Id: EFA.c,v 1.2 2007/11/02 18:20:27 russell Exp $
Each filter is allowed to produced a vector of N 32-bits words which act as a summary of its results. The first word of this vector must be a 32-bit mask of the conditions.
This facility provides a framework to analyze these result vectors. Typically, these results are bundled into a vector of results and passed to an analysis routine. For example, EFS the generic statistics package, is an example of such a routine.
|
Value: ((1<<LSF_REASON_CLOSE_K_PAUSE ) \ | (1<<LSF_REASON_CLOSE_K_PAUSE_OP ) \ | (1<<LSF_REASON_CLOSE_K_PAUSE_AUTO ))
|
|
Value: ((1<<LSF_REASON_CLOSE_K_STOP ) \ | (1<<LSF_REASON_CLOSE_K_STOP_OP ) \ | (1<<LSF_REASON_CLOSE_K_STOP_TIME ) \ | (1<<LSF_REASON_CLOSE_K_STOP_COUNT ) \ | (1<<LSF_REASON_CLOSE_K_ABORT ) \ | (1<<LSF_REASON_CLOSE_K_ABORT_OP ) \ | (1<<LSF_REASON_CLOSE_K_ABORT_AUTO ))
|
|
Set up the internal data structures of the EFA control structure.
|
|
Enables/disables EFA. This can only be done outside the context of a run, i.e. the state must be STOPPED.
|
|
Forces a posting of the current results.
|
|
Composes specified event header.
|
|
Callback signature to notify an analyis routine of a mode change.
|
|
Processes a packet when it has been filled. This is just the logic to drive EFA_flush.
|
|
Returns the size, in bytes, of one result vector.
|
|
Computes the size, in bytes, of the EFA control structure.
|
|
Callback signature to start or prepare a posting stream to receive events.
|