GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GRBP / dev > grbpsiu / rad750
#include <GRBP_gammaList.h>
#include <GRBP_cache.h>
#include <GRBP_gamma.h>
#include <GRBP_photon.h>
#include <GRBP_location.h>
#include <GRBP_probCalculate.h>
#include <wrap.h>
#include <round.h>
#include <dprintf.h>
#include <GRBP_DB/GRBP_DB_gammaList.h>
#include <PBI/FFS.ih>
#include <math.h>
#include <string.h>
Functions | |
int | GRBP_gammaListSizeof (const GRBP_DB_gammaList *cfg) |
Computes the number of bytes needed for a gamma list of the specified configuration. | |
unsigned char * | GRBP_gammaListConstruct (GRBP_gammaList *list, const GRBP_DB_gammaList *cfg, unsigned char *ptr) |
Constructs the gamma list. | |
int | GRBP_gammaListAdd (GRBP_gammaList *list, const GRBP_cluster *clusters, int beg, int max, const unsigned int *gamma_bl, int ngamma_bl) |
Fills the list of gammas used to localization using the parent gamma from the specified list of clusters. | |
int | GRBP_gammaListSeed (GRBP_gammaList *list, GRBP_probabilityLogs *plog, float dx0, float dy0, float dz0, float distance_cut, const GRBP_probabilityPrms *prob, const GRBP_photon *photon, int cnt) |
Populates a gamma list with all the photons in the specified range that are within the distance_cut of the the GRB location. | |
void | GRBP_gammaListReset (GRBP_gammaList *list) |
Resets the gamma list to an empty list. |
CVS $Id: GRBP_gammaList.c,v 1.5 2011/03/30 22:11:51 russell Exp $
int GRBP_gammaListAdd | ( | GRBP_gammaList * | list, | |
const GRBP_cluster * | clusters, | |||
int | beg, | |||
int | max, | |||
const unsigned int * | gamma_bl, | |||
int | ngamma_bl | |||
) |
Fills the list of gammas used to localization using the parent gamma from the specified list of clusters.
list | The target list of gammas to be used in the localization process | |
clusters | The database of clusters | |
beg | The start index of the gamma for this window. | |
max | Maximum range of circular list of clusters | |
gamma_bl | The bit list of gammas to be added | |
ngamma_bl | The number of words in the bit list. |
References _GRBP_gammaList::beg, _GRBP_gammaList::cnt, _GRBP_gamma::dx, _GRBP_gamma::dy, _GRBP_gamma::dz, _GRBP_gammaList::end, _GRBP_gammaAux::energy, _GRBP_gammaList::gammas, _GRBP_gammaList::gammas_aux, _GRBP_gammaList::max, _GRBP_gammaAux::time, and wrap_hi().
Referenced by GRBP_windowTier1LatUpdate().
unsigned char* GRBP_gammaListConstruct | ( | GRBP_gammaList * | list, | |
const GRBP_DB_gammaList * | cfg, | |||
unsigned char * | ptr | |||
) |
Constructs the gamma list.
list | The list to construct | |
cfg | The configuration of the gamma list | |
ptr | The memory to carve the list from |
References _GRBP_gammaList::gammas, _GRBP_gammaList::gammas_aux, GRBP_gammaListReset(), GRBP_gammaListSizeof(), and _GRBP_gammaList::max.
Referenced by GRBP_grbConstruct(), and windowTier2Construct().
void GRBP_gammaListReset | ( | GRBP_gammaList * | list | ) |
Resets the gamma list to an empty list.
list | The gamma list to reset |
References _GRBP_gammaList::beg, _GRBP_gammaList::cnt, and _GRBP_gammaList::end.
Referenced by GRBP_gammaListConstruct(), GRBP_grbReset(), and windowTier2Reset().
int GRBP_gammaListSeed | ( | GRBP_gammaList * | list, | |
GRBP_probabilityLogs * | plog, | |||
float | dx0, | |||
float | dy0, | |||
float | dz0, | |||
float | distance_cut, | |||
const GRBP_probabilityPrms * | prob, | |||
const GRBP_photon * | photon, | |||
int | cnt | |||
) |
Populates a gamma list with all the photons in the specified range that are within the distance_cut of the the GRB location.
list | The list to populate. | |
plog | Filled in with logs of the spatial and temporal probabilities | |
dx0 | The normalized X direction cosine of the seed location | |
dy0 | The normalized Y direction cosine of the seed location | |
dz0 | The normalized Z direction cosine of the seed location | |
distance_cut | The distance cut to use. Only photons with 1 - cos (theta) are admitted to the list, where cos (theta) is the dot product of the photon's direction with the GRB location. | |
prob | The parameters used in determining the spatial and temperal probabilities. | |
photon | The first photon in the linked list to use | |
cnt | The number of photons to use |
References _GRBP_gammaList::beg, _GRBP_gammaList::cnt, _GRBP_gamma::dx, _GRBP_gamma::dy, _GRBP_gamma::dz, _GRBP_gammaList::end, _GRBP_gammaAux::energy, _GRBP_gammaList::gammas, _GRBP_gammaList::gammas_aux, GRBP__gammaAuxLocate(), GRBP_probSpatialCalculate(), GRBP_probTemporalCalculate(), _GRBP_gamma::nxt, _GRBP_photon::nxt, _GRBP_probabilityPrms::psc, _GRBP_probabilityPrms::ptc, _GRBP_probabilityLogs::spatial, _GRBP_probabilityLogs::temporal, and _GRBP_gammaAux::time.
Referenced by windowTier2Seed().
int GRBP_gammaListSizeof | ( | const GRBP_DB_gammaList * | cfg | ) |
Computes the number of bytes needed for a gamma list of the specified configuration.
cfg | The configuration of the gamma list |
Referenced by GRBP_gammaListConstruct(), GRBP_grbSizeof(), and windowTier2Sizeof().