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

Container for a computed observable value, optionally binned. More...

#include <ObservableValue.h>

Collaboration diagram for ObservableValue:

Public Member Functions

 ObservableValue (ObservableId id, double value)
 Construct an unbinned observable value.
 
 ObservableValue (ObservableId id, double value, std::pair< double, double > bin)
 Construct a binned observable value.
 

Public Attributes

ObservableId id
 Identifier of the observable.
 
double value
 Central numerical value of the observable.
 
std::optional< std::pair< double, double > > bin
 Optional bin definition (lower, upper).
 

Detailed Description

Container for a computed observable value, optionally binned.

This structure represents the numerical result of an observable computation. It stores:

  • the observable identifier,
  • the central value,
  • an optional kinematic bin (e.g. q² range).

It is designed to be lightweight and trivially copyable, suitable for:

  • returning results from observable evaluators,
  • collecting results in vectors or maps,
  • passing values to likelihood / fit layers.

Typical usage:

ObservableValue br(BR_B_to_Xs_gamma, 3.36e-4);
AFB_B_to_Kstarmumu,
-0.12,
{1.0, 6.0} // q^2 bin
);
Container for a computed observable value, optionally binned.
See also
ObservableId

Definition at line 38 of file ObservableValue.h.

Constructor & Destructor Documentation

◆ ObservableValue() [1/2]

ObservableValue::ObservableValue ( ObservableId  id,
double  value 
)
inline

Construct an unbinned observable value.

Parameters
idObservable identifier.
valueCentral value.

Definition at line 53 of file ObservableValue.h.

◆ ObservableValue() [2/2]

ObservableValue::ObservableValue ( ObservableId  id,
double  value,
std::pair< double, double >  bin 
)
inline

Construct a binned observable value.

Parameters
idObservable identifier.
valueCentral value.
binKinematic bin (lower, upper).

Definition at line 61 of file ObservableValue.h.

Member Data Documentation

◆ bin

std::optional<std::pair<double, double> > ObservableValue::bin

Optional bin definition (lower, upper).

Definition at line 46 of file ObservableValue.h.

◆ id

ObservableId ObservableValue::id

Identifier of the observable.

Definition at line 40 of file ObservableValue.h.

◆ value

double ObservableValue::value

Central numerical value of the observable.

Definition at line 43 of file ObservableValue.h.


The documentation for this struct was generated from the following file: