![]() |
ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
|
Corresponds to a single Level record in the ENSDF database (includeing continuation records). More...
#include <LevelRecord.h>
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. |
Corresponds to a single Level record in the ENSDF database (includeing continuation records).
Definition at line 47 of file LevelRecord.h.
LevelRecord::LevelRecord | ( | list< string > | cardArg, |
QValueRecord * | qValRecord | ||
) |
Constructor.
cardArg | The card string(s) corresponding to this record. |
qValRecord | A 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(); }
double LevelRecord::getEnergy | ( | ) | const |
Gets the energy of the level.
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.
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.
other | The 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); }