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

Extends InterestingDecay for using with the DataQueryIsomer class. More...

#include <InterestingDecayIsomer.h>

Inheritance diagram for InterestingDecayIsomer:
InterestingDecay

List of all members.

Public Member Functions

 InterestingDecayIsomer (Nukleid nukleidToSet, double halfLifeToSet, double energyToSet)
 Constructs the object.
double getHalfLife () const
 Get the half life.
double getEnergy () const
 Get the energy.
string toString () const
 Get a string consisting of atomic number, mass number and nucleid name, used for plotting the isomers in a nucleid chart.
bool operator== (const InterestingDecayIsomer &other) const
 Comparision operator.
bool operator< (const InterestingDecayIsomer &other) const
 Comparition operator.

Protected Attributes

double myHalfLife
 The half-life.
double myEnergy
 The energy.

Detailed Description

Extends InterestingDecay for using with the DataQueryIsomer class.

Author:
Rikard Lundmark

Definition at line 24 of file InterestingDecayIsomer.h.


Constructor & Destructor Documentation

InterestingDecayIsomer::InterestingDecayIsomer ( Nukleid  nukleidToSet,
double  halfLifeToSet,
double  energyToSet 
)

Constructs the object.

See also:
DataQueryIsomer for more information about this.
Parameters:
nukleidToSetThe nucleid corresponding to this InterestingDecayIsomer.
halfLifeToSetThe half-life.
energyToSetThe energy.

Definition at line 3 of file InterestingDecayIsomer.cpp.

References myEnergy, and myHalfLife.

  :InterestingDecay(nukleidToSet)
{
  myHalfLife = halfLifeToSet;
  myEnergy = energyToSet;
}

Member Function Documentation

double InterestingDecayIsomer::getEnergy ( ) const

Get the energy.

Returns:
The energy.

Definition at line 15 of file InterestingDecayIsomer.cpp.

References myEnergy.

{
  return myEnergy;
}
double InterestingDecayIsomer::getHalfLife ( ) const

Get the half life.

Returns:
The half life.

Definition at line 10 of file InterestingDecayIsomer.cpp.

References myHalfLife.

{
  return myHalfLife;
}
bool InterestingDecayIsomer::operator< ( const InterestingDecayIsomer other) const

Comparition operator.

Parameters:
otherTo compare with.

Definition at line 33 of file InterestingDecayIsomer.cpp.

References doubleEquality(), InterestingDecay::getNukleid(), myEnergy, and myHalfLife.

{
  if(getNukleid()!=other.getNukleid())
    return getNukleid()<other.getNukleid();
  if(!doubleEquality(myHalfLife,other.myHalfLife))
    return myHalfLife<other.myHalfLife;
  if(!doubleEquality(myEnergy, other.myEnergy))
    return myEnergy<other.myEnergy;
  return false;
}
bool InterestingDecayIsomer::operator== ( const InterestingDecayIsomer other) const

Comparision operator.

Parameters:
otherTo compare with.

Definition at line 28 of file InterestingDecayIsomer.cpp.

References doubleEquality(), InterestingDecay::getNukleid(), myEnergy, and myHalfLife.


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