GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-5 > eds / mv2304
#include <EDS/EBF_cal.h>
#include <EDS/EDA_cal.h>
#include <EDS/ECR_cal.h>
#include <CAL_DB/CAL_DB_schema_pedestals.h>
#include <CAL_DB/CAL_DB_schema_gains.h>
#include <CDM/CDM_pubdefs.h>
Functions | |
static int | calFill (ECR_cal *cal, const CAL_DB_schema_pedestals *peds, const CAL_DB_schema_gains *gains) |
Transforms the contents of the input data into an ECR_cal structure. | |
int | ECR_calInit (ECR_cal *cal) |
Initializes the calibration constants for all towers to a nominal set. | |
int | ECR_calSizeof (void) |
Returns the size, in bytes, of an ECR_cal structure. |
CVS $Id: ECR_cal.c,v 1.6 2011/03/25 22:16:56 russell Exp $
static int calFill | ( | ECR_cal * | cal, | |
const CAL_DB_schema_pedestals * | peds, | |||
const CAL_DB_schema_gains * | gains | |||
) | [static] |
Transforms the contents of the input data into an ECR_cal structure.
cal | The ECR_cal data structure to fill | |
peds | The CAL pedestals database | |
gains | The CAL gains database |
References _ECR_calLogEnd::bf, _ECR_calLayer::columns, EDA_CAL_K_LAYERS_PER_TOWER, EDA_CAL_K_LOGS_PER_LAYER, _ECR_calLogEnd_bf::gain, _ECR_calRange::layers, _ECR_calLog::n, _ECR_calLog::p, _ECR_calLogEnd_bf::pedestal, _ECR_calTower::ranges, _ECR_calLogEnd_bf::shift, and _ECR_cal::twrs.
Referenced by ECR_calInit().
int ECR_calInit | ( | ECR_cal * | cal | ) |
Initializes the calibration constants for all towers to a nominal set.
0,If | successful | |
!= | 0, if failure |
cal | The gains and pedestals to be initialized. |
References calFill().
Referenced by initIxbObjTbl().
int ECR_calSizeof | ( | void | ) |
Returns the size, in bytes, of an ECR_cal structure.
After allocating an ECR_acd structure, the structure should be initialized using ECR_calInit().