GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-5 > eds / rhel6-64
#include <EDS/EDA_cal.h>
#include <PBI/Endianness.h>
Classes | |
struct | _ECR_calLogEnd_bf |
The calibration constants for one range of one log end, bit field representation. More... | |
union | _ECR_calLogEnd |
The calibration constants for one range of one log end. More... | |
struct | _ECR_calLog |
The calibration constants for one range of one log. More... | |
union | _ECR_calLayer |
The calibration constants for one range of one layer. More... | |
union | _ECR_calRange |
The calibration constants for one ranges of a one tower. More... | |
union | _ECR_calTower |
The calibration constants for all ranges of a one tower. More... | |
struct | _ECR_cal |
The calibration constants for CAL. More... | |
Defines | |
#define | ECR_CAL_V_LEU_PER_MEV 2 |
Determines the internal units of the CAL LOG Energy Scale, expressed as a power of 2. | |
#define | ECR_CAL_K_LEU_PER_MEV (1 << ECR_CAL_V_LEU_PER_MEV) |
Determines the internal units of the CAL LOG Energy Scale. | |
#define | ECR_CAL_V_GAIN_PER_LEU 8 |
Calibration energy scale as power of 2. | |
#define | ECR_CAL_K_GAIN_PER_LEU (1 << ECR_CAL_V_GAIN_PER_LEU) |
Calibration energy scale. | |
#define | ECR_CAL_MEV_TO_LEU(_mev) ((_mev) * ECR_CAL_K_LEU_PER_MEV) |
Converts an energy in MEV to an LEU. | |
#define | ECR_CAL_LEU_TO_MEV(_leu) ((_leu) / ECR_CAL_K_LEU_PER_MEV) |
Converts an energy in MEV to an LEU. | |
Typedefs | |
typedef struct _ECR_calLogEnd_bf | ECR_calLogEnd_bf |
Typedef for struct _ECR_calLogEnd_bf. | |
typedef union _ECR_calLogEnd | ECR_calLogEnd |
Typedef for union _ECR_calLogEnd. | |
typedef struct _ECR_calLog | ECR_calLog |
Typedef for struct _ECR_calLog. | |
typedef union _ECR_calLayer | ECR_calLayer |
Typedef for union _ECR_calLayer. | |
typedef union _ECR_calRange | ECR_calRange |
Typedef for union _ECR_calRange. | |
typedef union _ECR_calTower | ECR_calTower |
Typedef for union _ECR_calTower. | |
typedef struct _ECR_cal | ECR_cal |
Typedef for struct _ECR_cal. | |
Functions | |
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.h,v 1.5 2011/03/25 22:16:54 russell Exp $
#define ECR_CAL_K_GAIN_PER_LEU (1 << ECR_CAL_V_GAIN_PER_LEU) |
Calibration energy scale.
#define ECR_CAL_K_LEU_PER_MEV (1 << ECR_CAL_V_LEU_PER_MEV) |
Determines the internal units of the CAL LOG Energy Scale.
3072 logs * 102,400 Mev * 4 Counts/Mev = ~1.25 x 10 ** 9
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().