TPCCLIB
Loading...
Searching...
No Matches
branch.c File Reference

Isotope branching ratio correction. More...

#include "libtpcmisc.h"

Go to the source code of this file.

Functions

float branchingFraction (int isotope)

Detailed Description

Isotope branching ratio correction.

Author
Vesa Oikonen

Definition in file branch.c.

Function Documentation

◆ branchingFraction()

float branchingFraction ( int isotope)

Branching fraction for specified isotope.

Returns
Returns the branching factor, or 0 in case branching fraction is unknown.
Parameters
isotopeIsotope code; see hlIsotopeFromHalflife()

Definition at line 14 of file branch.c.

17 {
18 float bf=0.0;
19 switch(isotope) {
20 case TPCISOT_CU_64: bf=BRANCHING_Cu64; break;
21 case TPCISOT_GA_68: bf=BRANCHING_Ga; break;
22 case TPCISOT_GE_68: bf=BRANCHING_Ge; break;
23 case TPCISOT_RB_82: bf=BRANCHING_Rb; break;
24 case TPCISOT_F_18: bf=BRANCHING_F; break;
25 case TPCISOT_C_11: bf=BRANCHING_C; break;
26 case TPCISOT_N_13: bf=BRANCHING_N; break;
27 case TPCISOT_O_15: bf=BRANCHING_O; break;
28 case TPCISOT_BR_75:
29 case TPCISOT_BR_76:
30 case TPCISOT_CU_62:
31 case TPCISOT_FE_52:
32 case TPCISOT_NA_22:
33 case TPCISOT_O_14:
34 case TPCISOT_I_124:
35 case TPCISOT_ZN_62:
36 case TPCISOT_UNKNOWN:
37 default: bf=0.0;
38 }
39 return(bf);
40}
#define BRANCHING_O
Definition libtpcmisc.h:26
#define BRANCHING_Rb
Definition libtpcmisc.h:40
#define BRANCHING_C
Definition libtpcmisc.h:28
#define BRANCHING_F
Definition libtpcmisc.h:34
#define BRANCHING_Cu64
Definition libtpcmisc.h:30
#define BRANCHING_Ge
Definition libtpcmisc.h:36
#define BRANCHING_N
Definition libtpcmisc.h:32
#define BRANCHING_Ga
Definition libtpcmisc.h:38

Referenced by hrrtMakeCalHdr(), imgBranchingCorrection(), and imgGetMicropetHeader().