GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSE / V1-3-5
Constituent: lsew     Tag: rad750
#include "dprintf.h"
#include "LSE/CDF_gem.h"
#include "LSE/CDF_gemdef.h"
#include "CDF_gem_def.h"
#include "LSE/LSEW_dgmFw.h"
#include "LSE/LSEW_ctxPub.h"
#include "EDS/EBF_gem.h"
#include "EDS/FFS.h"
#include "LDT/BFP.h"
#include "LSE/cdf_buf_print.h"
#include <string.h>
Include dependency graph for CDF_gem.c:
Data Structures | |
struct | _CDF_gemCfg |
Static GEM configuration, this is passed into construction routines and the information is transferred into CDF_gem_cfg. More... | |
Typedefs | |
typedef _CDF_gemCfg | CDF_gemCfg |
Typedef for struct _CDF_gemCfg. | |
typedef enum _Method | Method |
Typedef for enum _Method. | |
Enumerations | |
enum | _Method { STD = 0, PED = 1 } |
Indicates the packing method, either for standard physics events or for pedestal events. More... | |
Functions | |
static __inline void | gem_reset (CDF_gem *cdf) |
Clears stale context from the GEM compression data format handle. | |
static unsigned int | gem_assess (CDF_gem *cdf, const EBF_gem *gem) |
Constructs a status word consisting of the trigger condition byte and its consistency with both the primitives that set the various bits and trigger condition bit. For those trigger condition primitives that are absent, it records whether the condition arrival time is 0x1f. | |
static unsigned int | gem_pps_pack (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int not_std, unsigned int status) |
Adds the introductory bits + PPS if necessary. | |
static unsigned int | gem_std_pack (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int seq, unsigned int status) |
Adds the GEM record. | |
static __inline unsigned int | gem_ped_pack (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int seq, unsigned int status) |
Compresses the GEM data when zero suppression has been disabled. | |
static __inline unsigned int | gem_psbcat_set (unsigned int status, unsigned int primitive, unsigned int condtime, unsigned int psb_msk, unsigned int cat_msk) |
Sets the Primitive nd Condition Arrival Time status bits. | |
static __inline unsigned int | gem_pack_primitives (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int status) |
Packs the trigger primitives status byte plus any non-0 values. | |
static __inline unsigned int | gem_pack_conditions (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int status) |
Packs the trigger condition status. | |
static __inline unsigned int | gem_pack_condtimes (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int status) |
static __inline unsigned int | gem_pack_deadzone (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int status) |
Packs the deadzone counter value. | |
static __inline unsigned int | gem_pack_times (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int seq) |
Packs the trigger and livetime counter values. | |
static __inline unsigned int | gem_pack_prescaled (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem) |
Packs the prescale counter. | |
static __inline unsigned int | gem_pack_discarded (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem) |
Packs the discard counter. | |
static __inline unsigned int | gem_pack_dwinevt (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem) |
Packs the delta Window and Event times. | |
static __inline unsigned int | gem_pack_acd (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int status) |
Adds the GEM ACD information. Since one does not expect many hits, these are packed as a list of bit addresses. | |
int | CDF_gemCfg_sizeof (int level) |
Returns the size, in bytes of the GEM compression configuration needed to support the specified level. | |
int | CDF_gemCfg_construct (CDF_gemCfg *cfg, int level, void **mem) |
Constructs the CDF_gemCfg compression configuration. | |
void | CDF_gemCfg_set_min_deadtime (CDF_gemCfg *cfg, int min_deadtime) |
Sets the minimum deadtime. | |
int | CDF_gem_sizeof (int level, const CDF_gemCfg *cfg) |
Returns the size, in bytes of the GEM compression structure needed to support the specified level. | |
int | CDF_gem_construct (CDF_gem *cdf, int level, const CDF_gemCfg *cfg, const LSEW_dgmFw *dgmFw, void **mem) |
Constructs the CDF_gem compression context. | |
void | CDF_gem_begin (CDF_gem *cdf, CDF_gemBdy *bdy) |
Fills int the GEM portion of the datagram contribution used in when decoding an GEM event. | |
unsigned int | CDF_gem_std_compress (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int seq) |
Compresses the GEM for standard zero suppressed data. | |
unsigned int | CDF_gem_ped_compress (CDF_gem *cdf, unsigned int *buf, unsigned int pos, const EBF_gem *gem, unsigned int seq) |
Compresses the GEM data when zero suppression has been disabled. | |
void | CDF_gem_update (CDF_gem *cdf, const EBF_gem *gem, unsigned int seq) |
Updates any running context. |
CVS $Id: CDF_gem.c,v 1.8 2007/02/14 04:12:38 russell Exp $
|
Indicates the packing method, either for standard physics events or for pedestal events.
|
|
Fills int the GEM portion of the datagram contribution used in when decoding an GEM event.
|
|
Constructs the CDF_gem compression context.
|
|
Compresses the GEM data when zero suppression has been disabled.
|
|
Returns the size, in bytes of the GEM compression structure needed to support the specified level.
|
|
Compresses the GEM for standard zero suppressed data.
|
|
Updates any running context.
|
|
Constructs the CDF_gemCfg compression configuration.
|
|
Sets the minimum deadtime.
|
|
Returns the size, in bytes of the GEM compression configuration needed to support the specified level.
|
|
Constructs a status word consisting of the trigger condition byte and its consistency with both the primitives that set the various bits and trigger condition bit. For those trigger condition primitives that are absent, it records whether the condition arrival time is 0x1f.
|
|
Adds the GEM ACD information. Since one does not expect many hits, these are packed as a list of bit addresses.
|
|
Packs the trigger condition status.
|
|
Packs the deadzone counter value.
|
|
Packs the discard counter.
|
|
Packs the delta Window and Event times.
|
|
Packs the prescale counter.
|
|
Packs the trigger primitives status byte plus any non-0 values.
|
|
Packs the trigger and livetime counter values.
However, because this code assumes nothing that would invalid the encoding, one must be prepared to handle the case that the adjusted deadtime might be negative. In practice, the only place that this should happen is with Monte Carlo data where the fixed deadtime was not specified to be 529.
|
|
Compresses the GEM data when zero suppression has been disabled.
|
|
Adds the introductory bits + PPS if necessary.
|
|
Sets the Primitive nd Condition Arrival Time status bits.
|
|
Clears stale context from the GEM compression data format handle.
|
|
Adds the GEM record.
|