GammaWare  Head Version for release 0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Gw::BaseENSDF Class Reference

General interface to ENSDF files. More...

#include <BaseENSDF.h>

Inheritance diagram for Gw::BaseENSDF:

Classes

class  DataSetKey
 

Public Member Functions

 BaseENSDF ()
 
virtual void Close ()
 
virtual bool FirstRecord (unsigned int which, char *record)
 to init the records reading More...
 
float GetCC (const char *)
 on a gamma record, to get the total conversion coefficient... check the record before with IsRecord!! More...
 
float GetDCC (const char *)
 
float GetDE (const char *)
 
float GetDMR (const char *)
 
float GetDRI (const char *)
 
float GetDT (const char *)
 
float GetDTI (const char *)
 
float GetE (const char *, std::string &)
 to get the energy field of a record More...
 
std::string GetJPI (const char *)
 to get the spin-parity field JPI: J More...
 
float GetMR (const char *)
 to get the multipolarity of a gamma level More...
 
float GetPrecision (std::string)
 extract the precision for a given ENSDF data More...
 
float GetRI (const char *, std::string &)
 to get the relative intensity field of a gamma record More...
 
float GetT (const char *, float &, std::string &)
 to get the T (half-life) field of a record. More...
 
float GetTI (const char *, std::string &)
 to get the relative total transition intensity field of a gamma record More...
 
virtual unsigned int IsDataSet (const char *nuclide, const char *dsid="ADOPTED LEVELS, GAMMAS") const
 look for a given data set More...
 
virtual bool IsOpen ()
 
bool IsRecord (const char *, const char *) const
 check record's type. More...
 
virtual void ls (std::ostream &) const
 
virtual bool NextRecord (unsigned int, char *)
 to get dataset's records More...
 
virtual bool Open (const char *)
 
virtual ~BaseENSDF ()
 

Static Public Member Functions

static char * BlankRecord ()
 returns a proper empty record. It is the charge of the user to delete it More...
 

Protected Member Functions

std::string Date (const char *) const
 
std::string Dsid (const char *) const
 
std::string Dsref (const char *) const
 
std::string Nuclide (const char *) const
 
std::string Pub (const char *) const
 

Protected Attributes

std::vector< DataSetKeyfDataSets
 

Static Protected Attributes

static std::string BLANK = " \n"
 
static const int RSIZE = 81
 

Detailed Description

General interface to ENSDF files.

Utility class to deal with ENSDF files. A ENSDF file is viewed as a collection of datasets. Each dataset is composed of records, a record being a buffer of a fixed length (81 characters including a return character at the end).

Once a valid ENDSF file is open, a list of dataset keys is created for each data set. This keys described the data set using the fields coming from the identification record (see ENSDF doc): It is possible then to check out if a given data set exists by using the IsDataSet member. If it exists, any of its records could be read with BlankRecord, FirstRecord and NextRecord.

Some members allow to decode some records like:

IsRecord GetCC GetPrecision GetE GetDE GetT GetDT GetJPI ...

Todo:
  • For the moment, asymetric errors are not proposed for DT, DMR etc .. and when given in an ENSDF file, GetDT returns a wrong error.
Author
Olivier Stezowski

Definition at line 53 of file BaseENSDF.h.


The documentation for this class was generated from the following files: