Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
DependenciesHelper Class Reference

#include <DependenciesHelper.h>

Static Public Member Functions

static std::unordered_set< ParamIdget_allowed_parameters (Observables id)
 Returns the set of allowed parameters for a given observable.
 
static bool is_param_allowed (Observables id, ParamId pid)
 Tests whether a given parameter is allowed for a given observable.
 
static std::unordered_set< ParamIdget_allowed_parameters (ObservableId id)
 Returns the set of allowed parameters for a given observable id.
 
static bool is_param_allowed (ObservableId id, ParamId pid)
 Tests whether a given parameter is allowed for a given observable id.
 

Detailed Description

Definition at line 23 of file DependenciesHelper.h.

Member Function Documentation

◆ get_allowed_parameters() [1/2]

std::unordered_set< ParamId > DependenciesHelper::get_allowed_parameters ( ObservableId  id)
static

Returns the set of allowed parameters for a given observable id.

The observable id is first mapped to an underlying decay identifier via DecayMapper::get_decay_id(). If the observable is associated with one of the decays listed in the internal dependency table, the corresponding set of ParamId is returned.

If the observable does not belong to any declared decay, an error is reported (e.g. via LOG_ERROR in the implementation).

Parameters
idLow-level observable identifier.
Returns
Set of ParamId objects allowed for this observable / decay.

Definition at line 1095 of file DependenciesHelper.cpp.

◆ get_allowed_parameters() [2/2]

std::unordered_set< ParamId > DependenciesHelper::get_allowed_parameters ( Observables  id)
static

Returns the set of allowed parameters for a given observable.

This overload takes an Observables enum value, converts it to the corresponding ObservableId using ObservableMapper::to_id(), and then forwards the request to the ObservableId-based overload.

Parameters
idHigh-level observable identifier.
Returns
Set of ParamId objects that are allowed to enter this observable.

Definition at line 1083 of file DependenciesHelper.cpp.

◆ is_param_allowed() [1/2]

bool DependenciesHelper::is_param_allowed ( ObservableId  id,
ParamId  pid 
)
static

Tests whether a given parameter is allowed for a given observable id.

This function retrieves the allowed parameter set for id using get_allowed_parameters(ObservableId) and checks whether pid is contained in that set.

Parameters
idLow-level observable identifier.
pidParameter identifier to be tested.
Returns
true if pid is allowed for id, false otherwise.

Definition at line 1111 of file DependenciesHelper.cpp.

◆ is_param_allowed() [2/2]

bool DependenciesHelper::is_param_allowed ( Observables  id,
ParamId  pid 
)
static

Tests whether a given parameter is allowed for a given observable.

This overload takes an Observables enum value, converts it to the corresponding ObservableId and then forwards the check to the ObservableId-based overload.

Parameters
idHigh-level observable identifier.
pidParameter identifier to be tested.
Returns
true if pid is in the allowed parameter set for id, false otherwise.

Definition at line 1089 of file DependenciesHelper.cpp.


The documentation for this class was generated from the following files: