Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
BlnuDecay.cpp
Go to the documentation of this file.
1#include "BlnuDecay.h"
2
8
10 return cache.calc.R_SM_BSM();
11}
12
13double BlnuDecay::BR() {
14 return cache.calc.BR_0_SM() * cache.calc.R_SM_BSM();
15}
16
17std::vector<ObservableValue> BlnuDecay::compute_observable(Observables obs) {
18 double value;
19 switch (obs) {
21 value = R();
22 break;
24 value = BR();
25 break;
26 default:
27 LOG_ERROR("IndexError", "Observable", ObservableMapper::str(obs), "doesn't belong to the decay", DecayMapper::str(this->id));
28 }
29
30 return {ObservableValue(ObservableMapper::to_id(obs), value)};
31}
32
33
34std::vector<ObservableValue> BlnuDecay::compute_observable(ObservableId obs) {
36}
Observables
Definition GeneralEnum.h:4
#define LOG_ERROR(type,...)
Macro for logging error messages and terminating the application.
Definition Logger.h:41
std::complex< double > complex_t
Convenience alias for std::complex<double>.
Definition Utils.h:35
std::vector< ObservableValue > compute_observable(Observables obs) override
Compute an observable given a public observable enum.
Definition BlnuDecay.cpp:17
double BR()
Definition BlnuDecay.cpp:13
scalar_t R()
Definition BlnuDecay.cpp:9
void load_params() override
Load and cache parameters needed by this decay.
Definition BlnuDecay.cpp:3
std::shared_ptr< IObsParameterProxy< ParamId, DataType, std::string, LhaID > > p
Parameter proxy for SM-like quantities used by the decay (may be SM/BSM depending on wiring).
std::shared_ptr< IObsWilsonProxy > w_proxy
Wilson proxy used at compute-time to query coefficients (matching/run).
Definition DecayParent.h:99
static std::optional< Observables > enum_of(const IdOf< ObservableTag > &id)
Attempts to recover the enum value associated with an identifier.
static IdOf< ObservableTag > to_id(Observables e)
Converts an enum value to an IdOf<Tag>.
static std::string str(const IdOf< ObservableTag > &id)
Returns the string representation of an identifier.
PlnuCalculator calc
Definition BlnuDecay.h:9
Container for a computed observable value, optionally binned.