GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSE / V1-5-2

Constituent: qse     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QDF_tkrRepack.c File Reference

Reformats one tower in the QDF_tkrEvt to EBF format. More...

#include "QSE/QDF_tkrRepack.h"
#include "QDF_tkr_def.h"
#include "EDS/FFS.h"
#include "EDS/EDS_endianness.h"
#include "LDT/BFP.h"
#include <string.h>
#include "qdf_tkr_repack_dbg.h"
#include "dprintf.h"

Include dependency graph for QDF_tkrRepack.c:


Functions

static __inline unsigned int repackTkrMaps (unsigned int *dst, const unsigned int *maps)
 Repacks the 4 18-bit sorted tracker maps, xLo, xHi, yLo, yHi, into the 8 9-bit tracker cable maps.
static __inline unsigned int repackTkrHits (unsigned int *dst, unsigned int pos, unsigned char *tots, const QDF_tkrTwr *twr)
 Repacks the strip hits.
static __inline unsigned int repackTkrTots (unsigned int *dst, unsigned int pos, const unsigned char *tots, int ntots)
 Repacks the strip hits.
static __inline unsigned int remapTkrMap (const unsigned int map)
 Remaps one 18-bit map into two 9-bit even and odd maps.
static __inline unsigned int expandClusters (unsigned int *dst, unsigned int pos, const QDF_tkrCluster *clusters, int nclusters)
 Expands the clusters back to the complete set of strip addresses and commits these strips to the output stream.
unsigned int * QDF_tkrRepack (const QDF_tkrEvt *tkr, int tem, unsigned int *dst, const EBF_ctb *end)
 Repacks the TKR event for the specified TEM into its EBF format.

Detailed Description

Reformats one tower in the QDF_tkrEvt to EBF format.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: QDF_tkrRepack.c,v 1.1 2006/11/10 22:35:54 russell Exp $

Function Documentation

static __inline unsigned int expandClusters unsigned int *  dst,
unsigned int  pos,
const QDF_tkrCluster *  clusters,
int  nclusters
[static]
 

Expands the clusters back to the complete set of strip addresses and commits these strips to the output stream.

Returns:
The next bit position to write to
Parameters:
dst The destination array
pos The current bit position to write to
clusters The list of clusters to expand
nclusters The count of clusters to expand

unsigned int * QDF_tkrRepack const QDF_tkrEvt tkr,
int  tem,
unsigned int *  dst,
const EBF_ctb *  end
 

Repacks the TKR event for the specified TEM into its EBF format.

Returns:
The next location to fill in
Parameters:
tkr The unpacked TKR event data
tem Which TEM
dst The EBF destination address
end The address just past the last legitimate address

static __inline unsigned int remapTkrMap const unsigned int  map  )  [static]
 

Remaps one 18-bit map into two 9-bit even and odd maps.

Returns:
The remap map
Parameters:
map The right justified bit map to repack. The LSB is layer 0
The repacking is into 2 9-bit quantities

  • 0, odd layers
  • 1, even layers

static __inline unsigned int repackTkrHits unsigned int *  dst,
unsigned int  pos,
unsigned char *  tots,
const QDF_tkrTwr *  twr
[static]
 

Repacks the strip hits.

Returns:
The next bit write position
Parameters:
dst The destination array
pos The next bit position to write to
tots Buffer to extract the TOTs into
twr The tower to repack

static __inline unsigned int repackTkrMaps unsigned int *  dst,
const unsigned int *  maps
[static]
 

Repacks the 4 18-bit sorted tracker maps, xLo, xHi, yLo, yHi, into the 8 9-bit tracker cable maps.

Returns:
The next bit write position (always 72)
Parameters:
dst The destination array
maps The array of 4 tracker maps

static __inline unsigned int repackTkrTots unsigned int *  dst,
unsigned int  pos,
const unsigned char *  tots,
int  ntots
[static]
 

Repacks the strip hits.

Returns:
The next bit write position
Parameters:
dst The destination array
pos The next bit position to write to
tots The buffer of TOTs to write out
ntots The number of TOTS to write out


Generated on Tue Nov 21 01:30:10 2006 by  doxygen 1.4.4