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

Decay parent for the exclusive B > K* l+ l- decays. Implements the integrated branching ratio and angular observables in several q² bins, as well as the forward-backward asymmetry of the decay. More...

#include <BKstarGammaDecay.h>

Inheritance diagram for BKstarGammaDecay:
Collaboration diagram for BKstarGammaDecay:

Public Member Functions

 BKstarGammaDecay (QCDOrder order, double matching_scale, double hadronic_scale, ObservablePortsConfig &ports)
 
void load_params () override
 Load and cache parameters needed by this decay.
 
std::vector< ObservableValuecompute_observable (Observables obs) override
 Compute an observable given a public observable enum.
 
std::vector< ObservableValuecompute_observable (ObservableId obs) override
 Compute an observable given an internal observable identifier.
 
void set_config_spe (BKstarGammaConfig config) override
 Strongly-typed configuration setter to implement in derived classes.
 
std::any get_config () const override
 Return the current decay configuration when the decay has one.
 
- Public Member Functions inherited from DecayParentConfigurable< BKstarGammaConfig >
 DecayParentConfigurable (DecayId id, double matching_scale, double hadronic_scale, QCDOrder order, ObservablePortsConfig &ports)
 Construct a configurable decay module.
 
void set_config (std::any cfg) final override
 Type-erased config setter (final).
 
- Public Member Functions inherited from DecayParent
virtual ~DecayParent ()=default
 
 DecayParent (DecayId custom_id, double matching_scale, double hadronic_scale, QCDOrder order, ObservablePortsConfig &ports)
 Construct a decay module and bind it to the observable ports.
 
void bind_wilson_builder (std::shared_ptr< IObsWilsonBuilder > &wilson_builder)
 Bind a Wilson builder to this decay.
 
void enable ()
 Enable the decay module (build Wilson groups and load parameters).
 
void disable ()
 Disable the decay module.
 
void set_order (QCDOrder new_order)
 Set the QCD order for this decay (one-shot policy).
 
virtual void set_n_threads (size_t n_threads)
 Set the number of worker threads used by decays that support parallel cache filling.
 
virtual size_t get_n_threads () const
 Return the currently configured worker-thread count.
 
virtual bool supports_thread_config () const
 Whether this decay supports runtime thread configuration.
 
void set_bins (std::vector< std::pair< double, double > > new_bins)
 Set the binning for the observables related to this decay.
 
void add_bin (std::pair< double, double > new_bin)
 Adds a bin to the observables related to this decay.
 
std::optional< std::vector< std::pair< double, double > > > get_bins ()
 Returns the current binning of the decay.
 
DecayId get_id ()
 Return the decay identifier.
 
QCDOrder get_order () const
 Return the currently configured QCD order for this decay.
 
bool is_enabled () const
 Return whether the decay has already been enabled.
 
bool is_binned () const
 Return whether this decay has at least one observable requiring q² bins.
 
virtual bool is_observable_binned (ObservableId) const
 Return whether one observable of this decay requires q² bins.
 
virtual bool is_observable_binned (Observables obs) const
 Convenience overload for public observable enum ids.
 

Protected Member Functions

void fill_wilson_cache ()
 
void load_cfg_dependent_params ()
 
void set_cfg_flags (BKstarGammaConfig::B_Charge charge)
 
complex_t H_V (double sign, bool bar)
 
complex_t K1 ()
 
complex_t K2 (int q)
 
double BR ()
 
double delta_0 ()
 
- Protected Member Functions inherited from DecayParent
QCDOrder check_max_order (QCDOrder order) const
 Clamp a requested QCD order to this decay's supported maximum.
 

Additional Inherited Members

- Protected Attributes inherited from DecayParent
QCDOrder max_order = QCDOrder::LO
 Maximum QCD order supported by this decay module (default: LO).
 
ObservablePortsConfigports
 Reference to the ports/configuration wiring this decay to the framework.
 
std::shared_ptr< IObsWilsonBuilderw_builder
 Wilson builder used to build/add Wilson groups for this decay.
 
std::shared_ptr< IObsWilsonProxyw_proxy
 Wilson proxy used at compute-time to query coefficients (matching/run).
 
std::shared_ptr< IObsCoreAPI< bool > > use_marty
 Port exposing whether the MARTY backend is active.
 
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< IObsQCDProxyiobs_qcdp
 QCD proxy (alpha_s, running masses, constants...).
 
std::shared_ptr< IWilsonFreezer< WGroupId > > iobs_wfreezer
 Freezer to freeze/unfreeze Wilson blocks when they are not needed by active decays.
 
