GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / dev > qseprint / rhel6-64


Interface   Data Structures   File List   Data Fields   Globals  

QSE_ecalPrint.c File Reference

Prints the CAL energies. More...

#include <stdio.h>
#include <QSE/QSE_ecalPrint.h>
#include <QSE/QSE_ecal.h>
#include <QSE/QSE_cal.h>
#include <EDS/ECR_cal.h>
#include <EDS/EDA_cal.h>

Defines

#define MEV(_energy)   (_energy/ECR_CAL_K_LEU_PER_MEV)
 Picks off the whole number of MEVS.
#define FRACTION(_energy)   ((_energy & (ECR_CAL_K_LEU_PER_MEV - 1)) * (100/ECR_CAL_K_LEU_PER_MEV))
 Picks off the fraction of MEVS (100rths).

Functions

void tower_print (const QSE_ecalTwr *etwr, const QSE_ecalGbl *egbl)
static void energyPrint (int energy)
 Prints the energy in units of Mev.
static void newline (void)
void QSE_ecalTwrPrintFull (const QSE_ecalTwr *etwr)
 Prints an ASCII formatted dump of a CAL tower record.
void QSE_ecalTwrPrintBrief (const QSE_ecalTwr *etwr)
 Prints an ASCII formatted dump of a CAL tower record.
void QSE_ecalPrintSummary (const QSE_ecal *ecal)
 Prints the energy summary(totals) for each layer and the LAT.
void QSE_ecalPrintTowers (const QSE_ecal *ecal, QSE_map map, unsigned int style)
 Prints the energies for the requested map of towers.
void QSE_ecalPrint (const QSE_ecal *ecal, unsigned int options)
 Produces an ASCII display of the CAL data.


Detailed Description

Prints the CAL energies.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: QSE_ecalPrint.c,v 1.2 2011/03/27 01:45:45 russell Exp $

Define Documentation

#define FRACTION ( _energy   )     ((_energy & (ECR_CAL_K_LEU_PER_MEV - 1)) * (100/ECR_CAL_K_LEU_PER_MEV))

Picks off the fraction of MEVS (100rths).

The macros MEV and FRACTION are used to print a pseudo floating point representation of a CAL energy, i.e. something like EEE.ee

Referenced by energyPrint().


Function Documentation

static void energyPrint ( int  energy  )  [static]

Prints the energy in units of Mev.

Parameters:
energy The energy to print

References FRACTION, and MEV.

Referenced by QSE_ecalPrintSummary(), and QSE_ecalTwrPrintFull().

void QSE_ecalPrint ( const QSE_ecal ecal,
unsigned int  options 
)

Produces an ASCII display of the CAL data.

Parameters:
ecal A previously unpacked QSE_ecal structure
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, newline(), QSE_calTwrMapGet(), QSE_ECALPRINT_OPTS_M_BRIEF, QSE_ECALPRINT_OPTS_M_SUMMARY, QSE_ECALPRINT_OPTS_M_TOWERS, QSE_ecalPrintSummary(), and QSE_ecalPrintTowers().

void QSE_ecalPrintSummary ( const QSE_ecal ecal  ) 

Prints the energy summary(totals) for each layer and the LAT.

Parameters:
ecal A previously unpacked QSE_ecal structure

References energyPrint(), _QSE_ecal::gbl, _QSE_ecalGbl::lyrs, newline(), and _QSE_ecalGbl::tot.

Referenced by QSE_ecalPrint().

void QSE_ecalPrintTowers ( const QSE_ecal ecal,
QSE_map  map,
unsigned int  style 
)

Prints the energies for the requested map of towers.

Parameters:
ecal A previously unpacked QSE_ecal structure
map The map of towers to print
style The style of the tower dump (0=Brief, 1=Full)

References _QSE_ecal::cal, newline(), QSE_ecalTwrPrintBrief(), QSE_ecalTwrPrintFull(), QSE_mapRemove(), QSE_mapScanf(), _QSE_ecal::twrs, and _QSE_cal::twrs.

Referenced by QSE_ecalPrint().

void QSE_ecalTwrPrintBrief ( const QSE_ecalTwr etwr  ) 

Prints an ASCII formatted dump of a CAL tower record.

Parameters:
etwr The filled QSE_ecalTwr to print

References _QSE_ecalTwr::cal, _QSE_calTwr::colMaps, _QSE_ecalTwr::logs, _QSE_ecalTwr::lyrs, newline(), _QSE_calTwr::num, QSE_calColMapGet(), QSE_calLyrMapGet(), and _QSE_ecalTwr::tot.

Referenced by QSE_ecalPrintTowers().

void QSE_ecalTwrPrintFull ( const QSE_ecalTwr etwr  ) 

Prints an ASCII formatted dump of a CAL tower record.

Parameters:
etwr The filled QSE_ecalTwr to print

References _QSE_ecalTwr::cal, _QSE_calTwr::colMaps, energyPrint(), _QSE_ecalTwr::logs, _QSE_ecalTwr::lyrs, newline(), _QSE_calTwr::num, QSE_calColMapGet(), QSE_calLyrMapGet(), QSE_mapRemove(), QSE_mapScanf(), and _QSE_ecalTwr::tot.

Referenced by QSE_ecalPrintTowers().


Generated on Fri Nov 30 10:32:44 2012 by  doxygen 1.5.8