class Gambit::ColliderBit::MC_xsec_container
A class for holding a total cross-section calculated via MC across multiple threads.
#include <xsec.hpp>
Inherits from Gambit::ColliderBit::xsec_container
Public Functions
Name | |
---|---|
MC_xsec_container() Constructor. | |
virtual | ~MC_xsec_container() |
void | reset() Reset this instance for reuse. |
void | log_event() Tell the xsec object that there has been a new event. |
long long | num_events() const Return the total number of events seen so far. |
double | xsec_per_event() const Return the cross-section per event seen (in fb). |
void | set_num_events(long long n) Set the total number of events seen so far. |
void | average_xsec(double other_xsec, double other_xsecerr, long long other_ntot) Average cross-sections and combine errors. |
void | average_xsec(const MC_xsec_container & other) |
void | sum_xsecs(double other_xsec, double other_xsecerr, long long other_ntot) Sum cross-sections and add errors in quadrature. |
void | sum_xsecs(const MC_xsec_container & other) |
void | gather_xsecs() Collect xsec predictions from other threads and do a weighted combination. |
void | gather_num_events() Collect total events seen on all threads. |
std::map< std::string, double > | get_content_as_map() const Get content as map <string,double> map (for easy printing). |
Additional inherited members
Public Functions inherited from Gambit::ColliderBit::xsec_container
Name | |
---|---|
xsec_container() Constructor. | |
virtual | ~xsec_container() |
double | operator()() const Return the full cross-section (in fb). |
double | xsec() const |
double | xsec_err() const Return the cross-section error (in fb). |
double | xsec_relerr() const Return the cross-section relative error. |
void | set_xsec(double xs, double xserr) Set the cross-section and its error (in fb). |
void | set_info_string(std::string info_string_in) Set the info string. |
std::string | info_string() const Get the info string. |
void | set_trust_level(int trust_level_in) Set the trust level. |
int | trust_level() const Get the trust level. |
Public Attributes inherited from Gambit::ColliderBit::xsec_container
Name | |
---|---|
const std::string | unit String Let’s make it clear that we work with fb as unit. |
Protected Attributes inherited from Gambit::ColliderBit::xsec_container
Name | |
---|---|
double | _xsec |
double | _xsecerr |
std::string | _info_string |
int | _trust_level |
Public Functions Documentation
function MC_xsec_container
MC_xsec_container()
Constructor.
Definitions of MC_xsec_container members
function ~MC_xsec_container
inline virtual ~MC_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 log_event
void log_event()
Tell the xsec object that there has been a new event.
Increment the number of events seen so far.
function num_events
long long num_events() const
Return the total number of events seen so far.
function xsec_per_event
double xsec_per_event() const
Return the cross-section per event seen (in fb).
function set_num_events
void set_num_events(
long long n
)
Set the total number of events seen so far.
function average_xsec
void average_xsec(
double other_xsec,
double other_xsecerr,
long long other_ntot
)
Average cross-sections and combine errors.
function average_xsec
void average_xsec(
const MC_xsec_container & other
)
function sum_xsecs
void sum_xsecs(
double other_xsec,
double other_xsecerr,
long long other_ntot
)
Sum cross-sections and add errors in quadrature.
function sum_xsecs
void sum_xsecs(
const MC_xsec_container & other
)
function gather_xsecs
void gather_xsecs()
Collect xsec predictions from other threads and do a weighted combination.
function gather_num_events
void gather_num_events()
Collect total events seen on all threads.
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).
Updated on 2024-07-18 at 13:53:31 +0000