GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LSEC / V7-1-0 > lsec / linux-gcc


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"
#include <stdlib.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.4 2010/08/12 21:08:46 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.

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.

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.

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.


Generated on Mon Aug 23 10:01:50 2010 by  doxygen 1.5.3