|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
#include <Observable.h>

Public Member Functions | |
| Observable (ObservableId id, std::shared_ptr< DecayParent > decay_parent, std::shared_ptr< IObsParameterProxy< ParamId, DataType, std::string, LhaID > > iobspp_obs) | |
| Construct an Observable. | |
| ObservableId | getId () const |
| Return the observable id. | |
| scalar_t | get_exp_val (std::pair< double, double > bins={0., 0.}, std::string exp="DEFAULT") const |
| Get the experimental central value for this observable. | |
| scalar_t | get_exp_uncertainty (std::pair< double, double > bins={0., 0.}, std::string exp="DEFAULT", UncertaintyType u_type=UncertaintyType::COMBINED) const |
| Get the experimental uncertainty for this observable. | |
| std::vector< ObservableValue > | compute () const |
| Compute the theory prediction for this observable. | |
| void | add_dependence (const ParamId ¶m_name) |
| Add a single parameter dependence. | |
| void | add_dependences (const std::unordered_set< ParamId > ¶m_names) |
| Add many parameter dependences. | |
| const std::unordered_set< ParamId > & | get_dependences () const |
| Access the dependency set (read-only). | |
Protected Attributes | |
| const ObservableId | id |
| Identifier of this observable (used for experimental lookup and theory computation routing). | |
| std::shared_ptr< DecayParent > | decay_parent |
| Physics backend that computes the theory prediction for this observable. | |
| std::unordered_set< ParamId > | dependences |
| Set of parameter identifiers the observable depends on. | |
| std::shared_ptr< IObsParameterProxy< ParamId, DataType, std::string, LhaID > > | iobspp_obs |
| Proxy to experimental/observable parameters (typically ParameterType::OBSERVABLE). | |
Definition at line 46 of file Observable.h.
|
inline |
Construct an Observable.
| id | Observable identifier. |
| decay_parent | Decay/physics backend used to compute theory prediction. |
| iobspp_obs | Proxy used to read experimental values/uncertainties. |
Definition at line 82 of file Observable.h.
| void Observable::add_dependence | ( | const ParamId & | param_name | ) |
Add a single parameter dependence.
| param_name | Parameter id to add to the dependency set. |
Definition at line 15 of file Observable.cpp.
| void Observable::add_dependences | ( | const std::unordered_set< ParamId > & | param_names | ) |
Add many parameter dependences.
Performs a set union with the existing dependency set.
| param_names | Set of parameter ids to add. |
Definition at line 19 of file Observable.cpp.
| std::vector< ObservableValue > Observable::compute | ( | ) | const |
Compute the theory prediction for this observable.
This method ensures the underlying DecayParent is enabled before computing. Enabling typically triggers Wilson group building (via ObsWilsonHelper) and parameter loading.
Definition at line 11 of file Observable.cpp.
| const std::unordered_set< ParamId > & Observable::get_dependences | ( | ) | const |
Access the dependency set (read-only).
Definition at line 24 of file Observable.cpp.
| scalar_t Observable::get_exp_uncertainty | ( | std::pair< double, double > | bins = {0.,0.}, |
| std::string | exp = "DEFAULT", |
||
| UncertaintyType | u_type = UncertaintyType::COMBINED |
||
| ) | const |
Get the experimental uncertainty for this observable.
The uncertainty type is mapped to a DataType via UncertaintyTypeMapper::d_type. Typical values include combined/stat/sys depending on your implementation.
| bins | Experimental bins of the observable |
| exp | Experiment for the observable |
| u_type | Which uncertainty component to request (default: combined). |
Definition at line 7 of file Observable.cpp.
| scalar_t Observable::get_exp_val | ( | std::pair< double, double > | bins = {0.,0.}, |
| std::string | exp = "DEFAULT" |
||
| ) | const |
Get the experimental central value for this observable.
Reads from the observable parameter proxy using:
| bins | Experimental bins of the observable |
| exp | Experiment for the observable |
Definition at line 3 of file Observable.cpp.
|
inline |
Return the observable id.
Definition at line 87 of file Observable.h.
|
protected |
Physics backend that computes the theory prediction for this observable.
Definition at line 52 of file Observable.h.
|
protected |
Set of parameter identifiers the observable depends on.
This is intended for external tooling:
Definition at line 63 of file Observable.h.
|
protected |
Identifier of this observable (used for experimental lookup and theory computation routing).
Definition at line 49 of file Observable.h.
|
protected |
Proxy to experimental/observable parameters (typically ParameterType::OBSERVABLE).
Expected block usage in current implementation:
Definition at line 72 of file Observable.h.