GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-3-0 > qseprint / linux-gcc


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.1 2008/09/19 22:02:55 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


Function Documentation

static void energyPrint ( int  energy  )  [static]

Prints the energy in units of Mev.

Parameters:
energy The energy to print

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

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

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)

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

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


Generated on Thu Sep 2 14:38:48 2010 by  doxygen 1.5.3