CbmRoot
|
#include <CaMonitorData.h>
Public Types | |
template<typename T > | |
using | CounterArray = EnumArray<ECounterKey, T> |
Alias to array, indexed by the counter enumeration. | |
template<typename T > | |
using | TimerArray = EnumArray<ETimerKey, T> |
Alias to array, indexed by the timer enumeration. | |
Public Member Functions | |
MonitorData ()=default | |
Default constructor. | |
MonitorData (const MonitorData &)=default | |
Copy constructor. | |
MonitorData (MonitorData &&)=default | |
Move constructor. | |
~MonitorData ()=default | |
Destructor. | |
MonitorData & | operator= (const MonitorData &)=default |
Copy assignment operator. | |
MonitorData & | operator= (MonitorData &&)=default |
Move assignment operator. | |
void | AddMonitorData (const MonitorData &other, bool parallel=false) |
Adds the other monitor data to this. | |
int | GetCounterValue (ECounterKey key) const |
Gets counter value. | |
int | GetNofCounters () const |
Gets number of counters. | |
int | GetNofTimers () const |
Gets number of timers. | |
const Timer & | GetTimer (ETimerKey key) const |
Gets timer. | |
void | IncrementCounter (ECounterKey key) |
Increments key counter by 1. | |
void | IncrementCounter (ECounterKey key, int num) |
Increments key counter by a number. | |
void | Reset () |
Resets all the counters and timers. | |
void | StartTimer (ETimerKey key) |
Starts timer. | |
void | StopTimer (ETimerKey key) |
Stops timer. | |
Private Member Functions | |
template<typename Archive > | |
void | serialize (Archive &ar, const unsigned int) |
Private Attributes | |
TimerArray< Timer > | faTimers {} |
Array of timers. | |
CounterArray< int > | faCounters {} |
Array of counters. | |
Friends | |
class | boost::serialization::access |
Monitor data block.
ECounterKey | A enum class, containing keys for monitorables |
ETimerKey | A enum class, containing keys for timers |
using cbm::algo::ca::MonitorData< C, T >::CounterArray = EnumArray<ECounterKey, T> |
Alias to array, indexed by the counter enumeration.
Definition at line 31 of file CaMonitorData.h.
using cbm::algo::ca::MonitorData< C, T >::TimerArray = EnumArray<ETimerKey, T> |
Alias to array, indexed by the timer enumeration.
Definition at line 35 of file CaMonitorData.h.
|
default |
Default constructor.
|
default |
Copy constructor.
|
default |
Move constructor.
|
default |
Destructor.
|
inline |
Adds the other monitor data to this.
other | Reference to the other MonitorData object to add |
parallel | If the monitors were filled in parallel (See CaTimer::AddTimer) |
Definition at line 114 of file CaMonitorData.h.
Referenced by cbm::algo::ca::TrackFinder::FindTracks().
|
inline |
Gets counter value.
key |
Definition at line 62 of file CaMonitorData.h.
References cbm::algo::ca::MonitorData< C, T >::faCounters.
Referenced by cbm::algo::TrackingChain::PrepareOutput(), and cbm::algo::Reco::QueueTrackingMetrics().
|
inline |
Gets number of counters.
Definition at line 65 of file CaMonitorData.h.
|
inline |
Gets number of timers.
Definition at line 68 of file CaMonitorData.h.
|
inline |
Gets timer.
Definition at line 71 of file CaMonitorData.h.
References cbm::algo::ca::MonitorData< C, T >::faTimers.
Referenced by cbm::algo::TrackingChain::PrepareOutput(), and cbm::algo::Reco::QueueTrackingMetrics().
|
inline |
Increments key counter by 1.
key | Counter key |
Definition at line 75 of file CaMonitorData.h.
References cbm::algo::ca::MonitorData< C, T >::faCounters.
Referenced by cbm::algo::ca::TrackFinder::FindTracks(), cbm::algo::TrackingChain::PrepareOutput(), cbm::algo::TrackingChain::ReadHits(), and cbm::algo::ca::TrackFinderWindow::SearchNeighbors().
|
inline |
Increments key counter by a number.
key | Counter key |
num | Number to add |
Definition at line 80 of file CaMonitorData.h.
References cbm::algo::ca::MonitorData< C, T >::faCounters.
|
default |
Copy assignment operator.
|
default |
Move assignment operator.
|
inline |
Resets all the counters and timers.
Definition at line 128 of file CaMonitorData.h.
Referenced by cbm::algo::TrackingChain::Run().
|
inlineprivate |
Definition at line 96 of file CaMonitorData.h.
References cbm::algo::ca::MonitorData< C, T >::faCounters, and cbm::algo::ca::MonitorData< C, T >::faTimers.
|
inline |
Starts timer.
key | Timer key |
Definition at line 87 of file CaMonitorData.h.
References cbm::algo::ca::MonitorData< C, T >::faTimers.
Referenced by cbm::algo::ca::TrackFinderWindow::CaTrackFinderSlice(), cbm::algo::ca::TrackFinder::FindTracks(), cbm::algo::TrackingChain::PrepareOutput(), and cbm::algo::TrackingChain::Run().
|
inline |
Stops timer.
key | Timer key |
Definition at line 91 of file CaMonitorData.h.
References cbm::algo::ca::MonitorData< C, T >::faTimers.
Referenced by cbm::algo::ca::TrackFinderWindow::CaTrackFinderSlice(), cbm::algo::ca::TrackFinder::FindTracks(), cbm::algo::TrackingChain::PrepareOutput(), and cbm::algo::TrackingChain::Run().
|
friend |
Definition at line 94 of file CaMonitorData.h.
|
private |
Array of counters.
Definition at line 103 of file CaMonitorData.h.
Referenced by cbm::algo::ca::MonitorData< C, T >::GetCounterValue(), cbm::algo::ca::MonitorData< C, T >::IncrementCounter(), cbm::algo::ca::MonitorData< C, T >::IncrementCounter(), and cbm::algo::ca::MonitorData< C, T >::serialize().
|
private |
Array of timers.
Definition at line 102 of file CaMonitorData.h.
Referenced by cbm::algo::ca::MonitorData< C, T >::GetTimer(), cbm::algo::ca::MonitorData< C, T >::serialize(), cbm::algo::ca::MonitorData< C, T >::StartTimer(), and cbm::algo::ca::MonitorData< C, T >::StopTimer().