GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-12-1 > eds / rhel6-32


Interface   Data Structures   File List   Data Fields   Globals  

ECR_acd.c File Reference

Initializes the ACD calibration constants to a nominal set of values. More...

#include <EDS/EDA_acd.h>
#include <EDS/ECR_acd.h>
#include <CAL_DB/ACD_DB_schema_pedestals.h>
#include <CAL_DB/ACD_DB_schema_gains.h>
#include <CDM/CDM_pubdefs.h>

Functions

static int acdFill (ECR_acd *acd, const ACD_DB_schema_pedestals *peds, const ACD_DB_schema_gains *gains)
 Transforms the contents of the input data into an ECR_acd structure.
int ECR_acdInit (ECR_acd *acd)
 Initializes the calibration constants for the ACD.
int ECR_acdSizeof (void)
 Returns the size, in bytes, of an ECR_acd structure.


Detailed Description

Initializes the ACD calibration constants to a nominal set of values.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: ECR_acd.c,v 1.2 2011/03/25 22:16:56 russell Exp $

Function Documentation

static int acdFill ( ECR_acd acd,
const ACD_DB_schema_pedestals *  peds,
const ACD_DB_schema_gains *  gains 
) [static]

Transforms the contents of the input data into an ECR_acd structure.

Returns:
Status, currently always 0
Parameters:
acd The ECR_acd data structure to fill
peds The CAL pedestals database
gains The CAL gains database

References _ECR_acdPedestals::chns, EDA_ACD_K_NCBLS, EDA_ACD_K_NCHNS_PER_CBL, and _ECR_acd::peds.

Referenced by ECR_acdInit().

int ECR_acdInit ( ECR_acd acd  ) 

Initializes the calibration constants for the ACD.

Return values:
0,If successful
!= 0, if failure
Parameters:
acd The gains and pedestals to be initialized.

References acdFill().

Referenced by initIxbObjTbl().

int ECR_acdSizeof ( void   ) 

Returns the size, in bytes, of an ECR_acd structure.

Returns:
The size, in bytes, of an ECR_acd structure
This function should be called to determine the size of an ECR_acd structure. This allows the calling program to avoid including the structure definition an ECR_cal.

After allocating an ECR_acd structure, the structure should be initialized using ECR_acdInit().


Generated on Thu Sep 27 13:51:02 2012 by  doxygen 1.5.8