class Gambit::ColliderBit::EventCounter
A simple class for counting events of type HEPUtils::Event.
#include <EventCounter.hpp>
Public Functions
| Name | |
|---|---|
| EventCounter() | |
| EventCounter(const std::string name) | |
| void | init(const std::string name) |
| void | reset() |
| void | set_name(const std::string name) |
| std::string | name() const |
| void | set_sum(int sum) |
| int | sum() const |
| void | set_weight_sum(double weight_sum) |
| double | weight_sum() const |
| void | set_weight_sum_err(double weight_sum_err) |
| double | weight_sum_err() const |
| void | add_event(const HEPUtils::Event & event, double w, double werr =0.0) |
| void | add_event(const HEPUtils::Event * event_ptr, double w, double werr =0.0) |
| void | add_event(const HEPUtils::Event & event) |
| void | add_event(const HEPUtils::Event * event_ptr) |
| EventCounter & | operator+=(const HEPUtils::Event & event) |
| EventCounter & | operator+=(const EventCounter & rhs) |
| EventCounter & | combine(const EventCounter & other) |
| void | set_store_accepted_event_IDs(bool setting) |
| bool | store_accepted_event_IDs() |
| std::vector< unsigned int > | get_event_acceptance_record() const |
| void | clear_event_acceptance_record() |
Public Functions Documentation
function EventCounter
inline EventCounter()
function EventCounter
inline EventCounter(
const std::string name
)
function init
inline void init(
const std::string name
)
function reset
inline void reset()
function set_name
inline void set_name(
const std::string name
)
function name
inline std::string name() const
function set_sum
inline void set_sum(
int sum
)
function sum
inline int sum() const
function set_weight_sum
inline void set_weight_sum(
double weight_sum
)
function weight_sum
inline double weight_sum() const
function set_weight_sum_err
inline void set_weight_sum_err(
double weight_sum_err
)
function weight_sum_err
inline double weight_sum_err() const
function add_event
inline void add_event(
const HEPUtils::Event & event,
double w,
double werr =0.0
)
function add_event
inline void add_event(
const HEPUtils::Event * event_ptr,
double w,
double werr =0.0
)
function add_event
inline void add_event(
const HEPUtils::Event & event
)
function add_event
inline void add_event(
const HEPUtils::Event * event_ptr
)
function operator+=
inline EventCounter & operator+=(
const HEPUtils::Event & event
)
function operator+=
inline EventCounter & operator+=(
const EventCounter & rhs
)
function combine
inline EventCounter & combine(
const EventCounter & other
)
function set_store_accepted_event_IDs
inline void set_store_accepted_event_IDs(
bool setting
)
function store_accepted_event_IDs
inline bool store_accepted_event_IDs()
function get_event_acceptance_record
inline std::vector< unsigned int > get_event_acceptance_record() const
function clear_event_acceptance_record
inline void clear_event_acceptance_record()
Updated on 2026-11-03 at 14:50:43 +0000