TPCCLIB
Loading...
Searching...
No Matches
tpcisotope.h
Go to the documentation of this file.
1
15#ifndef _TPCISOTOPE_H_
16#define _TPCISOTOPE_H_
17/*****************************************************************************/
18
19/*****************************************************************************/
20#include "tpcclibConfig.h"
21/*****************************************************************************/
22#include <stdio.h>
23#include <stdlib.h>
24#include <string.h>
25#include <strings.h>
26#include <ctype.h>
27#include <math.h>
28/*****************************************************************************/
29#include "tpcextensions.h"
30/*****************************************************************************/
31/* Max atomic number for elements */
32#ifndef MAX_ATOMIC_NUMBER
33#define MAX_ATOMIC_NUMBER 118
34#endif
35/* Define ln(2) if it is not defined */
36#ifndef M_LN2
37#define M_LN2 0.69314718055994530942
38#endif
39/* Define max isotope code length */
40#ifndef MAX_ISOTOPE_LEN
41#define MAX_ISOTOPE_LEN 16
42#endif
43/*****************************************************************************/
44
45/*****************************************************************************/
72/*****************************************************************************/
73
74/*****************************************************************************/
85/*****************************************************************************/
86
87/*****************************************************************************/
88/* elements */
89extern char *elementName(unsigned short int z);
90extern char *elementSymbol(unsigned short int z);
91extern unsigned short int elementIdentify(const char *str);
92/*****************************************************************************/
93
94/*****************************************************************************/
95/* isotope */
96extern double isotopeHalflife(int isotope);
97extern double isotopeBranching(int isotope);
98extern char *isotopeName(int isotope);
99extern int isotopeIdentifyHalflife(double halflife);
100extern int isotopeIdentify(const char *isotope);
101/*****************************************************************************/
102
103/*****************************************************************************/
104/* decay */
105extern char *decayDescr(decaycorrection d);
106extern double lambdaFromHalflife(double halflife);
107extern double lambdaFromIsotope(int isotope);
108extern double decayCorrectionFactorFromLambda(double lambda, double starttime, double duration);
109extern double decayCorrectionFactorFromIsotope(int isotope, double starttime, double duration);
110/*****************************************************************************/
111
112/*****************************************************************************/
113/* ranoise */
114extern double noiseSD4Frame(double y, double t1, double dt, int isotope, double a);
115/*****************************************************************************/
116
117/*****************************************************************************/
118#endif /* TPCISOTOPE */
Header file for library libtpcextensions.
double isotopeBranching(int isotope)
Definition isotope.c:81
char * decayDescr(decaycorrection d)
Definition decay.c:32
double isotopeHalflife(int isotope)
Definition isotope.c:62
int isotopeIdentifyHalflife(double halflife)
Definition isotope.c:121
double lambdaFromHalflife(double halflife)
Definition decay.c:47
char * isotopeName(int isotope)
Definition isotope.c:101
double decayCorrectionFactorFromIsotope(int isotope, double starttime, double duration)
Definition decay.c:107
double lambdaFromIsotope(int isotope)
Definition decay.c:63
decaycorrection
Definition tpcisotope.h:78
@ DECAY_UNKNOWN
Not known; usually assumed that data is corrected.
Definition tpcisotope.h:79
@ DECAY_CORRECTED_ADMIN
Data is corrected for physical decay to radioligand administration time.
Definition tpcisotope.h:83
@ DECAY_NOTCORRECTED
Data is not corrected for physical decay.
Definition tpcisotope.h:80
@ DECAY_CORRECTED
Data is corrected for physical decay.
Definition tpcisotope.h:81
@ DECAY_CORRECTED_START
Data is corrected for physical decay to scan start time.
Definition tpcisotope.h:82
char * elementSymbol(unsigned short int z)
Definition elements.c:284
double noiseSD4Frame(double y, double t1, double dt, int isotope, double a)
Definition ranoise.c:26
int isotopeIdentify(const char *isotope)
Definition isotope.c:145
double decayCorrectionFactorFromLambda(double lambda, double starttime, double duration)
Definition decay.c:79
isotope
Definition tpcisotope.h:50
@ ISOTOPE_BR_75
Br-75.
Definition tpcisotope.h:52
@ ISOTOPE_RB_82
Rb-82.
Definition tpcisotope.h:60
@ ISOTOPE_GA_68
Ga-68.
Definition tpcisotope.h:57
@ ISOTOPE_CU_64
Cu-64.
Definition tpcisotope.h:55
@ ISOTOPE_CU_62
Cu-62.
Definition tpcisotope.h:54
@ ISOTOPE_F_18
F-18.
Definition tpcisotope.h:66
@ ISOTOPE_C_11
C-11.
Definition tpcisotope.h:65
@ ISOTOPE_N_13
N-13.
Definition tpcisotope.h:68
@ ISOTOPE_ZR_89
Zr-89.
Definition tpcisotope.h:64
@ ISOTOPE_I_124
I-124.
Definition tpcisotope.h:67
@ ISOTOPE_O_15
O-15.
Definition tpcisotope.h:69
@ ISOTOPE_O_14
O-14.
Definition tpcisotope.h:70
@ ISOTOPE_TB_152
Tb-152.
Definition tpcisotope.h:62
@ ISOTOPE_BR_76
Br-76.
Definition tpcisotope.h:53
@ ISOTOPE_NA_22
Na-22.
Definition tpcisotope.h:59
@ ISOTOPE_ZN_62
Zn-62.
Definition tpcisotope.h:63
@ ISOTOPE_UNKNOWN
Unknown.
Definition tpcisotope.h:51
@ ISOTOPE_GE_68
Ge-68.
Definition tpcisotope.h:58
@ ISOTOPE_FE_52
Fe-52.
Definition tpcisotope.h:56
@ ISOTOPE_SC_44
Sc-44.
Definition tpcisotope.h:61
char * elementName(unsigned short int z)
Definition elements.c:270
unsigned short int elementIdentify(const char *str)
Definition elements.c:298