GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / dev > qse / rhel5-64
#include <QSE/QSE_ecal.h>
#include <QSE/QSE_ecalFill.h>
#include <QSE/QSE_cal.h>
#include <EDS/ECR_cal.h>
#include <EDS/EDA_cal.h>
#include <string.h>
Functions | |
static __inline int | convert (int val, const ECR_calLogEnd *cal) |
Converts ADC value into standard units (Log Energy Units). LEUs are the standard unit internally used by the filter code. | |
static __inline int * | fill_tower (QSE_ecalTwr *etwr, QSE_ecalGbl *egbl, int *elogs, const QSE_calTwr *twr, const ECR_calTower *ctwr) |
Prints an ASCII formatted dump of a CAL tower record. | |
int | QSE_ecalSizeof (void) |
Returns the size, in bytes, of a QSE_ecal structure. | |
void | QSE_ecalConstruct (QSE_ecal *ecal) |
Does the intial construction of an QSE_ecal structure. | |
void | QSE_ecalFill (QSE_ecal *ecal, const QSE_cal *cal, const ECR_cal *clb, unsigned int options) |
Produces an ASCII display of the CAL data. |
CVS $Id: QSE_ecalFill.c,v 1.2 2011/03/27 01:45:45 russell Exp $
static __inline int convert | ( | int | val, | |
const ECR_calLogEnd * | cal | |||
) | [static] |
Converts ADC value into standard units (Log Energy Units). LEUs are the standard unit internally used by the filter code.
val | The ADC value to convert | |
cal | The calibration values for one log end |
Referenced by fill_tower().
static __inline int * fill_tower | ( | QSE_ecalTwr * | etwr, | |
QSE_ecalGbl * | egbl, | |||
int * | elogs, | |||
const QSE_calTwr * | twr, | |||
const ECR_calTower * | ctwr | |||
) | [static] |
Prints an ASCII formatted dump of a CAL tower record.
etwr | The QSE_ecalTwr structure to fill | |
egbl | The QSE_ecal structure to update with total energies | |
*elogs | The pointer to arrary of log energies to fill | |
twr | The unpacked CAL data for the tower | |
ctwr | The calibration constants for this tower |
References _QSE_calLog::bf, _QSE_ecalTwr::cal, _QSE_calTwr::colMaps, convert(), _QSE_calTwr::flags, _QSE_ecalTwr::logs, _QSE_calTwr::logs, _QSE_ecal::logs, _QSE_ecalGbl::lyrs, _QSE_ecalTwr::lyrs, QSE_calColMapGet(), QSE_calFlagsIs4Rng(), QSE_calLyrMapGet(), QSE_mapRemove(), QSE_mapScanf(), _QSE_calLog_bf::rngN, _QSE_calLog_bf::rngP, _QSE_ecalGbl::tot, _QSE_ecalTwr::tot, _QSE_calLog::ui, _QSE_calLog_bf::valN, and _QSE_calLog_bf::valP.
Referenced by QSE_ecalFill().
void QSE_ecalConstruct | ( | QSE_ecal * | ecal | ) |
Does the intial construction of an QSE_ecal structure.
ecal | The QSE_ecal structure to construct |
void QSE_ecalFill | ( | QSE_ecal * | ecal, | |
const QSE_cal * | cal, | |||
const ECR_cal * | clb, | |||
unsigned int | options | |||
) |
Produces an ASCII display of the CAL data.
ecal | The QSE_ecal structure to fill | |
cal | A previously unpacked CAL LAT Record. | |
clb | The CAL calibration constants | |
options | An options mask. The top 16 bits are a mask of which towers to print (MSB = TOWER 0), the low bit indicates to print the summary |
References _QSE_ecal::cal, fill_tower(), _QSE_ecal::gbl, _QSE_ecal::logs, QSE_calTwrMapGet(), QSE_mapRemove(), QSE_mapScanf(), _QSE_cal::twrs, and _QSE_ecal::twrs.
int QSE_ecalSizeof | ( | void | ) |
Returns the size, in bytes, of a QSE_ecal structure.