#include <BSMPT/utility/ModelIDs.h>
#include <algorithm>
#include <memory>
#include <string>
#include <unordered_map>
#include <vector>
Go to the source code of this file.
|
namespace | BSMPT |
| This classes calculates the Bounce action of the potential with a set temperature.
|
|
◆ FChoose() [1/2]
std::unique_ptr< Class_Potential_Origin > BSMPT::ModelID::FChoose |
( |
ModelIDs |
choice | ) |
|
- Parameters
-
choice | ModelIDs for the Model under investigation |
- Returns
- smart pointer to the instance of the class matching the ModelIDs choice. If choice == NotSet the function throws an runtime error
- Exceptions
-
Runtime | error if an invalid model was given into choice |
◆ FChoose() [2/2]
std::unique_ptr< Class_Potential_Origin > BSMPT::ModelID::FChoose |
( |
ModelIDs |
choice, |
|
|
const ISMConstants & |
smConstants |
|
) |
| |
- Parameters
-
choice | ModelIDs for the Model under investigation |
- Returns
- smart pointer to the instance of the class matching the ModelIDs choice. If choice == NotSet the function throws an runtime error
- Parameters
-
smConstants | The SM Constants to use for the parameter |
- Exceptions
-
Runtime | error if an invalid model was given into choice |
◆ getModel()
ModelIDs BSMPT::ModelID::getModel |
( |
const std::string & |
s | ) |
|
- Parameters
-
s | The input string, which is turned to lower case and then compared to the entries of the ModelNames map |
- Returns
- If a match in ModelNames is found, return the corresponding ModelIDs entry, otherwise return ModelIDs::NoSet