![]() |
GamR
0.0.0
GammaROOT
|
#include <CoulexCalculation.hh>
Collaboration diagram for GamR::Coulex::LevelScheme:Public Member Functions | |
| void | AddLevel (std::string name, float energy, float spin, bool parity) |
| void | AddLevel (float energy, float spin, bool parity) |
| void | AddTransition (std::string initial, std::string final, float mat_el, float multipolarity) |
| void | SetIndices () |
| void | PrintLevels (int loi=-1) |
| void | PrintTransitions (int toi=-1) |
| void | Print (int loi=-1, int toi=-1) |
| Level * | GetLevelByIndex (int i) |
| int | GetNLevels () |
| int | GetNTransitions () |
| std::vector< WDB_nuclvl > | GetLevels () |
| std::vector< WDB_nuctrans > | GetETransitions () |
| std::vector< WDB_nuctrans > | GetMTransitions () |
Public Attributes | |
| std::map< std::string, Level * > | fLevels |
| std::vector< Transition * > | fTransitions |
LevelScheme class to contain the (previously known) level scheme
Definition at line 120 of file CoulexCalculation.hh.
| void GamR::Coulex::LevelScheme::AddLevel | ( | float | energy, |
| float | spin, | ||
| bool | parity ) |
Adds a level with name "l"+index
| energy | Energy of level in MeV |
| spin | Spin of energy. Make sure only integers or half integers are input, there's no check |
| parity | true = positive, false = negative |
Definition at line 139 of file CoulexCalculation.cc.
References AddLevel(), and fLevels.
Here is the call graph for this function:| void GamR::Coulex::LevelScheme::AddLevel | ( | std::string | name, |
| float | energy, | ||
| float | spin, | ||
| bool | parity ) |
Adds a level with specified name
| name | Name of level |
| energy | Energy of level in MeV |
| spin | Spin of energy. Make sure only integers or half integers are input, there's no check |
| parity | true = positive, false = negative |
Definition at line 127 of file CoulexCalculation.cc.
References fLevels.
Referenced by AddLevel().
Here is the caller graph for this function:| void GamR::Coulex::LevelScheme::AddTransition | ( | std::string | initial, |
| std::string | final, | ||
| float | mat_el, | ||
| float | multipolarity ) |
Adds a transition
| initial | string corresponding to name of initial (higher) state |
| final | string corresponding to name of final (lower) state |
| mat_el | matrix element in eb^(lambda - 1) for electric, not sure about magnetic |
| multipolarity | multipolarity of transition |
Definition at line 152 of file CoulexCalculation.cc.
References fLevels, and fTransitions.
| std::vector< WDB_nuctrans > GamR::Coulex::LevelScheme::GetETransitions | ( | ) |
Gets a vector of electric transitions for the WDB codes
Definition at line 270 of file CoulexCalculation.cc.
References GamR::Coulex::WDB_nuctrans::B, fTransitions, GamR::Coulex::WDB_nuctrans::lvl1, GamR::Coulex::WDB_nuctrans::lvl2, and GamR::Coulex::WDB_nuctrans::M.
| Level * GamR::Coulex::LevelScheme::GetLevelByIndex | ( | int | i | ) |
Definition at line 110 of file CoulexCalculation.cc.
References fLevels.
Referenced by PrintLevels().
Here is the caller graph for this function:| std::vector< WDB_nuclvl > GamR::Coulex::LevelScheme::GetLevels | ( | ) |
Gets a vector of levels in the format required by the WDB codes
Definition at line 242 of file CoulexCalculation.cc.
References GamR::Coulex::WDB_nuclvl::E, fLevels, GamR::Coulex::WDB_nuclvl::K_Band, GamR::Coulex::WDB_nuclvl::par, and GamR::Coulex::WDB_nuclvl::spin.
| std::vector< WDB_nuctrans > GamR::Coulex::LevelScheme::GetMTransitions | ( | ) |
Gets a vector of magnetic transitions for the WDB codes
Definition at line 290 of file CoulexCalculation.cc.
References GamR::Coulex::WDB_nuctrans::B, fTransitions, GamR::Coulex::WDB_nuctrans::lvl1, GamR::Coulex::WDB_nuctrans::lvl2, and GamR::Coulex::WDB_nuctrans::M.
|
inline |
Definition at line 133 of file CoulexCalculation.hh.
References fLevels.
|
inline |
Definition at line 134 of file CoulexCalculation.hh.
References fTransitions.
| void GamR::Coulex::LevelScheme::Print | ( | int | loi = -1, |
| int | toi = -1 ) |
Prints the states and transitions in the level scheme
| loi | State index to highlight |
| toi | Transition index to highlight |
Definition at line 230 of file CoulexCalculation.cc.
References PrintLevels(), and PrintTransitions().
Here is the call graph for this function:| void GamR::Coulex::LevelScheme::PrintLevels | ( | int | loi = -1 | ) |
Prints the states in the level scheme
| loi | State index to highlight |
Definition at line 193 of file CoulexCalculation.cc.
References ANSI_COLOR_GREEN, ANSI_COLOR_RESET, GamR::Coulex::Level::fEnergy, GamR::Coulex::Level::fIndex, fLevels, GetLevelByIndex(), GamR::Coulex::Level::PrintSP(), and SetIndices().
Referenced by Print().
Here is the call graph for this function:
Here is the caller graph for this function:| void GamR::Coulex::LevelScheme::PrintTransitions | ( | int | toi = -1 | ) |
Prints the transitions in the level scheme
| toi | Transition index to highlight |
Definition at line 209 of file CoulexCalculation.cc.
References ANSI_COLOR_GREEN, ANSI_COLOR_RESET, GamR::Coulex::Transition::Energy(), GamR::Coulex::Transition::fFinal, GamR::Coulex::Level::fIndex, GamR::Coulex::Transition::fInitial, GamR::Coulex::Transition::fMatEl, fTransitions, SetIndices(), and GamR::Coulex::Transition::Type().
Referenced by Print().
Here is the call graph for this function:
Here is the caller graph for this function:| void GamR::Coulex::LevelScheme::SetIndices | ( | ) |
Sets indices of every level in the scheme, ascending in energy order, starting from 0
Definition at line 171 of file CoulexCalculation.cc.
References fLevels.
Referenced by PrintLevels(), and PrintTransitions().
Here is the caller graph for this function:| std::map<std::string, Level*> GamR::Coulex::LevelScheme::fLevels |
Definition at line 122 of file CoulexCalculation.hh.
Referenced by AddLevel(), AddLevel(), AddTransition(), GetLevelByIndex(), GetLevels(), GetNLevels(), PrintLevels(), and SetIndices().
| std::vector<Transition*> GamR::Coulex::LevelScheme::fTransitions |
Definition at line 123 of file CoulexCalculation.hh.
Referenced by AddTransition(), GetETransitions(), GetMTransitions(), GetNTransitions(), and PrintTransitions().