GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GRBP / V1-0-4 > grbpsiu / rhel6-64
#include <wrap.h>
#include <GRBP_photon.h>
Classes | |
struct | _GRBP_photonList |
Defines a circular list of photons. More... | |
Defines | |
#define | report_photon_new(_pointer, _lid, _energy, _time, _dx, _dy, _dz) |
Typedefs | |
typedef struct _GRBP_DB_photonList | GRBP_DB_photonList |
typedef struct _GRBP_photonList | GRBP_photonList |
Functions | |
int | GRBP_photonListSizeof (int count) |
Returns the size, in bytes, of the memory needed to hold the variable sized portion of a GRBP_photonList. | |
unsigned char * | GRBP_photonListConstruct (GRBP_photonList *photonList, const GRBP_DB_photonList *cfg, unsigned char *ptr) |
Constructs a photon list with count photons. | |
static __inline const GRBP_photon * | GRBP__photonListAdd (GRBP_photonList *photonList, unsigned int lid, double time, double energy, double dx, double dy, double dz) |
Allocates space for and adds a photon with the specified parameters to the photon list. | |
void | GRBP_photonListReset (GRBP_photonList *photonList) |
Resets the specified photon list to the empty state. |
CVS $Id: GRBP_photonList.h,v 1.3 2011/03/30 22:11:51 russell Exp $
static __inline const GRBP_photon * GRBP__photonListAdd | ( | GRBP_photonList * | photonList, | |
unsigned int | lid, | |||
double | time, | |||
double | energy, | |||
double | dx, | |||
double | dy, | |||
double | dz | |||
) | [static] |
Allocates space for and adds a photon with the specified parameters to the photon list.
photonList | The list of photons to add the new photon to | |
lid | The photon's local index. This is the count of photons received | |
time | The time associated with the photon | |
energy | The energy, in Mev, of the photon | |
dx | The x direction cosine | |
dy | The y direction cosine | |
dz | The y direction cosine |
References _GRBP_photon::dx, _GRBP_photon::dy, _GRBP_photon::dz, _GRBP_photon::energy, _GRBP_photon::lid, _GRBP_photon::nxt, _GRBP_photonList::pbeg, _GRBP_photonList::pcur, _GRBP_photonList::photons, and _GRBP_photon::time.
Referenced by GRBP_cacheAdd().
unsigned char * GRBP_photonListConstruct | ( | GRBP_photonList * | photonList, | |
const GRBP_DB_photonList * | cfg, | |||
unsigned char * | ptr | |||
) |
Constructs a photon list with count photons.
photonList | The target photon list to construct | |
cfg | The photon list configuration | |
ptr | The current memory pointer. Memory for the storage of the photons will be carved from here. Note that it is assumed the user has called GRBP_photonListSizeof to properly size and then allocate enough memory |
References GRBP_photonListReset(), GRBP_photonListSizeof(), _GRBP_photonList::max, _GRBP_photonList::photon_end, and _GRBP_photonList::photons.
Referenced by GRBP_cacheConstruct().
void GRBP_photonListReset | ( | GRBP_photonList * | photonList | ) |
Resets the specified photon list to the empty state.
photonList | The photon list to reset |
References _GRBP_photon::dx, _GRBP_photon::dy, _GRBP_photon::dz, _GRBP_photon::energy, _GRBP_photon::lid, _GRBP_photonList::max, _GRBP_photon::nxt, _GRBP_photonList::pbeg, _GRBP_photonList::pcur, and _GRBP_photonList::photons.
Referenced by GRBP_cacheReset(), and GRBP_photonListConstruct().
int GRBP_photonListSizeof | ( | int | count | ) |
Returns the size, in bytes, of the memory needed to hold the variable sized portion of a GRBP_photonList.
count | The number of photons this list will support |
Referenced by GRBP_cacheSizeof(), and GRBP_photonListConstruct().