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

BETTER TO USE Import - To init this level scheme with a ENSDF file.

Init this LevelSheme with an ENSDF File (.ens). Because ENSDF files are collections of datasets, the dataset to be used must be given in the second argument.

    Example: InitENSDF("toto.ens","152DY ADOPTED LEVELS, GAMMAS") or InitENSDF("toto.ens","152DY")

the first 5 characters of the second arguments must be a valid nuclide and the following characters correspond to the dataset id. If it is not given, the assumed value is ADOPTED LEVELS, GAMMAS.

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 284 of file LevelScheme.cpp.