GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-6 > eds / rad750


Interface   Data Structures   File List   Data Fields   Globals  

EBF_calEnergy.h File Reference

Interface to sum the total energy in the CAL. More...

#include <EDS/EDA_cal.h>

Functions

int EBF_calEnergyDirSum (int elayers[EDA_CAL_K_LAYERS_PER_LAT], const EBF_dir *dir, const ECR_cal *constants)
 Sums the energy in each struck CAL log in the LAT.
int EBF_calEnergyEvtSum (int elayers[EDA_CAL_K_LAYERS_PER_LAT], int size, const EBF_evt *evt, const ECR_cal *constants)
 Sums the energy in each struck CAL log in the LAT.


Detailed Description

Interface to sum the total energy in the CAL.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: EBF_calEnergy.h,v 1.3 2011/03/25 22:16:54 russell Exp $

Function Documentation

int EBF_calEnergyDirSum ( int  elayers[EDA_CAL_K_LAYERS_PER_LAT],
const EBF_dir dir,
const ECR_cal constants 
)

Sums the energy in each struck CAL log in the LAT.

Parameters:
elayers Array filled in with the layer-by-layer energy sum
dir The event directory
constants The array of gains and pedestals for the CAL
Returns:
The amount the total energy in the LAT in LEUs

References _EBF_esw::bf, _EBF_dirCtbDsc::ctb, _EBF_dir::ctbs, _EBF_dirRedux::ctids, EBF__dirCtbCalLocate(), EBF_DIR_TEMS_CAL, _EBF_ctbHdr::esw, _EBF_ctb::hdr, _EBF_esw_bf::range, _EBF_dir::redux, sumTower(), sumTower4(), and _ECR_cal::twrs.

int EBF_calEnergyEvtSum ( int  elayers[EDA_CAL_K_LAYERS_PER_LAT],
int  nbytes,
const EBF_evt evt,
const ECR_cal constants 
)

Sums the energy in each struck CAL log in the LAT.

Parameters:
elayers Array filled in with the layer-by-layer energy sum
nbytes The size, in bytes, of the event
evt Pointer to the event
constants The array of gains and pedestals for the CAL
Returns:
The total energy in the calorimeter

References _EBF_CID_IS_TEM, _EBF_esw::bf, _EBF_ebw::bf, _EBF_evt::ctb, _EBF_ctb::dat, EBF__ctbAdvance(), EBF_CID_K_TEM, EBF_EBW_LEN_TO_BYTES, _EBF_ctbHdr::ebw, _EBF_ctbHdr::esw, _EBF_ctb::hdr, _EBF_esw_bf::range, sumTower(), sumTower4(), _ECR_cal::twrs, and _EBF_ebw::ui.


Generated on Fri Dec 9 16:52:08 2011 by  doxygen 1.5.8