$treeview $search $mathjax $extrastylesheet
artdaq
v3_04_00
$projectbrief
|
$projectbrief
|
$searchbox |
Keep track of the count of Fragments received from a set of sources. More...
#include <artdaq/DAQrate/detail/FragCounter.hh>
Public Member Functions | |
FragCounter () | |
Default Constructor. | |
void | incSlot (size_t slot) |
Increment the given slot by one. | |
void | incSlot (size_t slot, size_t inc) |
Increment the given slot by the given amount. | |
void | setSlot (size_t slot, size_t val) |
Set the given slot to the given value. | |
size_t | nSlots () const |
Get the number of slots this FragCounter instance is tracking. | |
size_t | count () const |
Get the total number of Fragments received. | |
size_t | slotCount (size_t slot) const |
Get the current count for the requested slot. | |
size_t | minCount () const |
Get the minimum slot count. | |
size_t | operator[] (size_t slot) const |
Get the current count for the requested slot. |
Keep track of the count of Fragments received from a set of sources.
Definition at line 20 of file FragCounter.hh.
size_t artdaq::detail::FragCounter::count | ( | ) | const [inline] |
Get the total number of Fragments received.
Definition at line 128 of file FragCounter.hh.
void artdaq::detail::FragCounter::incSlot | ( | size_t | slot, | |
size_t | inc | |||
) | [inline] |
Increment the given slot by the given amount.
slot | Slot to increment | |
inc | Amount to increment |
Definition at line 101 of file FragCounter.hh.
void artdaq::detail::FragCounter::incSlot | ( | size_t | slot | ) | [inline] |
Increment the given slot by one.
slot | Slot to increment |
Definition at line 93 of file FragCounter.hh.
size_t artdaq::detail::FragCounter::minCount | ( | ) | const [inline] |
Get the minimum slot count.
Definition at line 151 of file FragCounter.hh.
size_t artdaq::detail::FragCounter::nSlots | ( | ) | const [inline] |
Get the number of slots this FragCounter instance is tracking.
Definition at line 119 of file FragCounter.hh.
size_t artdaq::detail::FragCounter::operator[] | ( | size_t | slot | ) | const [inline] |
Get the current count for the requested slot.
slot | Slot to get count for |
Definition at line 78 of file FragCounter.hh.
void artdaq::detail::FragCounter::setSlot | ( | size_t | slot, | |
size_t | val | |||
) | [inline] |
Set the given slot to the given value.
slot | Slot to set | |
val | Value to set |
Definition at line 110 of file FragCounter.hh.
size_t artdaq::detail::FragCounter::slotCount | ( | size_t | slot | ) | const [inline] |
Get the current count for the requested slot.
slot | Slot to get count for |
Definition at line 142 of file FragCounter.hh.