GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSEC / dev > qsec / linux-gcc
#include <PBI/Endianness.h>
#include <LSF/LSF.h>
#include <LSF/LSF_ids.h>
#include <stdio.h>
Classes | |
struct | _QSEC_channel |
Channel masking used to collect these events. More... | |
struct | _QSEC_acd |
ACD specific context. More... | |
struct | _QSEC_cal |
Calorimeter specific context. More... | |
struct | _QSEC_tkr |
Tracker specific context. More... | |
union | _QSEC_specific |
Union of the context specific to each calibration mode. More... | |
struct | _QSEC_global |
Context of the calibration common to all modes. More... | |
struct | _QSEC_ctx |
Structure defining the complete calibration context. More... | |
struct | _QSEC_acd_v0 |
ACD specific context. More... | |
struct | _QSEC_cal_v0 |
Calorimeter specific context. More... | |
struct | _QSEC_tkr_v0 |
Tracker specific context. More... | |
union | _QSEC_specific_v0 |
Union of the context specific to each calibration mode. More... | |
struct | _QSEC_global_v0 |
Context of the calibration common to all modes. More... | |
struct | _QSEC_ctx_v0 |
Structure defining the complete calibration context. More... | |
Defines | |
#define | QSEC_ID(_id) (LSF_ID_K_LSEC | (_id)) |
Macro applying the QSEC offset to an ID. | |
Typedefs | |
typedef struct _QSEC_channel | QSEC_channel |
Channel masking used to collect these events. | |
typedef struct _QSEC_acd | QSEC_acd |
ACD specific context. | |
typedef struct _QSEC_cal | QSEC_cal |
Calorimeter specific context. | |
typedef struct _QSEC_tkr | QSEC_tkr |
Tracker specific context. | |
typedef union _QSEC_specific | QSEC_specific |
Union of the context specific to each calibration mode. | |
typedef struct _QSEC_global | QSEC_global |
Context of the calibration common to all modes. | |
typedef struct _QSEC_ctx | QSEC_ctx |
Structure defining the complete calibration context. | |
typedef struct _QSEC_acd_v0 | QSEC_acd_v0 |
ACD specific context. | |
typedef struct _QSEC_cal_v0 | QSEC_cal_v0 |
Calorimeter specific context. | |
typedef struct _QSEC_tkr_v0 | QSEC_tkr_v0 |
Tracker specific context. | |
typedef union _QSEC_specific_v0 | QSEC_specific_v0 |
Union of the context specific to each calibration mode. | |
typedef struct _QSEC_global_v0 | QSEC_global_v0 |
Context of the calibration common to all modes. | |
typedef struct _QSEC_ctx_v0 | QSEC_ctx_v0 |
Structure defining the complete calibration context. | |
Enumerations | |
enum | { QSEC_CTX_VERSION = 1 } |
Current context version. | |
enum | { QSEC_ID_ETX_FULL = QSEC_ID (1), QSEC_ID_ETX_ABBREVIATED = QSEC_ID (2), QSEC_ID_TIM_FULL = QSEC_ID (3), QSEC_ID_TIM_ABBREVIATED = QSEC_ID (4), QSEC_ID_CALIB_ACD = QSEC_ID (8), QSEC_ID_CALIB_ACD_CTX = QSEC_ID (9), QSEC_ID_CALIB_CAL = QSEC_ID (11), QSEC_ID_CALIB_CAL_CTX = QSEC_ID (12), QSEC_ID_CALIB_TKR = QSEC_ID (14), QSEC_ID_CALIB_TKR_CTX = QSEC_ID (15), QSEC_ID_CALIB_TKR_EVT = 0, QSEC_ID_CALIB_RAW_EVT = 1, QSEC_ID_CALIB_CMP_EVT = 2, QSEC_ID_CALIB_ACD_EVT = 10, QSEC_ID_CALIB_CAL_EVT = 13 } |
Contribution ID definitions. More... | |
enum | { QSEC_MODE_NONE = 0, QSEC_MODE_ACD = 1, QSEC_MODE_CAL = 2, QSEC_MODE_TKR = 3 } |
Possible calibration modes. | |
enum | { QSEC_CHANNEL_SINGLE = 0, QSEC_CHANNEL_ALL = 1, QSEC_CHANNEL_PER_FE = 2, QSEC_CHANNEL_LATC = 3 } |
Flags indicating the meaning of the associated channel number. | |
enum | { QSEC_N_TWR = 16, QSEC_N_CAL_RNG = 4, QSEC_N_CAL_LAY = 8, QSEC_N_CAL_COL = 12, QSEC_N_CAL_END = 2 } |
Enumerations used in the layout of the structures that follow. | |
Functions | |
size_t | QSEC_sizeofCtx (void) |
Return the size of the QSEC context structure. | |
QSEC_ctx * | QSEC_constructCtx (void *buffer) |
Construct a QSEC_ctx structure in the memory provided. | |
QSEC_ctx * | QSEC_allocCtx (void) |
Allocate memory for a QSEC_ctx structure and construct it as such. | |
void | QSEC_destructCtx (QSEC_ctx *ctx) |
Release resources associated with the QSEC_ctx structure. | |
void | QSEC_reportCtx (const QSEC_ctx *ctx, FILE *fp) |
Write a formatted ASCII description of the contents of the context to the file fp. | |
const unsigned int * | QSEC_recoverCtx (QSEC_ctx *ctx, const unsigned int *buf) |
Copy the context information from the buffer. |
anonymous enum |
Contribution ID definitions.
QSEC_ctx* QSEC_allocCtx | ( | void | ) |
Allocate memory for a QSEC_ctx structure and construct it as such.
References QSEC_constructCtx(), and QSEC_sizeofCtx().
QSEC_ctx* QSEC_constructCtx | ( | void * | buffer | ) |
Construct a QSEC_ctx structure in the memory provided.
buffer | block of memory to use for the QSEC_ctx structure |
References QSEC_sizeofCtx().
Referenced by QSEC_allocCtx(), and QSEC_construct().
void QSEC_destructCtx | ( | QSEC_ctx * | ctx | ) |
Release resources associated with the QSEC_ctx structure.
ctx | Pointer to a QSEC_ctx structure created using QSEC_allocCtx() |
const unsigned int* QSEC_recoverCtx | ( | QSEC_ctx * | ctx, | |
const unsigned int * | buf | |||
) |
Copy the context information from the buffer.
This routine must be able to deal with previous versions of the context information and fill in any new fields appropriately.
ctx | Pointer to a context structure | |
buf | Pointer to the context data |
References _QSEC_cal_v0::accept, _QSEC_cal::accept, _QSEC_specific_v0::acd, _QSEC_specific::acd, _QSEC_acd_v0::bias_dac, _QSEC_acd::bias_dac, _QSEC_specific_v0::cal, _QSEC_specific::cal, _QSEC_cal::calib_gain, _QSEC_tkr_v0::channel, _QSEC_tkr::channel, _QSEC_cal_v0::channel, _QSEC_cal::channel, _QSEC_acd_v0::channel, _QSEC_acd::channel, _QSEC_cal_v0::first_range, _QSEC_cal::first_range, _QSEC_channel::flags, _QSEC_ctx_v0::global, _QSEC_ctx::global, _QSEC_cal::high_cal_ena, _QSEC_cal_v0::high_energy, _QSEC_cal::high_gain, _QSEC_cal::high_rng_ena, _QSEC_cal::high_thresh, _QSEC_cal::high_trg_ena, _QSEC_acd::hitmap_delay, _QSEC_acd_v0::HLD, _QSEC_acd::HLD, _QSEC_acd_v0::hold_delay, _QSEC_acd::hold_delay, _QSEC_tkr_v0::injection, _QSEC_tkr::injection, _QSEC_cal_v0::injection, _QSEC_cal::injection, _QSEC_acd_v0::injection, _QSEC_acd::injection, _QSEC_global_v0::latc_cfg, _QSEC_global::latc_cfg, _QSEC_global_v0::lci_cfg, _QSEC_global::lci_cfg, _QSEC_cal::low_cal_ena, _QSEC_cal_v0::low_energy, _QSEC_cal::low_gain, _QSEC_cal::low_rng_ena, _QSEC_cal::low_thresh, _QSEC_cal::low_trg_ena, _QSEC_ctx::mode, _QSEC_channel::number, _QSEC_global_v0::one_range, _QSEC_global::one_range, _QSEC_global_v0::period, _QSEC_global::period, _QSEC_acd_v0::PHA, _QSEC_acd::PHA, _QSEC_acd::range, _QSEC_ctx_v0::specific, _QSEC_ctx::specific, _QSEC_tkr::split_high, _QSEC_tkr::split_low, _QSEC_global_v0::strobe, _QSEC_global::strobe, _QSEC_tkr_v0::TACK_delay, _QSEC_tkr::TACK_delay, _QSEC_cal_v0::TACK_delay, _QSEC_cal::TACK_delay, _QSEC_tkr_v0::threshold, _QSEC_tkr::threshold, _QSEC_specific_v0::tkr, _QSEC_specific::tkr, _QSEC_cal_v0::ULD, _QSEC_cal::ULD, _QSEC_ctx::version, _QSEC_acd_v0::veto, _QSEC_acd::veto, _QSEC_acd_v0::veto_vernier, _QSEC_acd::veto_vernier, _QSEC_global_v0::zero_supp, and _QSEC_global::zero_supp.
Referenced by QSEC_updateAtContribution().
void QSEC_reportCtx | ( | const QSEC_ctx * | ctx, | |
FILE * | fp | |||
) |
Write a formatted ASCII description of the contents of the context to the file fp.
ctx | Pointer to a context structure | |
fp | Pointer to the output file |
References _QSEC_ctx::mode, reportCtxAcd(), reportCtxCal(), and reportCtxTkr().
size_t QSEC_sizeofCtx | ( | void | ) |
Return the size of the QSEC context structure.
Referenced by QSEC_allocCtx(), and QSEC_constructCtx().