|
Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
|
Identifies an observable in the context of a specific experiment. More...
#include <ExperimentObs.h>

Public Member Functions | |
| ExperimentObs ()=default | |
| Default constructor. | |
| ExperimentObs (std::string exp, BinnedObservableId o) | |
| Constructs an experiment-specific binned observable. | |
| ExperimentObs (std::string exp, ObservableId o) | |
| Constructs an experiment-specific unbinned observable. | |
| ExperimentObs (std::string exp, Observables o) | |
| Constructs an experiment-specific observable from an enum value. | |
| bool | operator== (ExperimentObs const &other) const noexcept |
| Equality comparison operator. | |
| bool | operator< (ExperimentObs const &other) const noexcept |
| Strict weak ordering for experiment-specific observables. | |
| std::string | str () const |
| Returns a human-readable representation of the object. | |
Public Attributes | |
| std::string | experiment |
| BinnedObservableId | obs |
Identifies an observable in the context of a specific experiment.
ExperimentObs combines the name of an experiment with a binned observable identifier. It can distinguish measurements of the same observable performed by different experiments, or measurements belonging to different experimental contexts.
The observable part is stored as a BinnedObservableId. Convenience constructors are provided for already-binned observables, plain ObservableId values, and Observables enum values. In the latter two cases, the bin boundaries are initialized to {0.0, 0.0}.
The type supports equality comparison, lexicographic ordering, hashing, and human-readable string formatting.
Definition at line 32 of file ExperimentObs.h.
|
default |
Default constructor.
Leaves the experiment name and observable identifier default-initialized.
|
inline |
Constructs an experiment-specific binned observable.
| exp | Name or label of the experiment. |
| o | Binned observable identifier. |
Definition at line 49 of file ExperimentObs.h.
|
inline |
Constructs an experiment-specific unbinned observable.
The observable is wrapped into a BinnedObservableId with bin boundaries set to {0.0, 0.0}.
| exp | Name or label of the experiment. |
| o | Observable identifier. |
Definition at line 61 of file ExperimentObs.h.
|
inline |
Constructs an experiment-specific observable from an enum value.
The observable enum value is converted to an ObservableId through ObservableMapper::to_id and wrapped into a BinnedObservableId with bin boundaries set to {0.0, 0.0}.
| exp | Name or label of the experiment. |
| o | Observable enum value. |
Definition at line 74 of file ExperimentObs.h.
|
inlinenoexcept |
Strict weak ordering for experiment-specific observables.
Ordering is lexicographic on the experiment label and then on the binned observable identifier. This allows the type to be used as a key in ordered containers such as std::map or std::set.
| other | Object to compare with. |
other. Definition at line 102 of file ExperimentObs.h.
|
inlinenoexcept |
Equality comparison operator.
Two ExperimentObs objects are equal if and only if both their experiment labels and their binned observable identifiers are equal.
| other | Object to compare with. |
Definition at line 87 of file ExperimentObs.h.
|
inline |
Returns a human-readable representation of the object.
Definition at line 112 of file ExperimentObs.h.
| std::string ExperimentObs::experiment |
Name or label of the experiment.
Definition at line 33 of file ExperimentObs.h.
| BinnedObservableId ExperimentObs::obs |
Observable identifier, including optional bin information.
Definition at line 34 of file ExperimentObs.h.