class Gambit::ColliderBit::AnalysisContainer

A class for managing collections of Analysis instances.

#include <AnalysisContainer.hpp>

Public Functions

Name
AnalysisContainer()
Constructor.
~AnalysisContainer()
Destructor.
voidregister_thread(str base_key_in)
Add container to instances map.
voidclear()
Delete and clear the analyses contained within this instance.
voidset_current_collider(str collider_name)
Set name of current collider.
strget_current_collider() const
Get name of current collider.
boolhas_analyses(str collider_name) const
Does this instance contain analyses for the given collider.
boolhas_analyses() const
Does this instance contain analyses for the current collider.
voidinit(const std::vector< str > & analysis_names, str collider_name)
Initialize analyses (by names) for a specified collider.
voidinit(const std::vector< str > & analysis_names)
Initialize analyses (by names) for the current collider.
voidreset(str collider_name, str analysis_name)
Reset specific analysis.
voidreset(str collider_name)
Reset all analyses for given collider.
voidreset()
Reset all analyses for the current collider.
voidreset_all()
Reset all analyses for all colliders.
const Analysis *get_analysis_pointer(str collider_name, str analysis_name) const
Get pointer to specific analysis.
const std::map< str, Analysis * > &get_collider_analyses_map(str collider_name) const
Get analyses map for a specific collider.
const std::map< str, Analysis * > &get_current_analyses_map() const
Get analyses map for the current collider.
const std::map< str, std::map< str, Analysis * > > &get_full_analyses_map() const
Get the full analyses map.
voidanalyze(const HEPUtils::Event & event, str collider_name, str analysis_name) const
Pass event through specific analysis.
voidanalyze(const HEPUtils::Event & event, str collider_name) const
Pass event through all analysis for a specific collider.
voidanalyze(const HEPUtils::Event & event) const
Pass event through all analysis for the current collider.
voidcollect_and_add_signal(str collider_name, str analysis_name)
voidcollect_and_add_signal(str collider_name)
voidcollect_and_add_signal()
voidscale(str collider_name, str analysis_name, double xsec_per_event)
Scale results for specific analysis.
voidscale(str collider_name, double xsec_per_event)
Scale results for all analyses for given collider.
voidscale(double xsec_per_event)
Scale results for all analyses for the current collider.
voidscale_all(double xsec_per_event)
Scale results for all analyses across all colliders.

Public Functions Documentation

function AnalysisContainer

AnalysisContainer()

Constructor.

function ~AnalysisContainer

~AnalysisContainer()

Destructor.

function register_thread

void register_thread(
    str base_key_in
)

Add container to instances map.

function clear

void clear()

Delete and clear the analyses contained within this instance.

TodoStoring smart ptrs to Analysis would make this way easier

function set_current_collider

void set_current_collider(
    str collider_name
)

Set name of current collider.

Set name of the current collider.

function get_current_collider

str get_current_collider() const

Get name of current collider.

Get the name of the current collider.

function has_analyses

bool has_analyses(
    str collider_name
) const

Does this instance contain analyses for the given collider.

function has_analyses

bool has_analyses() const

Does this instance contain analyses for the current collider.

function init

void init(
    const std::vector< str > & analysis_names,
    str collider_name
)

Initialize analyses (by names) for a specified collider.

function init

void init(
    const std::vector< str > & analysis_names
)

Initialize analyses (by names) for the current collider.

function reset

void reset(
    str collider_name,
    str analysis_name
)

Reset specific analysis.

function reset

void reset(
    str collider_name
)

Reset all analyses for given collider.

function reset

void reset()

Reset all analyses for the current collider.

function reset_all

void reset_all()

Reset all analyses for all colliders.

function get_analysis_pointer

const Analysis * get_analysis_pointer(
    str collider_name,
    str analysis_name
) const

Get pointer to specific analysis.

function get_collider_analyses_map

const std::map< str, Analysis * > & get_collider_analyses_map(
    str collider_name
) const

Get analyses map for a specific collider.

function get_current_analyses_map

const std::map< str, Analysis * > & get_current_analyses_map() const

Get analyses map for the current collider.

function get_full_analyses_map

const std::map< str, std::map< str, Analysis * > > & get_full_analyses_map() const

Get the full analyses map.

function analyze

void analyze(
    const HEPUtils::Event & event,
    str collider_name,
    str analysis_name
) const

Pass event through specific analysis.

function analyze

void analyze(
    const HEPUtils::Event & event,
    str collider_name
) const

Pass event through all analysis for a specific collider.

Pass event through all analyses for a specific collider.

function analyze

void analyze(
    const HEPUtils::Event & event
) const

Pass event through all analysis for the current collider.

function collect_and_add_signal

void collect_and_add_signal(
    str collider_name,
    str analysis_name
)

Collect signal predictions from other threads and add to this one, for specific analysis

Collect signal predictions from other threads and add to this one, for specific analysis. Note: Analysis::add will not add analyses to themselves.

function collect_and_add_signal

void collect_and_add_signal(
    str collider_name
)

Collect signal predictions from other threads and add to this one, for all analyses for given collider

function collect_and_add_signal

void collect_and_add_signal()

Collect signal predictions from other threads and add to this one, for all analyses for the current collider

function scale

void scale(
    str collider_name,
    str analysis_name,
    double xsec_per_event
)

Scale results for specific analysis.

function scale

void scale(
    str collider_name,
    double xsec_per_event
)

Scale results for all analyses for given collider.

function scale

void scale(
    double xsec_per_event
)

Scale results for all analyses for the current collider.

function scale_all

void scale_all(
    double xsec_per_event
)

Scale results for all analyses across all colliders.


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