GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRBP / V0-4-2

Constituent: grbpsiu     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

GRBP_gamma.h File Reference

Definition of the information for a photon that graduated from the raw photon input stage to the GRB candidate. More...

#include "GRBP_photon.h"

Include dependency graph for GRBP_gamma.h:

This graph shows which files directly or indirectly include this file:


Data Structures

struct  _GRBP_gamma
 Encapsulates the primary information stored for each GRB gamma. More...
struct  _GRBP_gammaAux
 Encapsulates the auxilliary information stored for each GRB gamma. More...

Typedefs

typedef _GRBP_gamma GRBP_gamma
typedef _GRBP_gammaAux GRBP_gammaAux
 Typedef struct _GRBP_gammaAux.

Functions

static __inline GRBP_gammaAuxGRBP__gammaAuxLocate (const GRBP_gamma *gamma_head, const GRBP_gamma *gamma, GRBP_gammaAux *aux_head)
 Given a GRBP_gamma element, returns a pointer to the corresponding GRBP_gammaAux structure.

Detailed Description

Definition of the information for a photon that graduated from the raw photon input stage to the GRB candidate.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: GRBP_gamma.h,v 1.2 2007/08/02 17:24:59 russell Exp $

Function Documentation

static __inline GRBP_gammaAux * GRBP__gammaAuxLocate const GRBP_gamma gamma_head,
const GRBP_gamma gamma,
GRBP_gammaAux aux_head
[static]
 

Given a GRBP_gamma element, returns a pointer to the corresponding GRBP_gammaAux structure.

Returns:
A pointer to the corresponding GRBP_gammaAux structure.
Parameters:
gamma_head The head of the array of gammas
gamma The target gamma structure
aux_head The head of the array of gamma auxilliary structures
This routine is an unabashed concession to efficiency. In order to minimize memory references the GRBP_gamma structure has been stripped to its bare essentially. The other information is stored in the GRBP_gammaAux structure. Given a pointer to a GRBP_gamma structure, this function allows one to locate the gammas corresponding auxilliary information structure. It is ugly, but it doing this is worth almost a factor of 2 in performance of the GRBP locate routine.


Generated on Mon Oct 29 03:03:58 2007 by  doxygen 1.4.4