GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Int_t LevelScheme::Import ( const Char_t *  filename,
Option_t *  opt 
)
virtual

to init this level scheme from an existing formatted file (ENSDF, Radware ..)

It is better to use this member instead of directly InitAGS or InitENSDF since it proposes the same interface for all initialisations. The choise of the Init function is based on the filename's extention:

  • .ens –> InitENSDF
  • .ags –> InitAGS
  • ... could be extented

if your file has not the correct extention, change it or use directly the suitable member which does not check the extention. The second argument is, at least, the nuclide to which this nuclide belongs. See the suitable members for a full description of the arguments required.

It returns 0 if something is wrong and 1 if the initialisation is ok. In case of success, the previous data members are lost. In case of error, the previous data members are still available.

Definition at line 276 of file LevelScheme.cpp.