|
TPCCLIB
|
Header file for libtpcabss. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include "tpcextensions.h"#include "tpcisotope.h"#include "tpcift.h"#include "tpccsv.h"#include "tpctac.h"Go to the source code of this file.
Enumerations | |
| enum | ABSS_DEVICE { ABSS_UNKNOWN , ABSS_SCANDITRONICS , ABSS_GEMS , ABSS_ALLOGG_OLD , ABSS_ALLOGG } |
Functions | |
| ABSS_DEVICE | abssIdFromFName (const char *fname) |
| int | abssWrite (TAC *d, FILE *fp, TPCSTATUS *status) |
| int | abssAboveZero (TAC *abss, int *n1, int *n2, int *n) |
| int | abssHigherCounts (TAC *abss, int *n1, int *n2) |
| int | abssCalculateRatio (TAC *abss, double *ratio, int *n) |
| int | abssFixChannel (TAC *abss, int channel, double ratio) |
| int | abssCalculateCps (TAC *abss) |
| int | abssChannelMean (TAC *abss, double *mean) |
Header file for libtpcabss.
Defines for ABSS library.
Definition in file tpcabss.h.
| enum ABSS_DEVICE |
Individual ID number for automatic blood sampling system (ABSS), so that appropriate calibration, dead-time and dispersion correction coefficients can be applied.
Definition at line 30 of file tpcabss.h.
| int abssAboveZero | ( | TAC * | abss, |
| int * | n1, | ||
| int * | n2, | ||
| int * | n ) |
Calculate the number of ABSS samples with positive counts.
| abss | Pointer to TAC struct containing raw ABSS data. |
| n1 | Number of positive samples in channel 1 is written in here; enter NULL if not needed. |
| n2 | Number of positive samples in channel 2 is written in here; enter NULL if not needed. |
| n | Number of samples with positive counts in either of channels; enter NULL if not needed. |
Definition at line 23 of file abss.c.
| int abssCalculateCps | ( | TAC * | abss | ) |
Divide the ABSS coincident counts by frame duration.
| abss | Pointer to TAC struct containing raw ABSS data. |
Definition at line 244 of file abss.c.
| int abssCalculateRatio | ( | TAC * | abss, |
| double * | ratio, | ||
| int * | n ) |
Calculate the number of ABSS samples with positive counts.
| abss | Pointer to TAC struct containing raw ABSS data. |
| ratio | Channel1-to-channel2 is written in here. |
| n | Number of samples which could be used in calculation of the ratio; enter NULL if not needed. |
Definition at line 134 of file abss.c.
| int abssChannelMean | ( | TAC * | abss, |
| double * | mean ) |
Compute the mean of the two channels in Scanditronics or GEMS ABSS data stored in TAC struct.
If data is collected with Allogg, then column two is copied to 'mean' as such. Data is not divided by frame duration in this function.
| abss | Pointer to TAC struct containing raw ABSS data. |
| mean | Pointer to double array, at least of length abss->sampleNr. |
Definition at line 292 of file abss.c.
| int abssFixChannel | ( | TAC * | abss, |
| int | channel, | ||
| double | ratio ) |
Calculate the number of ABSS samples with positive counts.
| abss | Pointer to TAC struct containing raw ABSS data. |
| channel | Channel to fix; either 1 or 2. |
| ratio | Correct channel1-to-channel2 ratio. |
Definition at line 192 of file abss.c.
| int abssHigherCounts | ( | TAC * | abss, |
| int * | n1, | ||
| int * | n2 ) |
Calculate the number of ABSS samples which are positive and higher than the counts from the other channel.
| abss | Pointer to TAC struct containing raw ABSS data. |
| n1 | Number of samples in channel 1 that are positive and higher than counts from channel 2. |
| n2 | Number of samples in channel 2 that are positive and higher than counts from channel 1. |
Definition at line 82 of file abss.c.
| ABSS_DEVICE abssIdFromFName | ( | const char * | fname | ) |
Identify ABSS device based on filename.
| fname | ABSS data filename |
Definition at line 30 of file abssio.c.
Write ABSS data into file opened for writing.
| d | Pointer to ABSS data, stored in TAC struct, contents of which are to be written |
| fp | Output file pointer |
| status | Pointer to status data; enter NULL if not needed |
Definition at line 53 of file abssio.c.