|
void * | _fill_maps () |
|
int | offset (int dz, int da, int ds=0) |
|
|
Custom hash function for reaction name to reaction ids.
This functions will not return a value less than 1000, effectively reserving space for the MT numbers.
|
unsigned int | hash (std::string s) |
|
unsigned int | hash (const char *s) |
|
|
Returns the canonical name of a reaction channel.
- Parameters
-
n | Integer input of possible reaction, nominally an id or MT number. |
s | String input of possible reaction, often a reaction or alternate name. |
from_nuc | Initial target nuclide prior to reaction. When from_nuc is an integer it must be in id form. |
to_nuc | Target nuclide after reaction occurs. When to_nuc is an integer it must be in id form. |
z | Flag for incident particle type. Particle flags are 'n', 'p', 'd', 't', 'He3', 'a', 'gamma', and 'decay'. |
|
std::string | name (int n) |
|
std::string | name (unsigned int n) |
|
std::string | name (char *s) |
|
std::string | name (std::string s) |
|
std::string | name (int from_nuc, int to_nuc, std::string z="n") |
|
std::string | name (int from_nuc, std::string to_nuc, std::string z="n") |
|
std::string | name (std::string from_nuc, int to_nuc, std::string z="n") |
|
std::string | name (std::string from_nuc, std::string to_nuc, std::string z="n") |
|
|
Returns the recation id of a reaction channel.
This id has been precomputed from the hash of the name. - Parameters
-
x | Input reaction specification, may be a reaction name, alternate name, an id, or an MT number. |
from_nuc | Initial target nuclide prior to reaction. When from_nuc is an integer it must be in id form. |
to_nuc | Target nuclide after reaction occurs. When to_nuc is an integer it must be in id form. |
z | Flag for incident particle type. Particle flags are 'n', 'p', 'd', 't', 'He3', 'a', 'gamma', and 'decay'. |
|
unsigned int | id (int x) |
|
unsigned int | id (unsigned int x) |
|
unsigned int | id (const char *x) |
|
unsigned int | id (std::string x) |
|
unsigned int | id (int from_nuc, int to_nuc, std::string z="n") |
|
unsigned int | id (int from_nuc, std::string to_nuc, std::string z="n") |
|
unsigned int | id (std::string from_nuc, int to_nuc, std::string z="n") |
|
unsigned int | id (std::string from_nuc, std::string to_nuc, std::string z="n") |
|
|
Returns the MT number of a reaction channel, if available.
- Parameters
-
x | Input reaction specification, may be a reaction name, alternate name, an id, or an MT number. |
from_nuc | Initial target nuclide prior to reaction. When from_nuc is an integer it must be in id form. |
to_nuc | Target nuclide after reaction occurs. When to_nuc is an integer it must be in id form. |
z | Flag for incident particle type. Particle flags are 'n', 'p', 'd', 't', 'He3', 'a', 'gamma', and 'decay'. |
|
unsigned int | mt (int x) |
|
unsigned int | mt (unsigned int x) |
|
unsigned int | mt (char *x) |
|
unsigned int | mt (std::string x) |
|
unsigned int | mt (int from_nuc, int to_nuc, std::string z="n") |
|
unsigned int | mt (int from_nuc, std::string to_nuc, std::string z="n") |
|
unsigned int | mt (std::string from_nuc, int to_nuc, std::string z="n") |
|
unsigned int | mt (std::string from_nuc, std::string to_nuc, std::string z="n") |
|
|
Returns a short description of a reaction channel.
- Parameters
-
x | Input reaction specification, may be a reaction name, alternate name, an id, or an MT number. |
from_nuc | Initial target nuclide prior to reaction. When from_nuc is an integer it must be in id form. |
to_nuc | Target nuclide after reaction occurs. When to_nuc is an integer it must be in id form. |
z | Flag for incident particle type. Particle flags are 'n', 'p', 'd', 't', 'He3', 'a', 'gamma', and 'decay'. |
|
std::string | label (int x) |
|
std::string | label (unsigned int x) |
|
std::string | label (char *x) |
|
std::string | label (std::string x) |
|
std::string | label (int from_nuc, int to_nuc, std::string z="n") |
|
std::string | label (int from_nuc, std::string to_nuc, std::string z="n") |
|
std::string | label (std::string from_nuc, int to_nuc, std::string z="n") |
|
std::string | label (std::string from_nuc, std::string to_nuc, std::string z="n") |
|
|
Returns a short description of a reaction channel.
- Parameters
-
x | Input reaction specification, may be a reaction name, alternate name, an id, or an MT number. |
from_nuc | Initial target nuclide prior to reaction. When from_nuc is an integer it must be in id form. |
to_nuc | Target nuclide after reaction occurs. When to_nuc is an integer it must be in id form. |
z | Flag for incident particle type. Particle flags are 'n', 'p', 'd', 't', 'He3', 'a', 'gamma', and 'decay'. |
|
std::string | doc (int x) |
|
std::string | doc (unsigned int x) |
|
std::string | doc (char *x) |
|
std::string | doc (std::string x) |
|
std::string | doc (int from_nuc, int to_nuc, std::string z="n") |
|
std::string | doc (int from_nuc, std::string to_nuc, std::string z="n") |
|
std::string | doc (std::string from_nuc, int to_nuc, std::string z="n") |
|
std::string | doc (std::string from_nuc, std::string to_nuc, std::string z="n") |
|
|
Returns the child nuclide comming from a parent for a reaction channel.
- Parameters
-
nuc | Nuclide after reaction occurs. When nuc is an integer it must be in id form. |
rx | Input reaction specification, may be a reaction name, alternate name, an id, or an MT number. |
z | Flag for incident particle type. Particle flags are 'n', 'p', 'd', 't', 'He3', 'a', 'gamma', and 'decay'. |
|
int | parent (int nuc, unsigned int rx, std::string z="n") |
|
int | parent (int nuc, std::string rx, std::string z="n") |
|
int | parent (std::string nuc, unsigned int rx, std::string z="n") |
|
int | parent (std::string nuc, std::string rx, std::string z="n") |
|
|
Returns the parent nuclide comming for a child and a given reaction channel.
- Parameters
-
nuc | Initial target nuclide prior to reaction. When nuc is an integer it must be in id form. |
rx | Input reaction specification, may be a reaction name, alternate name, an id, or an MT number. |
z | Flag for incident particle type. Particle flags are 'n', 'p', 'd', 't', 'He3', 'a', 'gamma', and 'decay'. |
|
int | child (int nuc, unsigned int rx, std::string z="n") |
|
int | child (int nuc, std::string rx, std::string z="n") |
|
int | child (std::string nuc, unsigned int rx, std::string z="n") |
|
int | child (std::string nuc, std::string rx, std::string z="n") |
|
Converts between naming conventions for reaction channels.