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

#include <ObservableInterface.h>

Public Member Functions

 ObservableInterface ()
 Construct a ready-to-use observable interface.
 
void add_custom_decay (DecayId id, std::shared_ptr< DecayParent > ptr)
 Register a custom decay implementation.
 
ObservableInterfaceadd_lambda_decay (LambdaDecayConfig config, bool add_observables=true)
 Register a complete custom decay backed by user lambdas.
 
ObservableInterfaceadd_matching_patch (const WilsonMatchingPatch &patch)
 Add an additive Wilson matching patch through the observable layer.
 
ObservableInterfaceaddMatchingPatch (const WilsonMatchingPatch &patch)
 Camel-case alias for add_matching_patch.
 
ObservableInterfaceadd_observable (Observables obs, QCDOrder order, bool add_dependencies=false)
 Add an observable to the manager (enum API).
 
ObservableInterfaceadd_observable (ObservableId obs, QCDOrder order, bool add_dependencies=false)
 Add an observable to the manager (internal id API).
 
ObservableInterfaceadd_observable (BinnedObservableId obs, QCDOrder order, bool add_dependencies=false)
 Add a binned observable to the manager (internal id API).
 
void add_observables (std::map< Observables, QCDOrder > obss, bool add_dependencies=false)
 Add multiple observables at once (enum map).
 
void add_observables (std::map< ObservableId, QCDOrder > obss, bool add_dependencies=false)
 Add multiple observables at once (internal id map).
 
void add_observables (Decays decay, QCDOrder order, bool add_dependencies=false, std::pair< double, double > bin={1.0, 6.0})
 Add all observables belonging to a decay.
 
void add_observables (DecayId decay, QCDOrder order, bool add_dependencies=false, std::pair< double, double > bin={1.0, 6.0})
 Add all observables belonging to a decay.
 
bool is_decay_binned (Decays decay) const
 Return whether this decay has at least one observable requiring q² bins.
 
bool is_decay_binned (DecayId decay) const
 Return whether this decay has at least one observable requiring q² bins.
 
bool is_observable_binned (Observables obs) const
 Return whether a specific observable requires q² bins.
 
bool is_observable_binned (ObservableId obs) const
 Return whether a specific observable requires q² bins.
 
void add_observable_parameter (Observables obs, ParamId pid)
 Manually add a single parameter dependence to an observable (enum API).
 
void add_observable_parameter (ObservableId obs, ParamId pid)
 Manually add a single parameter dependence to an observable (id API).
 
void add_observable_parameters (Observables obs, std::unordered_set< ParamId > pids)
 Manually add multiple parameter dependences to an observable (enum API).
 
void add_observable_parameters (ObservableId obs, std::unordered_set< ParamId > pids)
 Manually add multiple parameter dependences to an observable (id API).
 
std::vector< ObservableValuecompute_observable (Observables obs) const
 Compute a theory prediction for an observable (enum API).
 
std::vector< ObservableValuecompute_observable (ObservableId obs) const
 Compute a theory prediction for an observable (id API).
 
ObservableValue compute_observable (BinnedObservableId obs) const
 Compute a theory prediction for an observable (id API).
 
void remove_observable (Observables id)
 Remove an observable from the manager (enum API).
 
void remove_observable (ObservableId id)
 Remove an observable from the manager (id API).
 
void remove_observables (std::unordered_set< Observables > ids)
 Remove several observables (enum set).
 
void remove_observables (Decays dec)
 Remove all observables attached to a given decay.
 
scalar_t get_exp_value (Observables id)
 Get experimental central value for an observable (enum API).
 
scalar_t get_exp_value (ObservableId id)
 Get experimental central value for an observable (id API).
 
scalar_t get_exp_value (BinnedObservableId id)
 Get experimental central value for an observable (id API).
 
scalar_t get_exp_value (ExperimentObs id)
 Get experimental central value for an observable (id API).
 
scalar_t get_exp_uncertainty (Observables id, UncertaintyType u_type=UncertaintyType::COMBINED)
 Get experimental uncertainty for an observable (enum API).
 
scalar_t get_exp_uncertainty (ObservableId id, UncertaintyType u_type=UncertaintyType::COMBINED)
 Get experimental uncertainty for an observable (id API).
 
scalar_t get_exp_uncertainty (BinnedObservableId id, UncertaintyType u_type=UncertaintyType::COMBINED)
 Get experimental uncertainty for an observable (id API).
 
