GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSEC / dev > lsec / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

compact.h File Reference

Declaration of the compaction structure. More...

#include <LSEC_p.h>
#include <LSEC/enums.h>
#include <EDS/EBF_dir.h>
#include <EDS/EBF_tem.h>
#include <EDS/EBF_gem.h>
#include <EDS/EBF_ctb.h>
#include <LDT/APE.h>

Classes

struct  LSEC_gem
 Private structure to hold a GEM event contribution. More...
struct  _LSEC_calEvent
 Private structure to hold an expanded CAL event. More...
struct  LSEC_calCompaction
 Private structure holding the compression information for the calorimeter. More...
struct  _LSEC_compaction
 Overall compression information. More...

Typedefs

typedef unsigned int LSEC_sizeUserRtn (LSEC_compaction *cpc)
 Definition of routine to get user context size.
typedef unsigned int * LSEC_copyUserRtn (LSEC_compaction *cpc, unsigned int *buf)
 Definition of routine to copy user context.

Enumerations

enum  {
  LM_LENG = LSEC_N_CAL_LAY * LSEC_N_CAL_COL / 8 / sizeof(unsigned),
  FR_LENG = 4 * LM_LENG
}
 Miscellaneous constants. More...

Functions

static __inline unsigned int getBit (int index, const unsigned int *buff)
 Get a bit from an integer buffer.
static __inline void setBit (unsigned int index, unsigned int *buff)
 Set a bit in an integer buffer.
static __inline unsigned int getNib (int index, const unsigned int *buff)
 Get a nibble from an integer buffer.
static __inline void setNib (unsigned int value, unsigned int index, unsigned int *buff)
 Set a nibble in an integer buffer.


Detailed Description

Declaration of the compaction structure.

Author:
James Swain & Owen Saxton
$Id: compact.h,v 1.5 2011/03/27 17:48:20 saxton Exp $

Enumeration Type Documentation

anonymous enum

Miscellaneous constants.

Enumerator:
LM_LENG  Size of the CAL log map for a tower.
FR_LENG  Size of the CAL first range data for a tower.


Function Documentation

static __inline unsigned int getBit ( int  index,
const unsigned int *  buff 
) [static]

Get a bit from an integer buffer.

The bits are numbered from low to high order within each integer.

Parameters:
index The index of the bit to be obtained.
buff Address of the integer buffer.
Returns:
The value of the specified bit.

Referenced by LSEC_encodeCal(), and LSEC_histogramCal().

static __inline unsigned int getNib ( int  index,
const unsigned int *  buff 
) [static]

Get a nibble from an integer buffer.

The bits are numbered from low to high order within each integer.

Parameters:
index The index of the nibble to be obtained.
buff Address of the integer buffer.
Returns:
The value of the specified nibble.

Referenced by LSEC_encodeCal(), and LSEC_histogramCal().

static __inline void setBit ( unsigned int  index,
unsigned int *  buff 
) [static]

Set a bit in an integer buffer.

The bits are numbered from low to high order within each integer.

Parameters:
index The index of the bit to be set.
buff Address of the integer buffer.

Referenced by LSEC_accumCalMeans().

static __inline void setNib ( unsigned int  value,
unsigned int  index,
unsigned int *  buff 
) [static]

Set a nibble in an integer buffer.

The bits are numbered from low to high order within each integer.

Parameters:
value The nibble value to be set.
index The index of the nibble to be set.
buff Address of the integer buffer.

Referenced by LSEC_accumCalMeans().


Generated on Mon Mar 28 10:58:03 2011 by  doxygen 1.5.8