Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
DlnuDecay.cpp
Go to the documentation of this file.
1#include "DlnuDecay.h"
2
8
9double DlnuDecay::BR() {
10 return cache.calc.BR_0_SM() * cache.calc.R_SM_BSM();
11}
12
13std::vector<ObservableValue> DlnuDecay::compute_observable(Observables obs) {
14 double value;
15 switch (obs) {
17 value = BR();
18 break;
19 default:
20 LOG_ERROR("IndexError", "Observable", ObservableMapper::str(obs), "doesn't belong to the decay", DecayMapper::str(this->id));
21 }
22
23 return {ObservableValue(ObservableMapper::to_id(obs), value)};
24}
25
26
27std::vector<ObservableValue> DlnuDecay::compute_observable(ObservableId obs) {
29}
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::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
double BR()
Definition DlnuDecay.cpp:9
void load_params() override
Load and cache parameters needed by this decay.
Definition DlnuDecay.cpp:3
std::vector< ObservableValue > compute_observable(Observables obs) override
Compute an observable given a public observable enum.
Definition DlnuDecay.cpp:13
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 DlnuDecay.h:10
Container for a computed observable value, optionally binned.