|
fisx
|
Public Member Functions | |
| TransmissionTable () | |
| TransmissionTable (const std::string &name, const std::string &comment="") | |
| void | setName (const std::string &name) |
| void | setComment (const std::string &comment) |
| void | setTransmissionTable (const std::map< double, double > &table, const std::string &name="", const std::string &comment="") |
| void | setTransmissionTable (const std::vector< double > &energy, const std::vector< double > &transmission, const std::string &name="", const std::string &comment="") |
| std::map< double, double > | getTransmissionTable () const |
| double | getTransmission (const double &energy) const |
| std::vector< double > | getTransmission (const std::vector< double > &energy) const |
| std::string | getName () const |
| std::string | getComment () const |
| fisx::TransmissionTable::TransmissionTable | ( | ) |
Minimalist constructor.
| fisx::TransmissionTable::TransmissionTable | ( | const std::string & | name, |
| const std::string & | comment = "" |
||
| ) |
Expected constructor.
Just a name and a description.
| double fisx::TransmissionTable::getTransmission | ( | const double & | energy | ) | const |
Return the transmission at a given energy by log-log interpolation into the internal table
| std::vector< double > fisx::TransmissionTable::getTransmission | ( | const std::vector< double > & | energy | ) | const |
Return the transmission at a set of energy by linear interpolation into the internal table
| std::map< double, double > fisx::TransmissionTable::getTransmissionTable | ( | ) | const |
Retrieves the internal table of energies and associated transmission
| void fisx::TransmissionTable::setTransmissionTable | ( | const std::map< double, double > & | table, |
| const std::string & | name = "", |
||
| const std::string & | comment = "" |
||
| ) |
Provide the table as a map of doubles.
| void fisx::TransmissionTable::setTransmissionTable | ( | const std::vector< double > & | energy, |
| const std::vector< double > & | transmission, | ||
| const std::string & | name = "", |
||
| const std::string & | comment = "" |
||
| ) |
Alternative method to provide the table via two lists of doubles