GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRBP / V1-0-0
Constituent: grbpsiu     Tag: mv2304
#include "GRBP_cache.h"
#include "GRBP_photon.h"
#include "GRBP_DB/GRBP_DB_cache.h"
#include "round.h"
#include <math.h>
Include dependency graph for GRBP_cache.c:
Defines | |
#define | report_prms(_costwosigdist) |
Functions | |
static __inline void | clusterPrmsPrepare (GRBP_clusterPrms *prms, const GRBP_DB_cluster *cfg) |
Fills the prms with the derived constants used to add a photon to the candidate list. | |
int | GRBP_cacheSizeof (const GRBP_DB_cache *cfg) |
Determines the sizeof of a photon cache specified by cfg. | |
unsigned char * | GRBP_cacheConstruct (GRBP_cache *cache, const GRBP_DB_cache *cfg, unsigned char *ptr) |
Constructs the input photon cache. | |
void | GRBP_cacheReset (GRBP_cache *cache) |
Resets the photon cache. This routine is generally called after a GRB has been detected, clearing the cache and thus making it ready for a new round of detection. | |
void | GRBP_cacheAdd (GRBP_cache *cache, unsigned int lid, double time, double energy, double dx, double dy, double dz) |
Adds the photon to the cache and updates all the data structures associated with adding this new photon and, potentially, retiring old photons. |
CVS $Id: GRBP_cache.c,v 1.2 2007/08/02 17:24:59 russell Exp $
This is mainly a set of convenience routines, packaging all the calls needed to maintain the input set of photons. There are two different data structures that are involved in with the input photons
The criteria to become a neighbor of a parent photon is captured by the GRBP_clusterPrms data structure. It is write-once structure that contains the various cuts. In this way, it acts as the gate-keeper between the raw photons maintained by GRBP_photonList and the clusters, maintained by GRBP_clusterList.
|
Fills the prms with the derived constants used to add a photon to the candidate list.
|
|
Adds the photon to the cache and updates all the data structures associated with adding this new photon and, potentially, retiring old photons.
|
|
Constructs the input photon cache.
|
|
Resets the photon cache. This routine is generally called after a GRB has been detected, clearing the cache and thus making it ready for a new round of detection.
|
|
Determines the sizeof of a photon cache specified by cfg.
|