class Gambit::FlavBit::Flav_reader

Reader class for FlavBit YAML database.

#include <Flav_reader.hpp>

Public Functions

Name
Flav_reader(str loc)
Constructor that takes the location of the database as an argument.
voidread_yaml(str name)
Read the entire database into memory.
voidread_yaml_measurement(str name, str measurement_name)
Read a single measurement from the database into memory.
voidinitialise_matrices()
Compute the covariance matrix and populate the measurement and theory error vectors.
voidprint_matrix(boost::numeric::ublas::matrix< double > & M, str name, bool is_true_matrix =true)
Print a boost ublas matrix.
voidprint_matrix(boost::numeric::ublas::matrix< std::pair< double, bool > > & M, str name, bool is_true_matrix =true)
Print a boost ublas matrix with a pair type.
voiddebug_mode(bool k)
Set debug mode for reader.
boost::numeric::ublas::matrix< double >get_exp_cov()
Return the covariance matrix.
boost::numeric::ublas::matrix< double >get_exp_value()
Return the experimental central values.
boost::numeric::ublas::matrix< std::pair< double, bool > >get_th_err()
Return the (uncorrelated) theory errors.
doubleget_error_from_confidence_levels(double exp_value, double CL_90, double CL_95, bool one_sided)
Calculates the experimental statistical error from confidence levels.

Public Attributes

Name
intnumber_measurements

Public Functions Documentation

function Flav_reader

Flav_reader(
    str loc
)

Constructor that takes the location of the database as an argument.

function read_yaml

void read_yaml(
    str name
)

Read the entire database into memory.

function read_yaml_measurement

void read_yaml_measurement(
    str name,
    str measurement_name
)

Read a single measurement from the database into memory.

function initialise_matrices

void initialise_matrices()

Compute the covariance matrix and populate the measurement and theory error vectors.

function print_matrix

void print_matrix(
    boost::numeric::ublas::matrix< double > & M,
    str name,
    bool is_true_matrix =true
)

Print a boost ublas matrix.

function print_matrix

void print_matrix(
    boost::numeric::ublas::matrix< std::pair< double, bool > > & M,
    str name,
    bool is_true_matrix =true
)

Print a boost ublas matrix with a pair type.

function debug_mode

inline void debug_mode(
    bool k
)

Set debug mode for reader.

function get_exp_cov

inline boost::numeric::ublas::matrix< double > get_exp_cov()

Return the covariance matrix.

function get_exp_value

inline boost::numeric::ublas::matrix< double > get_exp_value()

Return the experimental central values.

function get_th_err

inline boost::numeric::ublas::matrix< std::pair< double, bool > > get_th_err()

Return the (uncorrelated) theory errors.

function get_error_from_confidence_levels

static double get_error_from_confidence_levels(
    double exp_value,
    double CL_90,
    double CL_95,
    bool one_sided
)

Calculates the experimental statistical error from confidence levels.

Public Attributes Documentation

variable number_measurements

int number_measurements;

Updated on 2024-07-18 at 13:53:31 +0000