scalar_t get_exp_uncertainty (ExperimentObs id, UncertaintyType u_type=UncertaintyType::COMBINED)
 Get experimental uncertainty for an observable (id API).
 
std::vector< BinnedObservableIdget_current_observables ()
 Return the set of currently registered observables.
 
std::shared_ptr< ObservableInterfaceclone_for_worker () const
 Build a fresh ObservableInterface with the same selected builtin observables.
 
DecayThreadSnapshot snapshot_decay_threads () const
 Snapshot thread settings for thread-configurable decays.
 
void set_all_decay_threads (size_t n_threads)
 Set every thread-configurable decay to the same value.
 
void restore_decay_threads (const DecayThreadSnapshot &snapshot)
 Restore a previous decay-thread snapshot.
 
std::map< ObservableId, std::vector< ObservableValue > > compute_all ()
 Compute all currently registered observables.
 
void set_param (const std::string &block, LhaID code, double value, ParameterType type)
 Set an input parameter in a given parameter space.
 
double get_param (const std::string &block, LhaID code, ParameterType type)
 Read an input parameter in a given parameter space.
 
std::unordered_set< ParamIdget_all_ops_deps (ObservableId id)
 Retrieve the full allow-list of parameter dependences for an observable (id API).
 
std::unordered_set< ParamIdget_all_ops_deps (Observables id)
 Retrieve the full allow-list of parameter dependences for an observable (enum API).
 
void reload_params ()
 Reload cached parameters for all registered decays.
 
void enable_obs ()
 Force enabling/re-enabling currently registered observables.
 
void set_decay_config (Decays dec, std::any config)
 Set configuration for a given decay.
 
void set_decay_threads (Decays dec, size_t n_threads)
 Set the thread option for any decay that supports it.
 
void set_bkstarll_threads (size_t n_threads)
 Set the thread option for the bkstarll decay.
 
void set_bkll_threads (size_t n_threads)
 Set the thread option for the bkll decay.
 
void set_bsphi_threads (size_t n_threads)
 Set the thread option for the bsphi decay.
 
void set_lblll_threads (size_t n_threads)
 Set the thread option for the Lambda_b -> Lambda l+ l- decay.
 
ObservablePortsConfigget_ports ()
 Access the underlying ports configuration (advanced use).
 

Detailed Description

Definition at line 72 of file ObservableInterface.h.

Constructor & Destructor Documentation

◆ ObservableInterface()

ObservableInterface::ObservableInterface ( )

Construct a ready-to-use observable interface.

The constructor builds a default "ports" configuration and instantiates an ObsManager with default decays enabled.

Concretely, it:

Warning
The default decays (and their default matching/hadronic scales) are initialized by ObsManager using values read from the SM/FLAVOR inputs. If you override parameters, call reload_params() or re-enable observables.

Definition at line 3 of file ObservableInterface.cpp.

Member Function Documentation

◆ add_custom_decay()

void ObservableInterface::add_custom_decay ( DecayId  id,
std::shared_ptr< DecayParent ptr 
)

Register a custom decay implementation.

This allows users to extend the set of computations by providing their own DecayParent subclass (typically implementing load_params() and compute_observable()).

The decay will be bound to the current Wilson builder through the manager.

Parameters
idUnique decay identifier.
ptrShared pointer to the decay implementation.
See also
ObsManager::add_custom_decay

Definition at line 25 of file ObservableInterface.cpp.

◆ add_lambda_decay()

ObservableInterface & ObservableInterface::add_lambda_decay ( LambdaDecayConfig  config,
bool  add_observables = true 
)

Register a complete custom decay backed by user lambdas.

This method is the high-level dynamic extension point for observables:

  • registers the custom DecayId and all custom ObservableId values,
  • installs any lambda-based custom Wilson groups declared in the config,
  • creates a LambdaDecay and adds it to the manager,
  • optionally selects all observables immediately.

The observable lambdas can then use LambdaDecay::W(), LambdaDecay::SM(), LambdaDecay::FLAVOR() and LambdaDecay::QCD() to access the same services as a compiled decay.

Parameters
configRuntime/custom decay configuration.
add_observablesIf true, all observables declared in config are added to the manager immediately.
Returns
Reference to *this for chaining.
See also
LambdaDecayConfig
LambdaObservableConfig

Definition at line 29 of file ObservableInterface.cpp.

◆ add_matching_patch()

ObservableInterface & ObservableInterface::add_matching_patch ( const WilsonMatchingPatch patch)

Add an additive Wilson matching patch through the observable layer.

