Keep track of the count of Fragments received from a set of sources.
More...
#include <artdaq/DAQrate/detail/FragCounter.hh>
|
| FragCounter () |
| Default Constructor.
|
|
void | incSlot (size_t slot) |
| Increment the given slot by one. More...
|
|
void | incSlot (size_t slot, size_t inc) |
| Increment the given slot by the given amount. More...
|
|
void | setSlot (size_t slot, size_t val) |
| Set the given slot to the given value. More...
|
|
size_t | nSlots () const |
| Get the number of slots this FragCounter instance is tracking. More...
|
|
size_t | count () const |
| Get the total number of Fragments received. More...
|
|
size_t | slotCount (size_t slot) const |
| Get the current count for the requested slot. More...
|
|
size_t | minCount () const |
| Get the minimum slot count. More...
|
|
size_t | operator[] (size_t slot) const |
| Get the current count for the requested slot. More...
|
|
Keep track of the count of Fragments received from a set of sources.
Definition at line 18 of file FragCounter.hh.
size_t artdaq::detail::FragCounter::count |
( |
| ) |
const |
|
inline |
Get the total number of Fragments received.
- Returns
- The total number of Fragments received
Definition at line 120 of file FragCounter.hh.
void artdaq::detail::FragCounter::incSlot |
( |
size_t |
slot | ) |
|
|
inline |
Increment the given slot by one.
- Parameters
-
Definition at line 89 of file FragCounter.hh.
void artdaq::detail::FragCounter::incSlot |
( |
size_t |
slot, |
|
|
size_t |
inc |
|
) |
| |
|
inline |
Increment the given slot by the given amount.
- Parameters
-
slot | Slot to increment |
inc | Amount to increment |
Definition at line 96 of file FragCounter.hh.
size_t artdaq::detail::FragCounter::minCount |
( |
| ) |
const |
|
inline |
Get the minimum slot count.
- Returns
- The minimum slot count
Definition at line 141 of file FragCounter.hh.
size_t artdaq::detail::FragCounter::nSlots |
( |
| ) |
const |
|
inline |
size_t artdaq::detail::FragCounter::operator[] |
( |
size_t |
slot | ) |
const |
|
inline |
Get the current count for the requested slot.
- Parameters
-
slot | Slot to get count for |
- Returns
- The current count for the requested slot
Definition at line 76 of file FragCounter.hh.
void artdaq::detail::FragCounter::setSlot |
( |
size_t |
slot, |
|
|
size_t |
val |
|
) |
| |
|
inline |
Set the given slot to the given value.
- Parameters
-
slot | Slot to set |
val | Value to set |
Definition at line 104 of file FragCounter.hh.
size_t artdaq::detail::FragCounter::slotCount |
( |
size_t |
slot | ) |
const |
|
inline |
Get the current count for the requested slot.
- Parameters
-
slot | Slot to get count for |
- Returns
- The current count for the requested slot
Definition at line 133 of file FragCounter.hh.
The documentation for this class was generated from the following file: