GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Level * ENSDF::GetLevel ( const char *  record,
TString &  opt 
)
virtual

to get a NuclearLevel from a Level record

It returns NULL if this record is not a level record. If it is a level record, it returns a new NuclearLevel filled with the record values.
If the level energy or/and the spin have an offset, it is written in the second the argument.

The string length is 2 characters. The first character is for the energy and the second one is for the spin. Format "EJ" where E and J are the corresponding ENSDF reference to the energy and spin offset as described in the ENSDF documentation (see also BaseENSDF::GetE).

Ex:

  1. "X " means: this level has an additionnal energy offset corresponding to the level labelled X in the dataset to which this level belongs to.
  2. " A" means: this level has an additionnal spin offset corresponding to the spin of the level labelled A in the dataset to which this belongs to.
  3. "XA" means: this level has an additionnal energy and spin offset.

Definition at line 85 of file ENSDF.cpp.