Definition at line 82 of file ObservableInterface.cpp.

◆ add_observable() [1/3]

ObservableInterface & ObservableInterface::add_observable ( BinnedObservableId  obs,
QCDOrder  order,
bool  add_dependencies = false 
)

Add a binned observable to the manager (internal id API).

Parameters
obsObservable internal id.
orderMaximum QCD order requested for this decay.
add_dependenciesIf true, automatically adds the full allowed parameter dependence set for this observable.
Returns
Reference to *this for chaining.

Definition at line 101 of file ObservableInterface.cpp.

◆ add_observable() [2/3]

ObservableInterface & ObservableInterface::add_observable ( ObservableId  obs,
QCDOrder  order,
bool  add_dependencies = false 
)

Add an observable to the manager (internal id API).

Parameters
obsObservable internal id.
orderMaximum QCD order requested for this decay.
add_dependenciesIf true, automatically adds the full allowed parameter dependence set for this observable.
Returns
Reference to *this for chaining.

Definition at line 96 of file ObservableInterface.cpp.

◆ add_observable() [3/3]

ObservableInterface & ObservableInterface::add_observable ( Observables  obs,
QCDOrder  order,
bool  add_dependencies = false 
)

Add an observable to the manager (enum API).

Parameters
obsObservable enum.
orderMaximum QCD order requested for this decay.
add_dependenciesIf true, automatically adds the full allowed parameter dependence set for this observable (via DependenciesHelper).
Returns
Reference to *this for chaining.
Note
The order is stored at the decay level. If multiple observables from the same decay are added, the first effective order selection rules are handled by DecayParent::set_order() (see warnings there).

Definition at line 91 of file ObservableInterface.cpp.

◆ add_observable_parameter() [1/2]

void ObservableInterface::add_observable_parameter ( ObservableId  obs,
ParamId  pid 
)

Manually add a single parameter dependence to an observable (id API).

Parameters
obsObservable id.
pidParameter id to add.

Definition at line 172 of file ObservableInterface.cpp.

◆ add_observable_parameter() [2/2]

void ObservableInterface::add_observable_parameter ( Observables  obs,
ParamId  pid 
)

Manually add a single parameter dependence to an observable (enum API).

Dependences are used by downstream tooling (scans, profiling, likelihoods) to know which parameters should trigger recomputation.

Parameters
obsObservable enum.
pidParameter id to add.
Note
The manager may ignore unsupported dependences based on allow-lists.

Definition at line 168 of file ObservableInterface.cpp.

◆ add_observable_parameters() [1/2]

void ObservableInterface::add_observable_parameters ( ObservableId  obs,
std::unordered_set< ParamId pids 
)

Manually add multiple parameter dependences to an observable (id API).

Parameters
obsObservable id.
pidsSet of parameter ids to add.

Definition at line 180 of file ObservableInterface.cpp.

◆ add_observable_parameters() [2/2]

void ObservableInterface::add_observable_parameters ( Observables  obs,
std::unordered_set< ParamId pids 
)

Manually add multiple parameter dependences to an observable (enum API).

Parameters
obsObservable enum.
pidsSet of parameter ids to add.

Definition at line 176 of file ObservableInterface.cpp.

◆ add_observables() [1/4]

void ObservableInterface::add_observables ( DecayId  decay,
QCDOrder  order,
bool  add_dependencies = false,
std::pair< double, double >  bin = {1.0, 6.0} 
)

Add all observables belonging to a decay.

Parameters
decayDecay dynamic enum.
orderMaximum QCD order requested for this decay.
add_dependenciesIf true, add allowed dependences for each observable.
binq² bin to attach when the decay is binned; ignored otherwise.

Definition at line 138 of file ObservableInterface.cpp.

◆ add_observables() [2/4]

void ObservableInterface::add_observables ( Decays  decay,
QCDOrder  order,
bool  add_dependencies = false,
std::pair< double, double >  bin = {1.0, 6.0} 
)

Add all observables belonging to a decay.

Parameters
decayDecay enum.
orderMaximum QCD order requested for this decay.
add_dependenciesIf true, add allowed dependences for each observable.
binq² bin to attach when the decay is binned; ignored otherwise.

Definition at line 124 of file ObservableInterface.cpp.

◆ add_observables() [3/4]

void ObservableInterface::add_observables ( std::map< ObservableId, QCDOrder obss,
bool  add_dependencies = false 
)

Add multiple observables at once (internal id map).

