/* MassMap.h A represnetation of the AMDC mass table. We provide capability to retrieve the mass of an isotope as well as the isotopic symbol. This sort of code is pretty ubiquitous in flexible nuclear physics analysis. GWM -- Feb 2022 */ #ifndef MASS_MAP_H #define MASS_MAP_H #include "Specter.h" class MassMap { public: MassMap(); ~MassMap(); double FindMass(int Z, int A); std::string FindSymbol(int Z, int A); private: std::unordered_map massTable; std::unordered_map elementTable; //constants static constexpr double u_to_mev = 931.4940954; static constexpr double electron_mass = 0.000548579909; }; #endif