GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / dev > edsprint / rhel6-32


Interface   Data Structures   File List   Data Fields   Globals  

EBF_mc.h File Reference

Maps out the 8 word prefix area when it contains Monte Carlo Information. More...

#include <PBI/Endianness.h>

Classes

struct  _EBF_mc
 Defines the packet header area when it contains Monte Carlo Information. More...

Typedefs

typedef struct _EBF_mc EBF_mc
 Typedef for struct _EBF_pktHdrMc.

Functions

static __inline int EBF__mcEnergyToMev (unsigned int mcEnergy)
 Converts an energy in Monte Carlo Format to Mev.


Detailed Description

Maps out the 8 word prefix area when it contains Monte Carlo Information.

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

Function Documentation

static __inline int EBF__mcEnergyToMev ( unsigned int  mcEnergy  )  [static]

Converts an energy in Monte Carlo Format to Mev.

Returns:
The energy in MeV
Parameters:
mcEnergy The Monte Carlo Energy to convert
The energy stored in the Monte Carlo information record is a 16 bit pseudo floating point value. The most significant 3-bits act as the exponent, while the low 12 bits act as the mantissa. The conversion formula is

        E_in_Mev = mantissa << exp;
     

Referenced by EDR_mcPrint().


Generated on Fri Nov 30 09:26:48 2012 by  doxygen 1.5.8