std::shared_ptr< ObsWilsonHelperw_helper
 Per-manager Wilson lifecycle helper.
 
WilsonBuildConfig w_config {}
 Wilson build configuration used when enabling this decay (scales, order, groups).
 
bool enabled {false}
 Whether the decay is enabled (i.e. Wilson groups built and parameters loaded).
 
bool binned {false}
 Whether this decay requires q² bins before its observables can be computed.
 
DecayId id
 Unique decay identifier.
 
std::optional< std::vector< std::pair< double, double > > > bins
 Optional q^2 bins.
 

Detailed Description

Decay parent for the exclusive B > K* l+ l- decays. Implements the integrated branching ratio and angular observables in several q² bins, as well as the forward-backward asymmetry of the decay.

Definition at line 44 of file BKstarGammaDecay.h.

Constructor & Destructor Documentation

◆ BKstarGammaDecay()

BKstarGammaDecay::BKstarGammaDecay ( QCDOrder  order,
double  matching_scale,
double  hadronic_scale,
ObservablePortsConfig ports 
)
inline

Definition at line 46 of file BKstarGammaDecay.h.

Member Function Documentation

◆ BR()

double BKstarGammaDecay::BR ( )
protected

Definition at line 179 of file BKstarGammaDecay.cpp.

◆ compute_observable() [1/2]

std::vector< ObservableValue > BKstarGammaDecay::compute_observable ( ObservableId  obs)
overridevirtual

Compute an observable given an internal observable identifier.

Parameters
obsInternal observable id.
Returns
One or more results as ObservableValue.

Implements DecayParent.

Definition at line 63 of file BKstarGammaDecay.cpp.

◆ compute_observable() [2/2]

std::vector< ObservableValue > BKstarGammaDecay::compute_observable ( Observables  obs)
overridevirtual

Compute an observable given a public observable enum.

Parameters
obsObservable enum id.
Returns
One or more results as ObservableValue.
Note
Some observables are binned; return multiple values or fill ObservableValue::bin.

Implements DecayParent.

Definition at line 37 of file BKstarGammaDecay.cpp.

◆ delta_0()

double BKstarGammaDecay::delta_0 ( )
protected

Definition at line 187 of file BKstarGammaDecay.cpp.

◆ fill_wilson_cache()

void BKstarGammaDecay::fill_wilson_cache ( )
protected

Definition at line 67 of file BKstarGammaDecay.cpp.

◆ get_config()

std::any BKstarGammaDecay::get_config ( ) const
inlineoverridevirtual

Return the current decay configuration when the decay has one.

The base implementation returns an empty std::any. Configurable decays that keep runtime options, such as form-factor source or internal thread count, override this so ObservableInterface worker clones can reproduce the same physics setup as the parent interface.

Reimplemented from DecayParent.

Definition at line 56 of file BKstarGammaDecay.h.

◆ H_V()

complex_t BKstarGammaDecay::H_V ( double  sign,
bool  bar 
)
protected

Definition at line 138 of file BKstarGammaDecay.cpp.

◆ K1()

complex_t BKstarGammaDecay::K1 ( )
protected

Definition at line 151 of file BKstarGammaDecay.cpp.

◆ K2()

complex_t BKstarGammaDecay::K2 ( int  q)
protected

Definition at line 165 of file BKstarGammaDecay.cpp.

◆ load_cfg_dependent_params()

void BKstarGammaDecay::load_cfg_dependent_params ( )
protected

Definition at line 105 of file BKstarGammaDecay.cpp.

◆ load_params()

void BKstarGammaDecay::load_params ( )
overridevirtual

Load and cache parameters needed by this decay.

Derived classes should read all relevant inputs through the proxies (e.g. p, w_proxy, iobs_qcdp) and store them internally.

This is called by enable after Wilson has been built and the proxy is ready.

Implements DecayParent.

Definition at line 5 of file BKstarGammaDecay.cpp.

◆ set_cfg_flags()

void BKstarGammaDecay::set_cfg_flags ( BKstarGammaConfig::B_Charge  charge)
protected

Definition at line 131 of file BKstarGammaDecay.cpp.

◆ set_config_spe()

void BKstarGammaDecay::set_config_spe ( BKstarGammaConfig  config)
inlineoverridevirtual

Strongly-typed configuration setter to implement in derived classes.

Parameters
configParsed configuration object.

Implements DecayParentConfigurable< BKstarGammaConfig >.

Definition at line 55 of file BKstarGammaDecay.h.


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