![]() |
Particles and Nuclei Sub-Library: Version 0.910
|
Full distribution including all nuclei from a discrete mass formula. More...
#include <nuclear_dist.h>
For example, to create a collection of all nuclei from the most recent (2003) Atomic Mass Evaluation, and then output all the nuclei in the collection
ame_mass ame; full_dist fd(&ame); for(nuclear_dist::iterator ndi=fd.begin();ndi!=fd.end();ndi++) { cout << ndi->Z << " " << ndi->A << " " << ndi->m << endl; }
Definition at line 248 of file nuclear_dist.h.
Public Member Functions | |
full_dist (nuclear_mass &nm, int maxA=400, bool include_neutron=false) | |
Create a distribution including all nuclei with atomic numbers less than maxA from the mass formula nm . | |
int | set_dist (nuclear_mass &nm, int maxA=400, bool include_neutron=false) |
Set the distribution to all nuclei with atomic numbers less than maxA from the mass formula nm . | |
virtual iterator | begin () |
The beginning of the distribution. | |
virtual iterator | end () |
The end of the distribution. | |
virtual size_t | size () |
The number of nuclei in the distribution. |
int full_dist::set_dist | ( | nuclear_mass & | nm, |
int | maxA = 400 , |
||
bool | include_neutron = false |
||
) |
The information for the previous distribution is cleared before a new distribution is set.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).