class Gambit::ColliderBit::xsec_container

A base class for holding cross-section info within ColliderBit.

#include <xsec.hpp>

Inherited by Gambit::ColliderBit::MC_xsec_container, Gambit::ColliderBit::PID_pair_xsec_container, Gambit::ColliderBit::process_xsec_container

Public Functions

Name
xsec_container()
Constructor.
virtual~xsec_container()
voidreset()
Reset this instance for reuse.
doubleoperator()() const
Return the full cross-section (in fb).
doublexsec() const
doublexsec_err() const
Return the cross-section error (in fb).
doublexsec_relerr() const
Return the cross-section relative error.
voidset_xsec(double xs, double xserr)
Set the cross-section and its error (in fb).
voidaverage_xsec(double other_xsec, double other_xsecerr)
Average cross-sections and combine errors.
voidaverage_xsec(const xsec_container & other)
voidsum_xsecs(double other_xsec, double other_xsecerr)
Sum cross-sections and add errors in quadrature.
voidsum_xsecs(const xsec_container & other)
std::map< std::string, double >get_content_as_map() const
Get content as map <string,double> map (for easy printing).
voidset_info_string(std::string info_string_in)
Set the info string.
std::stringinfo_string() const
Get the info string.
voidset_trust_level(int trust_level_in)
Set the trust level.
inttrust_level() const
Get the trust level.

Public Attributes

Name
const std::stringunit
String Let’s make it clear that we work with fb as unit.

Protected Attributes

Name
double_xsec
double_xsecerr
std::string_info_string
int_trust_level

Public Functions Documentation

function xsec_container

xsec_container()

Constructor.

Definitions of xsec members

function ~xsec_container

inline virtual ~xsec_container()

function reset

void reset()

Reset this instance for reuse.

Public method to reset this instance for reuse, avoiding the need for “new” or “delete”.

function operator()

double operator()() const

Return the full cross-section (in fb).

Return the cross-section (in fb).

function xsec

double xsec() const

function xsec_err

double xsec_err() const

Return the cross-section error (in fb).

function xsec_relerr

double xsec_relerr() const

Return the cross-section relative error.

function set_xsec

void set_xsec(
    double xs,
    double xserr
)

Set the cross-section and its error (in fb).

function average_xsec

void average_xsec(
    double other_xsec,
    double other_xsecerr
)

Average cross-sections and combine errors.

function average_xsec

void average_xsec(
    const xsec_container & other
)

function sum_xsecs

void sum_xsecs(
    double other_xsec,
    double other_xsecerr
)

Sum cross-sections and add errors in quadrature.

function sum_xsecs

void sum_xsecs(
    const xsec_container & other
)

function get_content_as_map

std::map< std::string, double > get_content_as_map() const

Get content as map <string,double> map (for easy printing).

Get content as a <string,double> map (for easy printing).

function set_info_string

void set_info_string(
    std::string info_string_in
)

Set the info string.

function info_string

std::string info_string() const

Get the info string.

function set_trust_level

void set_trust_level(
    int trust_level_in
)

Set the trust level.

function trust_level

int trust_level() const

Get the trust level.

Get the info string.

Public Attributes Documentation

variable unit

static const std::string unit = "fb";

String Let’s make it clear that we work with fb as unit.

Set the unit string.

Protected Attributes Documentation

variable _xsec

double _xsec;

variable _xsecerr

double _xsecerr;

variable _info_string

std::string _info_string;

variable _trust_level

int _trust_level;

Updated on 2023-06-26 at 21:36:52 +0000