Class to encapsulate the illumination data. More...
#include <IllumTable.hxx>
Public Member Functions | |
IllumTable (unsigned aNumXi, unsigned aNumEta, std::string aFilterName) | |
~IllumTable () | |
Destructor removes all data. | |
unsigned | getNumEtas () const |
Get the number of rows in the table. | |
unsigned | getNumXis () const |
Get the number of columns in the table. | |
std::string | getFilterName () const |
Get the filter name. | |
void | assignMag (unsigned aCol, unsigned aRow, double aValue) |
void | assignXi (unsigned aIdx, double aValue) |
void | assignEta (unsigned aIdx, double aValue) |
void | setXiIntervall (double aXiVal) |
Get the value in the data type as determined at compile time. | |
void | setEtaIntervall (double aEtaVal) |
Get the value in the data type as determined at compile time. | |
Intervall & | getXiIntervall () |
Get the value in the data type as determined at compile time. | |
Intervall & | getEtaIntervall () |
Get the value in the data type as determined at compile time. | |
const double & | getMag (unsigned aCol, unsigned aRow) const |
Get the value in the data type as determined at compile time. | |
double & | getXi (unsigned aIdx) |
Get the value in the data type as determined at compile time. | |
double & | getEta (unsigned aIdx) |
Get the value in the data type as determined at compile time. | |
Private Types | |
typedef std::map< double, unsigned > | DoubleUintMap |
typedef std::map< unsigned, double > | UintDoubleMap |
Private Member Functions | |
void | writeToMag (unsigned aCol, unsigned aRow, double aValue) |
void | writeToXi (unsigned aIdx, double aValue) |
void | writeToEta (unsigned aIdx, double aValue) |
void | writeXiIntervall (double aXiVal) |
void | writeEtaIntervall (double aEtaVal) |
const double & | readMag (unsigned aCol, unsigned aRow) const |
double & | readXi (unsigned aIdx) |
double & | readEta (unsigned aIdx) |
Intervall & | readXiIntervall () |
Intervall & | readEtaIntervall () |
Private Attributes | |
unsigned | mNumXi |
unsigned | mNumEta |
std::string | mFilterName |
DoubleUintMap | mXi |
UintDoubleMap | mXiInv |
DoubleUintMap | mEta |
UintDoubleMap | mEtaInv |
Intervall | mXiIvall |
Intervall | mEtaIvall |
double ** | mDelMagAry |
Data goes here. |
Class to encapsulate the illumination data.
typedef std::map<double, unsigned> IllumTable::DoubleUintMap [private] |
typedef std::map<unsigned, double> IllumTable::UintDoubleMap [private] |
Construct using number of Xi values (columns) and number of Eta values (rows) for each delMag
References mDelMagAry, mNumEta, and mNumXi.
IllumTable::~IllumTable | ( | ) | [inline] |
Destructor removes all data.
References mDelMagAry, and mNumXi.
void IllumTable::assignEta | ( | unsigned | aIdx, | |
double | aValue | |||
) | [inline] |
References writeToEta().
Referenced by extractSources().
References writeToMag().
Referenced by extractSources().
void IllumTable::assignXi | ( | unsigned | aIdx, | |
double | aValue | |||
) | [inline] |
References writeToXi().
Referenced by extractSources().
double& IllumTable::getEta | ( | unsigned | aIdx | ) | [inline] |
Get the value in the data type as determined at compile time.
References readEta().
Intervall& IllumTable::getEtaIntervall | ( | ) | [inline] |
Get the value in the data type as determined at compile time.
References readEtaIntervall().
Referenced by CalibratedVSAMagnitude< DataType >::doit2(), and CalibratedMagnitude< DataType >::doit2().
std::string IllumTable::getFilterName | ( | ) | const [inline] |
Get the value in the data type as determined at compile time.
References readMag().
Referenced by CalibratedVSAMagnitude< DataType >::doit2(), and CalibratedMagnitude< DataType >::doit2().
unsigned IllumTable::getNumEtas | ( | ) | const [inline] |
Get the number of rows in the table.
References mNumEta.
unsigned IllumTable::getNumXis | ( | ) | const [inline] |
Get the number of columns in the table.
References mNumXi.
double& IllumTable::getXi | ( | unsigned | aIdx | ) | [inline] |
Get the value in the data type as determined at compile time.
References readXi().
Intervall& IllumTable::getXiIntervall | ( | ) | [inline] |
Get the value in the data type as determined at compile time.
References readXiIntervall().
Referenced by CalibratedVSAMagnitude< DataType >::doit2(), and CalibratedMagnitude< DataType >::doit2().
double& IllumTable::readEta | ( | unsigned | aIdx | ) | [inline, private] |
Intervall& IllumTable::readEtaIntervall | ( | ) | [inline, private] |
References mEtaIvall.
Referenced by getEtaIntervall().
References mDelMagAry.
Referenced by getMag().
double& IllumTable::readXi | ( | unsigned | aIdx | ) | [inline, private] |
Intervall& IllumTable::readXiIntervall | ( | ) | [inline, private] |
References mXiIvall.
Referenced by getXiIntervall().
void IllumTable::setEtaIntervall | ( | double | aEtaVal | ) | [inline] |
Get the value in the data type as determined at compile time.
References writeEtaIntervall().
Referenced by CalibratedVSAMagnitude< DataType >::doit2(), and CalibratedMagnitude< DataType >::doit2().
void IllumTable::setXiIntervall | ( | double | aXiVal | ) | [inline] |
Get the value in the data type as determined at compile time.
References writeXiIntervall().
Referenced by CalibratedVSAMagnitude< DataType >::doit2(), and CalibratedMagnitude< DataType >::doit2().
void IllumTable::writeEtaIntervall | ( | double | aEtaVal | ) | [inline, private] |
References mEta, mEtaInv, mEtaIvall, Intervall::val1, Intervall::val2, Intervall::x1, and Intervall::x2.
Referenced by setEtaIntervall().
void IllumTable::writeToEta | ( | unsigned | aIdx, | |
double | aValue | |||
) | [inline, private] |
Referenced by assignEta().
References mDelMagAry.
Referenced by assignMag().
void IllumTable::writeToXi | ( | unsigned | aIdx, | |
double | aValue | |||
) | [inline, private] |
Referenced by assignXi().
void IllumTable::writeXiIntervall | ( | double | aXiVal | ) | [inline, private] |
References mXi, mXiInv, mXiIvall, Intervall::val1, Intervall::val2, Intervall::x1, and Intervall::x2.
Referenced by setXiIntervall().
double** IllumTable::mDelMagAry [private] |
Data goes here.
Referenced by IllumTable(), readMag(), writeToMag(), and ~IllumTable().
DoubleUintMap IllumTable::mEta [private] |
Referenced by writeEtaIntervall(), and writeToEta().
UintDoubleMap IllumTable::mEtaInv [private] |
Referenced by readEta(), writeEtaIntervall(), and writeToEta().
Intervall IllumTable::mEtaIvall [private] |
Referenced by readEtaIntervall(), and writeEtaIntervall().
std::string IllumTable::mFilterName [private] |
Referenced by getFilterName().
unsigned IllumTable::mNumEta [private] |
Referenced by getNumEtas(), and IllumTable().
unsigned IllumTable::mNumXi [private] |
Referenced by getNumXis(), IllumTable(), and ~IllumTable().
DoubleUintMap IllumTable::mXi [private] |
Referenced by writeToXi(), and writeXiIntervall().
UintDoubleMap IllumTable::mXiInv [private] |
Referenced by readXi(), writeToXi(), and writeXiIntervall().
Intervall IllumTable::mXiIvall [private] |
Referenced by readXiIntervall(), and writeXiIntervall().