GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-12-1 > edsprint / rhel6-32


Interface   Data Structures   File List   Data Fields   Globals  

ACD_map.h File Reference

Defines the interface to the mapping arrays that translate between ACD electronics channel numbering and ACD geometric channel numbering. More...


Functions

static __inline unsigned char ACD__mapEdx (int board, int channel)
 Returns the electronics index of an ACD channel by its FREE board (or cable) number and its FREE board channel number.
static __inline unsigned char ACD__mapEtoG (int board, int channel)
 Remaps an ACD electronics channel, defined by its FREE board (or cable) number and its FREE board channel number to its corresponding geometic (or GEM) channel number.
static __inline unsigned char ACD__mapGdx (int list, int channel)
 Returns the geometric or GEM index for the tile specified by its GEM list identifier and channel number within the list.
static __inline unsigned char ACD__mapGtoE (int list, int channel)
 Remaps an ACD geometric (or GEM) tile, specified by its list id (XZ , YZ, XY, RGN) and channel number, into its equivalent electronics channel index/number defined by its FREE board (or cable) number and its FREE board channel number. See ACD__mapEdx for the definition of electronics index.

Variables

const unsigned char ACD_MapEtoG [256]
 Maps an ACD electronics channel, defined by its cable/board number and its free board channel number to the geometric numbering scheme.
const unsigned char ACD_MapGtoE [256]


Detailed Description

Defines the interface to the mapping arrays that translate between ACD electronics channel numbering and ACD geometric channel numbering.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: ACD_map.h,v 1.1 2006/02/07 18:26:47 russell Exp $

Function Documentation

static __inline unsigned char ACD__mapEdx ( int  board,
int  channel 
) [static]

Returns the electronics index of an ACD channel by its FREE board (or cable) number and its FREE board channel number.

Parameters:
board The FREE board/cable number
channel The FREE board channel number
This defines the electronics index for the 18 channels or each of the 12 FREE boards. The electronics index actually covers the range 0-255 in order to match the space covered by the geometric index. The electronics index can be broken into three distinct pieces

  1. Assigned, electronics channels that service a tile
  2. Not Assigned, electronics channels that do not service a tile
  3. Non Existent, these are values >= 192 that do map to an electronics channel They exist merely for convenience so that one can conveniently map all geometric channels into electronics space and back again.

The value returned by this function can be used to index the ACD array used to map a electronics index to a geometric index, ACD_MapEtoG.

static __inline unsigned char ACD__mapEtoG ( int  board,
int  channel 
) [static]

Remaps an ACD electronics channel, defined by its FREE board (or cable) number and its FREE board channel number to its corresponding geometic (or GEM) channel number.

Returns:
The equivalanet geometric (or GEM) channel number.
Parameters:
board The FREE board/cable number
channel The FREE board channel number

References ACD_MapEtoG.

Referenced by ACD_tileNameE().

static __inline unsigned char ACD__mapGdx ( int  list,
int  channel 
) [static]

Returns the geometric or GEM index for the tile specified by its GEM list identifier and channel number within the list.

Parameters:
list The list identifier, (0-3)
  • XZ plane = list 0,
  • YZ plane = list 1,
  • XY plane = list 2
  • RBN ribbons and not assigned channels = list 3
channel The channel within the list (0-31). This is in a little endian sense, where the least significant bit is channel 0.
The value returned by this function can be used to index the ACD array used to map a geometric index to a electronics index, ACD_MapGtoE.

static __inline unsigned char ACD__mapGtoE ( int  list,
int  channel 
) [static]

Remaps an ACD geometric (or GEM) tile, specified by its list id (XZ , YZ, XY, RGN) and channel number, into its equivalent electronics channel index/number defined by its FREE board (or cable) number and its FREE board channel number. See ACD__mapEdx for the definition of electronics index.

Returns:
The equivalent electronics channel number
Parameters:
list The list identifier, (0-3)
  • XZ plane = list 0,
  • YZ plane = list 1,
  • XY plane = list 2
  • RBN ribbons and not assigned channels = list 3
channel The channel within the list (0-31). This is in a little endian sense, where the least significant bit is channel 0.


Variable Documentation

const unsigned char ACD_MapEtoG[256]

Maps an ACD electronics channel, defined by its cable/board number and its free board channel number to the geometric numbering scheme.

Maps a geometric tile number to its corresponding ACD electronics channel, where an electronics channel is defined by its cable/board number and its free board channel number.

Referenced by ACD__mapEtoG().


Generated on Thu Sep 27 13:51:12 2012 by  doxygen 1.5.8