TPCCLIB
Toggle main menu visibility
Loading...
Searching...
No Matches
libtpcisotope
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
/*****************************************************************************/
50
typedef
enum
{
51
ISOTOPE_UNKNOWN
,
52
ISOTOPE_BR_75
,
53
ISOTOPE_BR_76
,
54
ISOTOPE_CU_62
,
55
ISOTOPE_CU_64
,
56
ISOTOPE_FE_52
,
57
ISOTOPE_GA_68
,
58
ISOTOPE_GE_68
,
59
ISOTOPE_NA_22
,
60
ISOTOPE_RB_82
,
61
ISOTOPE_SC_44
,
62
ISOTOPE_TB_152
,
63
ISOTOPE_ZN_62
,
64
ISOTOPE_ZR_89
,
65
ISOTOPE_C_11
,
66
ISOTOPE_F_18
,
67
ISOTOPE_I_124
,
68
ISOTOPE_N_13
,
69
ISOTOPE_O_15
,
70
ISOTOPE_O_14
71
}
isotope
;
72
/*****************************************************************************/
73
74
/*****************************************************************************/
78
typedef
enum
{
79
DECAY_UNKNOWN
,
80
DECAY_NOTCORRECTED
,
81
DECAY_CORRECTED
,
82
DECAY_CORRECTED_START
,
83
DECAY_CORRECTED_ADMIN
84
}
decaycorrection
;
85
/*****************************************************************************/
86
87
/*****************************************************************************/
88
/* elements */
89
extern
char
*
elementName
(
unsigned
short
int
z);
90
extern
char
*
elementSymbol
(
unsigned
short
int
z);
91
extern
unsigned
short
int
elementIdentify
(
const
char
*str);
92
/*****************************************************************************/
93
94
/*****************************************************************************/
95
/* isotope */
96
extern
double
isotopeHalflife
(
int
isotope
);
97
extern
double
isotopeBranching
(
int
isotope
);
98
extern
char
*
isotopeName
(
int
isotope
);
99
extern
int
isotopeIdentifyHalflife
(
double
halflife);
100
extern
int
isotopeIdentify
(
const
char
*
isotope
);
101
/*****************************************************************************/
102
103
/*****************************************************************************/
104
/* decay */
105
extern
char
*
decayDescr
(
decaycorrection
d);
106
extern
double
lambdaFromHalflife
(
double
halflife);
107
extern
double
lambdaFromIsotope
(
int
isotope
);
108
extern
double
decayCorrectionFactorFromLambda
(
double
lambda,
double
starttime,
double
duration);
109
extern
double
decayCorrectionFactorFromIsotope
(
int
isotope
,
double
starttime,
double
duration);
110
/*****************************************************************************/
111
112
/*****************************************************************************/
113
/* ranoise */
114
extern
double
noiseSD4Frame
(
double
y,
double
t1,
double
dt,
int
isotope
,
double
a);
115
/*****************************************************************************/
116
117
/*****************************************************************************/
118
#endif
/* TPCISOTOPE */
tpcextensions.h
Header file for library libtpcextensions.
isotopeBranching
double isotopeBranching(int isotope)
Definition
isotope.c:81
decayDescr
char * decayDescr(decaycorrection d)
Definition
decay.c:32
isotopeHalflife
double isotopeHalflife(int isotope)
Definition
isotope.c:62
isotopeIdentifyHalflife
int isotopeIdentifyHalflife(double halflife)
Definition
isotope.c:121
lambdaFromHalflife
double lambdaFromHalflife(double halflife)
Definition
decay.c:47
isotopeName
char * isotopeName(int isotope)
Definition
isotope.c:101
decayCorrectionFactorFromIsotope
double decayCorrectionFactorFromIsotope(int isotope, double starttime, double duration)
Definition
decay.c:107
lambdaFromIsotope
double lambdaFromIsotope(int isotope)
Definition
decay.c:63
decaycorrection
decaycorrection
Definition
tpcisotope.h:78
DECAY_UNKNOWN
@ DECAY_UNKNOWN
Not known; usually assumed that data is corrected.
Definition
tpcisotope.h:79
DECAY_CORRECTED_ADMIN
@ DECAY_CORRECTED_ADMIN
Data is corrected for physical decay to radioligand administration time.
Definition
tpcisotope.h:83
DECAY_NOTCORRECTED
@ DECAY_NOTCORRECTED
Data is not corrected for physical decay.
Definition
tpcisotope.h:80
DECAY_CORRECTED
@ DECAY_CORRECTED
Data is corrected for physical decay.
Definition
tpcisotope.h:81
DECAY_CORRECTED_START
@ DECAY_CORRECTED_START
Data is corrected for physical decay to scan start time.
Definition
tpcisotope.h:82
elementSymbol
char * elementSymbol(unsigned short int z)
Definition
elements.c:284
noiseSD4Frame
double noiseSD4Frame(double y, double t1, double dt, int isotope, double a)
Definition
ranoise.c:26
isotopeIdentify
int isotopeIdentify(const char *isotope)
Definition
isotope.c:145
decayCorrectionFactorFromLambda
double decayCorrectionFactorFromLambda(double lambda, double starttime, double duration)
Definition
decay.c:79
isotope
isotope
Definition
tpcisotope.h:50
ISOTOPE_BR_75
@ ISOTOPE_BR_75
Br-75.
Definition
tpcisotope.h:52
ISOTOPE_RB_82
@ ISOTOPE_RB_82
Rb-82.
Definition
tpcisotope.h:60
ISOTOPE_GA_68
@ ISOTOPE_GA_68
Ga-68.
Definition
tpcisotope.h:57
ISOTOPE_CU_64
@ ISOTOPE_CU_64
Cu-64.
Definition
tpcisotope.h:55
ISOTOPE_CU_62
@ ISOTOPE_CU_62
Cu-62.
Definition
tpcisotope.h:54
ISOTOPE_F_18
@ ISOTOPE_F_18
F-18.
Definition
tpcisotope.h:66
ISOTOPE_C_11
@ ISOTOPE_C_11
C-11.
Definition
tpcisotope.h:65
ISOTOPE_N_13
@ ISOTOPE_N_13
N-13.
Definition
tpcisotope.h:68
ISOTOPE_ZR_89
@ ISOTOPE_ZR_89
Zr-89.
Definition
tpcisotope.h:64
ISOTOPE_I_124
@ ISOTOPE_I_124
I-124.
Definition
tpcisotope.h:67
ISOTOPE_O_15
@ ISOTOPE_O_15
O-15.
Definition
tpcisotope.h:69
ISOTOPE_O_14
@ ISOTOPE_O_14
O-14.
Definition
tpcisotope.h:70
ISOTOPE_TB_152
@ ISOTOPE_TB_152
Tb-152.
Definition
tpcisotope.h:62
ISOTOPE_BR_76
@ ISOTOPE_BR_76
Br-76.
Definition
tpcisotope.h:53
ISOTOPE_NA_22
@ ISOTOPE_NA_22
Na-22.
Definition
tpcisotope.h:59
ISOTOPE_ZN_62
@ ISOTOPE_ZN_62
Zn-62.
Definition
tpcisotope.h:63
ISOTOPE_UNKNOWN
@ ISOTOPE_UNKNOWN
Unknown.
Definition
tpcisotope.h:51
ISOTOPE_GE_68
@ ISOTOPE_GE_68
Ge-68.
Definition
tpcisotope.h:58
ISOTOPE_FE_52
@ ISOTOPE_FE_52
Fe-52.
Definition
tpcisotope.h:56
ISOTOPE_SC_44
@ ISOTOPE_SC_44
Sc-44.
Definition
tpcisotope.h:61
elementName
char * elementName(unsigned short int z)
Definition
elements.c:270
elementIdentify
unsigned short int elementIdentify(const char *str)
Definition
elements.c:298
Generated on
for TPCCLIB by
1.17.0