ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
Public Member Functions | Protected Attributes | Private Member Functions
LevelRecord Class Reference

Corresponds to a single Level record in the ENSDF database (includeing continuation records). More...

#include <LevelRecord.h>

Inheritance diagram for LevelRecord:
Record ChildAddable< Child< LevelRecord > > QValueRecordChildrenWrapper Child< QValueRecord >

List of all members.

Public Member Functions

 LevelRecord (list< string > cardArg, QValueRecord *qValRecord)
 Constructor.
double getEnergy () const
 Gets the energy of the level.
double getHalfLife () const
 Gets the half life of the level.
bool operator== (const LevelRecord &other) const
 Equality comparision operator.

Protected Attributes

double energy
 The energy of this level (in keV).
double halfLife
 The halfLife of this level (in s).

Private Member Functions

void processCard ()
 Called by the constructor in order to initialize the protected members.

Detailed Description

Corresponds to a single Level record in the ENSDF database (includeing continuation records).

Author:
Rikard Lundmark
Note:
Not fully implemented.

Definition at line 47 of file LevelRecord.h.


Constructor & Destructor Documentation

LevelRecord::LevelRecord ( list< string >  cardArg,
QValueRecord qValRecord 
)

Constructor.

Parameters:
cardArgThe card string(s) corresponding to this record.
qValRecordA pointer to the Q value record corresponding to this record.

Definition at line 2 of file LevelRecord.cpp.

References processCard().

  :Record(cardArg), QValueRecordChildrenWrapper(qValArg)
{
  processCard();
}

Member Function Documentation

double LevelRecord::getEnergy ( ) const

Gets the energy of the level.

Returns:
The energy of the energy level (in keV).

Definition at line 14 of file LevelRecord.cpp.

References energy.

Referenced by DataQueryBetaGamma::CompareElementsForSort(), DataQueryBetaGamma::DetectInterestingStuffWithThisIsotope(), DataQueryBetaGamma::findNextLevel(), Record_TEST::testGammaRecord(), and Record_TEST::testLevelRecord().

{
  return energy;
}
double LevelRecord::getHalfLife ( ) const

Gets the half life of the level.

Returns:
The half life of the level (in s), -1 if the level is stable and 0 if no information is given in ENSDF.

Definition at line 19 of file LevelRecord.cpp.

References halfLife.

Referenced by Record_TEST::testLevelRecord().

{
  return halfLife;
}
bool LevelRecord::operator== ( const LevelRecord other) const

Equality comparision operator.

Parameters:
otherThe LevelRecord to compare with.

Definition at line 25 of file LevelRecord.cpp.

References doubleEquality(), energy, Record::getNukleid(), and halfLife.

{
  const ChildAddable<Child<LevelRecord> > * temp1 = this;
  const ChildAddable<Child<LevelRecord> > * temp2 = &rhs;
  double other = (*temp1==*temp2);
  return (doubleEquality(energy,rhs.energy,1))&&(doubleEquality(halfLife,rhs.halfLife)&&(getNukleid()==rhs.getNukleid())&& other);
}

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark