Particles and Nuclei Sub-Library: Version 0.910
Public Member Functions | Protected Attributes
hfb_mass Class Reference

HFB Mass formula.

#include <nuclear_mass.h>

Inheritance diagram for hfb_mass:
nuclear_mass_disc nuclear_mass nuclear_mass_info

Detailed Description

Definition at line 1006 of file nuclear_mass.h.

Public Member Functions

 hfb_mass ()
 Create a new mass formula object.
virtual bool is_included (int Z, int N)
 Return false if the mass formula does not include specified nucleus.
virtual double mass_excess (int Z, int N)
 Given Z and N, return the mass excess in MeV.
hfb_mass_entry get_ZN (int l_Z, int l_N)
 Get the entry for the specified proton and neutron number.
bool is_loaded ()
 Verify that the constructor properly loaded the table.
double blank ()
 The value which corresponds to a blank entry.
virtual const char * type ()
 Return the type, "hfb_mass".
int set_data (int n_mass, hfb_mass_entry *m, std::string ref)
 Set data.
int get_nentries ()
 Return number of entries.

Protected Attributes

int n
 The number of entries (about 3000).
std::string reference
 The reference for the original data.
hfb_mass_entrymass
 The array containing the mass data of length ame::n.
int last
 The last table index for caching.

Member Function Documentation

hfb_mass_entry hfb_mass::get_ZN ( int  l_Z,
int  l_N 
)

This method searches the table using a cached binary search algorithm. It is assumed that the table is sorted first by proton number and then by neutron number.

int hfb_mass::set_data ( int  n_mass,
hfb_mass_entry m,
std::string  ref 
)

This function is used by the HDF I/O routines.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Friends

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.