|
TPCCLIB
|
Decay correction for TAC data. More...
#include "tpcclibConfig.h"#include "tpcift.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcisotope.h"#include "tpctac.h"Go to the source code of this file.
Functions | |
| int | tacGetIsotope (TAC *tac) |
| void | tacSetIsotope (TAC *tac, int isotope) |
| int | tacDecayCorrection (TAC *tac, int isotope, int mode, TPCSTATUS *status) |
Correct TAC data for physical decay, or remove the decay correction. Sample weights, if available, are modified, too.
| tac | Pointer to TAC structure; status of decay correction in TAC is not verified, but set in this function. TAC must contain valid sample time unit. |
| isotope | Isotope code. |
| mode | 0=Remove decay correction; 1=Correct for decay. |
| status | Pointer to status data; enter NULL if not needed. |
Definition at line 59 of file tacdc.c.
Referenced by tacSetWeights().
| int tacGetIsotope | ( | TAC * | tac | ) |
Read isotope code from TAC header.
| tac | Pointer to source TAC structure. |
Definition at line 25 of file tacdc.c.
Referenced by imgFromSIF(), tacReadModelingData(), tacReadReference(), and tacSetWeights().
| void tacSetIsotope | ( | TAC * | tac, |
| int | isotope ) |
Write isotope code into TAC header, overwriting any previous field.
| tac | Pointer to target TAC structure. |
| isotope | Isotope code. |
Definition at line 41 of file tacdc.c.
Referenced by imgToSIF(), tacRead4DM(), tacReadModelingData(), tacReadReference(), and tacSetWeights().