530const std::unordered_set<ParamId> DependenciesHelper::common_deps = {
576const std::map<DecayId, std::unordered_set<ParamId>> DependenciesHelper::dep_lists = {
1097 if (!did.has_value()) {
1098 LOG_WARN(
"No decay found for obs",
id.str());
1102 if (did.has_value()) {
1103 auto decay_deps = dep_lists.at(did.value());
1104 decay_deps.insert(common_deps.begin(), common_deps.end());
1113 return std::find(allowed.begin(), allowed.end(), pid) != allowed.end();
Helper for managing parameter–observable dependencies.
#define LOG_ERROR(type,...)
Macro for logging error messages and terminating the application.
#define LOG_WARN(...)
Macro for logging warning messages.
static std::optional< DecayId > get_decay_id(const ObservableId &obs)
Return the parent decay id of an observable id.
static bool is_param_allowed(Observables id, ParamId pid)
Tests whether a given parameter is allowed for a given observable.
static std::unordered_set< ParamId > get_allowed_parameters(Observables id)
Returns the set of allowed parameters for a given observable.
static IdOf< DecayTag > to_id(Decays e)
Converts an enum value to an IdOf<Tag>.
static std::string str(const IdOf< ObservableTag > &id)
Returns the string representation of an identifier.
Composite identifier for a single parameter.