Parameters
obssMap (observable id -> QCD order).
add_dependenciesIf true, add allowed dependences for each observable.

Definition at line 117 of file ObservableInterface.cpp.

◆ add_observables() [4/4]

void ObservableInterface::add_observables ( std::map< Observables, QCDOrder obss,
bool  add_dependencies = false 
)

Add multiple observables at once (enum map).

Parameters
obssMap (observable -> QCD order).
add_dependenciesIf true, add allowed dependences for each observable.

Definition at line 109 of file ObservableInterface.cpp.

◆ addMatchingPatch()

ObservableInterface & ObservableInterface::addMatchingPatch ( const WilsonMatchingPatch patch)

Camel-case alias for add_matching_patch.

Definition at line 87 of file ObservableInterface.cpp.

◆ clone_for_worker()

std::shared_ptr< ObservableInterface > ObservableInterface::clone_for_worker ( ) const

Build a fresh ObservableInterface with the same selected builtin observables.

The worker copy owns a distinct ObsManager, decays, Wilson builder and ports. It is intended for isolated Monte-Carlo worker evaluation.

Definition at line 253 of file ObservableInterface.cpp.

◆ compute_all()

std::map< ObservableId, std::vector< ObservableValue > > ObservableInterface::compute_all ( )

Compute all currently registered observables.

Returns
Map (observable id -> vector of predicted values).
Note
Each observable may return multiple entries (binned results).

Definition at line 284 of file ObservableInterface.cpp.

◆ compute_observable() [1/3]

ObservableValue ObservableInterface::compute_observable ( BinnedObservableId  obs) const

Compute a theory prediction for an observable (id API).

Parameters
obsObservable id with its bin.
Returns
Predicted value.

Definition at line 192 of file ObservableInterface.cpp.

◆ compute_observable() [2/3]

std::vector< ObservableValue > ObservableInterface::compute_observable ( ObservableId  obs) const

Compute a theory prediction for an observable (id API).

Parameters
obsObservable id.
Returns
Vector of predicted values (possibly binned).

Definition at line 188 of file ObservableInterface.cpp.

◆ compute_observable() [3/3]

std::vector< ObservableValue > ObservableInterface::compute_observable ( Observables  obs) const

Compute a theory prediction for an observable (enum API).

Returns a list of ObservableValue:

  • for unbinned observables: typically a vector of size 1,
  • for binned observables: one entry per bin, with ObservableValue::bin set.

This call triggers:

  • selecting/enabling the corresponding decay,
  • ensuring Wilson blocks are built (for needed groups) and frozen otherwise,
  • calling the decay’s compute_observable().
Parameters
obsObservable enum.
Returns
Vector of predicted values (possibly binned).
See also
ObservableValue
ObsManager::evaluate

Definition at line 184 of file ObservableInterface.cpp.

◆ enable_obs()

void ObservableInterface::enable_obs ( )

Force enabling/re-enabling currently registered observables.

This will trigger decay enabling logic in the manager so that Wilson blocks and decay internals are in a consistent state. Useful after large configuration changes or when adding multiple observables.

Definition at line 309 of file ObservableInterface.cpp.

◆ get_all_ops_deps() [1/2]

std::unordered_set< ParamId > ObservableInterface::get_all_ops_deps ( ObservableId  id)

Retrieve the full allow-list of parameter dependences for an observable (id API).

Parameters
idObservable id.
Returns
Set of allowed parameter ids for this observable.

Definition at line 297 of file ObservableInterface.cpp.

◆ get_all_ops_deps() [2/2]

std::unordered_set< ParamId > ObservableInterface::get_all_ops_deps ( Observables  id)

Retrieve the full allow-list of parameter dependences for an observable (enum API).

Parameters
idObservable enum.
Returns
Set of allowed parameter ids for this observable.

Definition at line 301 of file ObservableInterface.cpp.

◆ get_current_observables()

std::vector< BinnedObservableId > ObservableInterface::get_current_observables ( )

Return the set of currently registered observables.

Returns
Set of observable ids currently stored in the manager.

Definition at line 249 of file ObservableInterface.cpp.

◆ get_exp_uncertainty() [1/4]

scalar_t ObservableInterface::get_exp_uncertainty ( BinnedObservableId  id,
UncertaintyType  u_type = UncertaintyType::COMBINED 
)

Get experimental uncertainty for an observable (id API).

Parameters
idObservable id with bins.
u_typeType of uncertainty requested.
Returns
Experimental uncertainty.

Definition at line 241 of file ObservableInterface.cpp.

