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


Interface   Data Structures   File List   Data Fields   Globals  

ECR_cal.c File Reference

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

#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.


Detailed Description

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

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

The CAL calibration constants are initialized to a nominal set of values. These values are semi-realistic in the sense that they have about the right values as real calibration constants. They do not however, represent an real set of calibration constants.

Function Documentation

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.

Returns:
Status, currently always 0
Parameters:
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.

Return values:
0,If successful
!= 0, if failure
Parameters:
cal The gains and pedestals to be initialized.
This is not meant to be real in any sense of the word. It is to be used for debugging only.

References calFill().

Referenced by initIxbObjTbl().

int ECR_calSizeof ( void   ) 

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

Returns:
The size, in bytes, of an ECR_cal structure
This function should be called to determine the size of an ECR_cal 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_calInit().


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