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

Constituent: grbpsiu     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

GRBP_cluster.c File Reference

GRB clustering. More...

#include "GRBP_cluster.h"
#include "GRBP_cache.h"
#include "GRBP_bitList.h"
#include <float.h>

Include dependency graph for GRBP_cluster.c:


Defines

#define report_prms(_min_idx,_max_idx,_max,_pdists,_hi_pdists, _lo_pdists,_pdts,_hi_pdts,_lo_pdts,_j,_logP_sum,_threshold)
#define report_masks(_title, _masks, _nmasks)

Functions

static __inline void masksFill (unsigned int *masks, unsigned int nrange, const GRBP_neighborList *nl, int beg, int end, int max)
 Creates a bit mask representation of the photons in the neighbor list.
int GRBP_clusterGammasFill (const GRBP_cluster *clusters, int beg, int end, int max, const unsigned short int *list, int cnt, double contrast, double threshold, unsigned int *masks, int nbits, GRBP_probabilityLogs *plog_max)
 Scans the circular list of clusters looking for clusters that are over the probability threshold. A list of photons that are members of such clusters is accumulated (in the form of a bit list) and returned in masks.

Detailed Description

GRB clustering.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: GRBP_cluster.c,v 1.3 2007/08/02 17:24:59 russell Exp $

The cluster is the object used to detect a GRB. It has almost no role in locating a GRB. It is really a pattern recognition object. Each input photon acts a the parent of a cluster. A cluster is formed around that parent photon by photons that are within a configurable angular distance from the parent. When a new photon arrives, the previous N photons are checked. When a new photon arrives, the oldest photon in the cluster is retired and replaced with the new photon. This continues until the parent photon itself is retired.

When a photon is added to the cluster, its probability of being within the specified angular distance and within the time (based on the background rate) is computed. The sum of all the spatial and temporal probabilities gives a measure of the likelihood that this photon and its neighbors are from a GRB.


Function Documentation

int GRBP_clusterGammasFill const GRBP_cluster *  clusters,
int  beg,
int  end,
int  max,
const unsigned short int *  list,
int  cnt,
double  contrast,
double  threshold,
unsigned int *  masks,
int  nbits,
GRBP_probabilityLogs plog_max
 

Scans the circular list of clusters looking for clusters that are over the probability threshold. A list of photons that are members of such clusters is accumulated (in the form of a bit list) and returned in masks.

{ printf ("*\n") ; break; }

{ printf ("**\n"); break; }

printf ("\n");

static __inline void masksFill unsigned int *  masks,
unsigned int  nrange,
const GRBP_neighborList nl,
int  beg,
int  end,
int  max
[static]
 

Creates a bit mask representation of the photons in the neighbor list.

Parameters:
masks The array bit masks to fill
nrange The number of active bits in the bit mask
nl The list of neighbors
beg The index of the first neighbor in the neighbor list
end The index of the last neighbor in the neighbor list
max The size of the neighbor list. This determines the wrap- around point.


Generated on Fri Aug 3 03:46:54 2007 by  doxygen 1.4.4