|
Go to the documentation of this file.
30const std::array<std::string, FlexibleDecay_settings::NUMBER_OF_OPTIONS> descriptions = {
31 "calculate particle decays",
32 "minimum BR to print",
33 "include higher order corrections in decays",
34 "use Thomson alpha(0) instead of alpha(m) in decays to γγ and γZ",
35 "off-shell decays into VV pair",
36 "print loop-induced Higgs couplings",
37 "calculate effective couplings normalized to SM",
40 "use pole Higgs mixings in decays"
46 return std::modf(value, &intpart) == 0.0;
51 if (value != 0.0 && value != 1.0) {
52 throw SetupError(std::string(quantity) + " must either 0 or 1");
59 throw SetupError(std::string(quantity) + " must be an integer");
63void assert_ge( double value, double lower_bound, const char* quantity)
65 if (value < lower_bound) {
67 " must be greater than or equal to " +
72void assert_le( double value, double upper_bound, const char* quantity)
74 if (value > upper_bound) {
76 " must be lower than or equal to " +
107 return descriptions.at(o);
114 assert_bool(value, descriptions.at(o).c_str());
117 assert_ge(value, 0, descriptions.at(o).c_str());
118 assert_le(value, 1, descriptions.at(o).c_str());
121 assert_integer(value, descriptions.at(o).c_str());
122 assert_ge(value, 0, descriptions.at(o).c_str());
123 assert_le(value, 4, descriptions.at(o).c_str());
126 assert_bool(value, descriptions.at(o).c_str());
129 assert_integer(value, descriptions.at(o).c_str());
130 assert_ge(value, 0, descriptions.at(o).c_str());
131 assert_le(value, 2, descriptions.at(o).c_str());
134 assert_bool(value, descriptions.at(o).c_str());
137 assert_bool(value, descriptions.at(o).c_str());
140 assert_bool(value, descriptions.at(o).c_str());
143 assert_bool(value, descriptions.at(o).c_str());
146 assert_bool(value, descriptions.at(o).c_str());
157 std::copy(s.data(), s.data() + s.size(), values.begin());
193 return std::modf(value, &intpart) == 0.0;
Settings FlexibleDecay settings.
@ use_pole_higgs_mixings [9]
@ include_higher_order_corrections [2] include higher order corrections in decays
@ calculate_decays [0] calculate particle decays
@ calculate_normalized_effc [6]
@ use_Thomson_alpha_in_Phigamgam_and_PhigamZ [3]
std::string get_description(Settings) const get description of spectrum generator setting
Eigen::Array< double, NUMBER_OF_OPTIONS, 1 > Settings_t
void reset() resets all settings to their defaults
std::array< double, NUMBER_OF_OPTIONS > values spectrum generator settings
Settings_t get() const get all spectrum generator settings
void set(Settings, double) set value of spectrum generator setting
Spectrum generator was not setup correctly.
const std::array< std::string, FlexibleDecay_settings::NUMBER_OF_OPTIONS > descriptions
void assert_bool(double value, const char *quantity)
void assert_le(double value, double upper_bound, const char *quantity)
void assert_ge(double value, double lower_bound, const char *quantity)
void assert_integer(double value, const char *quantity)
bool is_integer(double value)
std::string to_string(char a)
|