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(double w =1.0, 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) |
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(
double w =1.0,
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
)
Updated on 2024-07-18 at 13:53:31 +0000