◆ get_exp_uncertainty() [2/4]

scalar_t ObservableInterface::get_exp_uncertainty ( ExperimentObs  id,
UncertaintyType  u_type = UncertaintyType::COMBINED 
)

Get experimental uncertainty for an observable (id API).

Parameters
idObservable id with bins and experience name.
u_typeType of uncertainty requested.
Returns
Experimental uncertainty.

Definition at line 245 of file ObservableInterface.cpp.

◆ get_exp_uncertainty() [3/4]

scalar_t ObservableInterface::get_exp_uncertainty ( ObservableId  id,
UncertaintyType  u_type = UncertaintyType::COMBINED 
)

Get experimental uncertainty for an observable (id API).

Parameters
idObservable id.
u_typeType of uncertainty requested.
Returns
Experimental uncertainty.

Definition at line 237 of file ObservableInterface.cpp.

◆ get_exp_uncertainty() [4/4]

scalar_t ObservableInterface::get_exp_uncertainty ( Observables  id,
UncertaintyType  u_type = UncertaintyType::COMBINED 
)

Get experimental uncertainty for an observable (enum API).

Parameters
idObservable enum.
u_typeType of uncertainty requested (combined/stat/syst, etc.).
Returns
Experimental uncertainty (provider-defined).

Definition at line 233 of file ObservableInterface.cpp.

◆ get_exp_value() [1/4]

scalar_t ObservableInterface::get_exp_value ( BinnedObservableId  id)

Get experimental central value for an observable (id API).

Parameters
idObservable id with bin.
Returns
Experimental central value.

Definition at line 225 of file ObservableInterface.cpp.

◆ get_exp_value() [2/4]

scalar_t ObservableInterface::get_exp_value ( ExperimentObs  id)

Get experimental central value for an observable (id API).

Parameters
idObservable id with bin and experience name.
Returns
Experimental central value.

Definition at line 229 of file ObservableInterface.cpp.

◆ get_exp_value() [3/4]

scalar_t ObservableInterface::get_exp_value ( ObservableId  id)

Get experimental central value for an observable (id API).

Parameters
idObservable id.
Returns
Experimental central value.

Definition at line 221 of file ObservableInterface.cpp.

◆ get_exp_value() [4/4]

scalar_t ObservableInterface::get_exp_value ( Observables  id)

Get experimental central value for an observable (enum API).

Reads from the observable parameter space (typically block "FOBS") using the observable proxy stored in Observable.

Parameters
idObservable enum.
Returns
Experimental central value (if present, provider-defined otherwise).

Definition at line 217 of file ObservableInterface.cpp.

◆ get_param()

double ObservableInterface::get_param ( const std::string &  block,
LhaID  code,
ParameterType  type 
)

Read an input parameter in a given parameter space.

Parameters
blockParameter block name.
codeLHA-like code inside the block.
typeParameterType namespace.
Returns
Parameter value.

Definition at line 293 of file ObservableInterface.cpp.

◆ get_ports()

ObservablePortsConfig & ObservableInterface::get_ports ( )

Access the underlying ports configuration (advanced use).

This exposes the proxies/builder/freezer used by the observable layer and is mainly intended for advanced workflows (custom decays, diagnostics, profiling).

Returns
Reference to the manager-owned ports configuration.

Definition at line 316 of file ObservableInterface.cpp.

◆ is_decay_binned() [1/2]

bool ObservableInterface::is_decay_binned ( DecayId  decay) const

Return whether this decay has at least one observable requiring q² bins.

Definition at line 156 of file ObservableInterface.cpp.

◆ is_decay_binned() [2/2]

bool ObservableInterface::is_decay_binned ( Decays  decay) const

Return whether this decay has at least one observable requiring q² bins.

Definition at line 152 of file ObservableInterface.cpp.

◆ is_observable_binned() [1/2]

bool ObservableInterface::is_observable_binned ( ObservableId  obs) const

Return whether a specific observable requires q² bins.

Definition at line 164 of file ObservableInterface.cpp.

◆ is_observable_binned() [2/2]

bool ObservableInterface::is_observable_binned ( Observables  obs) const

Return whether a specific observable requires q² bins.

Definition at line 160 of file ObservableInterface.cpp.

◆ reload_params()

void ObservableInterface::reload_params ( )

Reload cached parameters for all registered decays.

Calls DecayParent::load_params() on each decay, refreshing internal cached masses/form factors/etc. from the current parameter providers.

