Functions
hdf_nucmass_io.h File Reference

File for HDF input of the o2scl::nucmass_ame and o2scl::nucmass_mnmsk data files. More...

#include <hdf5.h>
#include <hdf5_hl.h>
#include <o2scl/constants.h>
#include <o2scl/hdf_file.h>
#include <o2scl/lib_settings.h>
#include <o2scl/nucmass.h>
#include <o2scl/nucmass_ame.h>
#include <o2scl/nucmass_hfb.h>
#include <o2scl/nucmass_frdm.h>

Go to the source code of this file.

Functions

void o2scl_hdf::ame_load (o2scl::nucmass_ame &ame, std::string file_name, std::string table_name)
 Read data for o2scl::nucmass_ame from an HDF table specified in a file. More...
 
void o2scl_hdf::ame_load (o2scl::nucmass_ame &ame, std::string name="12")
 Read an AME mass table from the O2scl internal data files. More...
 
void o2scl_hdf::mnmsk_load (o2scl::nucmass_mnmsk &mnmsk, std::string dir="")
 Read data for o2scl::nucmass_mnmsk from an HDF table. More...
 
void o2scl_hdf::hfb_load (o2scl::nucmass_hfb &hfb, size_t model=14, std::string dir="")
 Read data for o2scl::nucmass_hfb from an HDF table. More...
 
void o2scl_hdf::hfb_sp_load (o2scl::nucmass_hfb_sp &hfb, size_t model=21, std::string dir="")
 Read data for o2scl::nucmass_hfb from an HDF table. More...
 

Function Documentation

◆ ame_load() [1/2]

void o2scl_hdf::ame_load ( o2scl::nucmass_ame ame,
std::string  file_name,
std::string  table_name 
)

There are five data sets, selected by the specification of the version string

  • "95rmd" - "Recommended" data from Audi95 (ame95rmd.o2)
  • "95exp" - "Experimental" data from Audi95 (ame95exp.o2)
  • "03round" - "Rounded" data from Audi03 (ame03round.o2)
  • "03" - Data from Audi03 (ame03.o2)
  • "12" - Data from Audi12 (ame12.o2)

If any string other than these five is used, the error handler is called. If a data file has not been loaded, then nucmass_ame::is_loaded() returns false.

Note
This function is in the o2scl_hdf namespace, see hdf_nucmass_io.h .

◆ ame_load() [2/2]

void o2scl_hdf::ame_load ( o2scl::nucmass_ame ame,
std::string  name = "12" 
)

There are five data sets, selected by the specification of the version string

  • "95rmd" - "Recommended" data from Audi95 (ame95rmd.o2)
  • "95exp" - "Experimental" data from Audi95 (ame95exp.o2)
  • "03round" - "Rounded" data from Audi03 (ame03round.o2)
  • "03" - Data from Audi03 (ame03.o2)
  • "12" - Data from Audi12 (ame12.o2, default)

If any string other than these five is used, the error handler is called. If a data file has not been loaded, then nucmass_ame::is_loaded() returns false.

Note
This function is in the o2scl_hdf namespace, see hdf_nucmass_io.h .

◆ hfb_load()

void o2scl_hdf::hfb_load ( o2scl::nucmass_hfb hfb,
size_t  model = 14,
std::string  dir = "" 
)

Valid values of model at present are 2, 8, and 14, corresponding to the HFB2 (Goriely02), HFB8 (Samyn04), and HFB14 (Goriely07). If a number other than these three is given, the error handler is called.

Note
This function is in the o2scl_hdf namespace, see hdf_nucmass_io.h .
Todo:
Switch to the same 'external' file mechanism used in hdf_eos_io.h.

◆ hfb_sp_load()

void o2scl_hdf::hfb_sp_load ( o2scl::nucmass_hfb_sp hfb,
size_t  model = 21,
std::string  dir = "" 
)

Valid values of model at present are 17 and 21, corresponding to the HFB17 (Goriely02) and HFB21 (Samyn04). If a number other than these two is given, the error handler is called.

Note
This function is in the o2scl_hdf namespace, see hdf_nucmass_io.h .
Todo:
Switch to the same 'external' file mechanism used in hdf_eos_io.h.

◆ mnmsk_load()

void o2scl_hdf::mnmsk_load ( o2scl::nucmass_mnmsk mnmsk,
std::string  dir = "" 
)
Note
This function is in the o2scl_hdf namespace, see hdf_nucmass_io.h .
Todo:
Switch to the same 'external' file mechanism used in hdf_eos_io.h.

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