This is typically used after changing input parameters via set_param().

Definition at line 305 of file ObservableInterface.cpp.

◆ remove_observable() [1/2]

void ObservableInterface::remove_observable ( ObservableId  id)

Remove an observable from the manager (id API).

Parameters
idObservable id.

Definition at line 200 of file ObservableInterface.cpp.

◆ remove_observable() [2/2]

void ObservableInterface::remove_observable ( Observables  id)

Remove an observable from the manager (enum API).

Parameters
idObservable enum.

Definition at line 196 of file ObservableInterface.cpp.

◆ remove_observables() [1/2]

void ObservableInterface::remove_observables ( Decays  dec)

Remove all observables attached to a given decay.

Parameters
decDecay enum.

Definition at line 211 of file ObservableInterface.cpp.

◆ remove_observables() [2/2]

void ObservableInterface::remove_observables ( std::unordered_set< Observables ids)

Remove several observables (enum set).

Parameters
idsSet of observable enums.

Definition at line 204 of file ObservableInterface.cpp.

◆ restore_decay_threads()

void ObservableInterface::restore_decay_threads ( const DecayThreadSnapshot snapshot)

Restore a previous decay-thread snapshot.

Definition at line 280 of file ObservableInterface.cpp.

◆ set_all_decay_threads()

void ObservableInterface::set_all_decay_threads ( size_t  n_threads)

Set every thread-configurable decay to the same value.

Definition at line 276 of file ObservableInterface.cpp.

◆ set_bkll_threads()

void ObservableInterface::set_bkll_threads ( size_t  n_threads)

Set the thread option for the bkll decay.

Because bkll is one of the most time consuming calculation, multithreading is focused on it to improve calculation speed.

Parameters
n_threadsNumber of threads.

Definition at line 322 of file ObservableInterface.cpp.

◆ set_bkstarll_threads()

void ObservableInterface::set_bkstarll_threads ( size_t  n_threads)

Set the thread option for the bkstarll decay.

Because bkstarll is the more time consuming calculation, multithreading is focused on it to improve calculation speed.

Parameters
n_threadsNumber of threads.

Definition at line 320 of file ObservableInterface.cpp.

◆ set_bsphi_threads()

void ObservableInterface::set_bsphi_threads ( size_t  n_threads)

Set the thread option for the bsphi decay.

Because bsphi is one of the most time consuming calculation, multithreading is focused on it to improve calculation speed.

Parameters
n_threadsNumber of threads.

Definition at line 324 of file ObservableInterface.cpp.

◆ set_decay_config()

void ObservableInterface::set_decay_config ( Decays  dec,
std::any  config 
)

Set configuration for a given decay.

The config is passed as std::any and interpreted by the decay implementation (see DecayParentConfigurable<T>).

Parameters
decDecay enum.
configAny-typed configuration payload.
Exceptions
std::bad_any_castif the decay expects a different config type.

Definition at line 312 of file ObservableInterface.cpp.

◆ set_decay_threads()

void ObservableInterface::set_decay_threads ( Decays  dec,
size_t  n_threads 
)

Set the thread option for any decay that supports it.

Passing 0 delegates to std::thread::hardware_concurrency for supported decays. Unsupported decays keep their default behavior and emit a warning.

Parameters
decDecay enum.
n_threadsNumber of threads.

Definition at line 318 of file ObservableInterface.cpp.

◆ set_lblll_threads()

void ObservableInterface::set_lblll_threads ( size_t  n_threads)

Set the thread option for the Lambda_b -> Lambda l+ l- decay.

Parameters
n_threadsNumber of threads.

Definition at line 326 of file ObservableInterface.cpp.

◆ set_param()

void ObservableInterface::set_param ( const std::string &  block,
LhaID  code,
double  value,
ParameterType  type 
)

Set an input parameter in a given parameter space.

This is a convenience wrapper around the global Parameters singleton for interactive use.

Parameters
blockParameter block name.
codeLHA-like code inside the block.
valueNew value.
typeParameterType namespace (SM/BSM/FLAVOR/WILSON/OBSERVABLE/etc.).
Warning
After setting parameters, cached decay parameters may need refresh. Use reload_params() and/or enable_obs() depending on your workflow.

Definition at line 289 of file ObservableInterface.cpp.

◆ snapshot_decay_threads()

DecayThreadSnapshot ObservableInterface::snapshot_decay_threads ( ) const

Snapshot thread settings for thread-configurable decays.

Definition at line 272 of file ObservableInterface.cpp.


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