Definition at line 23 of file TScalerQueue.h.
Public Member Functions | |
~TDeadtimeScalerQueue () override | |
void | Add (TScalerData *) |
void | CheckStatus () const |
void | Clear (Option_t *opt="") override |
unsigned int | GetTotalScalersIn () |
unsigned int | GetTotalScalersOut () |
void | Pop () override |
TScalerData * | PopScaler () |
void | Print (Option_t *opt="") const override |
bool | Running () |
int | ScalersInQueue () |
int | Size () const |
void | StartStatusUpdate () |
void | Stop () |
void | StopStatusUpdate () |
Static Public Member Functions | |
static TDeadtimeScalerQueue * | Get () |
Static Public Attributes | |
static std::mutex | All |
static std::mutex | Sorted |
Private Member Functions | |
TDeadtimeScalerQueue () | |
void | ResetRateCounter () |
void | StatusUpdate () |
Private Attributes | |
std::queue< TScalerData * > | fDeadtimeScalerQueue |
int | fScalersIn {0} |
int | fScalersInQueue |
int | fScalersOut {0} |
bool | fStatusUpdateOn {false} |
bool | fStop |
TStopwatch * | fStopwatch |
unsigned int | fTotalScalersIn {0} |
unsigned int | fTotalScalersOut {0} |
Static Private Attributes | |
static TDeadtimeScalerQueue * | fDeadtimeScalerQueueClassPointer = nullptr |
static std::map< int, int > | fScalerIdMap |
#include <TScalerQueue.h>
|
overridedefault |
|
private |
Definition at line 27 of file TScalerQueue.cxx.
References Clear(), fDeadtimeScalerQueueClassPointer, fScalersInQueue, fStop, and fStopwatch.
Referenced by Get().
void TDeadtimeScalerQueue::Add | ( | TScalerData * | scalerData | ) |
Add a Scaler to the scaler Queue.
Definition at line 96 of file TScalerQueue.cxx.
References fDeadtimeScalerQueue, fScalersIn, fScalersInQueue, fTotalScalersIn, and Sorted.
Referenced by TGRSIDataParser::GriffinDataToScalerEvent().
void TDeadtimeScalerQueue::CheckStatus | ( | ) | const |
Definition at line 155 of file TScalerQueue.cxx.
References All, BLUE, DGREEN, fTotalScalersIn, fTotalScalersOut, RESET_COLOR, and Size().
Referenced by Print().
|
override |
Clear the entire Queue, Queue counters, and timer.
Definition at line 48 of file TScalerQueue.cxx.
References All, fDeadtimeScalerQueue, fScalersIn, fScalersInQueue, fScalersOut, fStopwatch, fTotalScalersIn, fTotalScalersOut, RED, and RESET_COLOR.
Referenced by TDeadtimeScalerQueue().
|
static |
Get a pointer to the global scaler Q.
Definition at line 18 of file TScalerQueue.cxx.
References fDeadtimeScalerQueueClassPointer, and TDeadtimeScalerQueue().
Referenced by TGRSIDataParser::GriffinDataToScalerEvent().
|
inline |
Definition at line 73 of file TScalerQueue.h.
References fTotalScalersIn.
|
inline |
Definition at line 74 of file TScalerQueue.h.
References fTotalScalersOut.
|
override |
Definition at line 116 of file TScalerQueue.cxx.
References fDeadtimeScalerQueue, fScalersInQueue, fScalersOut, and Sorted.
TScalerData * TDeadtimeScalerQueue::PopScaler | ( | ) |
Definition at line 128 of file TScalerQueue.cxx.
References fDeadtimeScalerQueue, fScalersInQueue, fScalersOut, fTotalScalersOut, Size(), and Sorted.
|
override |
Print the status of the Scaler Queue
Definition at line 42 of file TScalerQueue.cxx.
References CheckStatus().
|
private |
Definition at line 192 of file TScalerQueue.cxx.
References All, fScalersIn, and fScalersOut.
Referenced by StatusUpdate().
|
inline |
Definition at line 76 of file TScalerQueue.h.
References fStop.
|
inline |
Definition at line 28 of file TScalerQueue.h.
References fScalersInQueue.
int TDeadtimeScalerQueue::Size | ( | ) | const |
Definition at line 149 of file TScalerQueue.cxx.
References fScalersInQueue.
Referenced by CheckStatus(), PopScaler(), and StatusUpdate().
void TDeadtimeScalerQueue::StartStatusUpdate | ( | ) |
The status thread runs the status update at various intervals to show the progress of the analysis tree.
Definition at line 81 of file TScalerQueue.cxx.
References fStatusUpdateOn, and StatusUpdate().
|
private |
Definition at line 169 of file TScalerQueue.cxx.
References All, BLUE, DGREEN, fScalersIn, fScalersOut, fStatusUpdateOn, fStopwatch, RESET_COLOR, ResetRateCounter(), and Size().
Referenced by StartStatusUpdate().
|
inline |
Definition at line 77 of file TScalerQueue.h.
References fStop.
void TDeadtimeScalerQueue::StopStatusUpdate | ( | ) |
|
static |
Definition at line 56 of file TScalerQueue.h.
Referenced by CheckStatus(), Clear(), ResetRateCounter(), and StatusUpdate().
|
private |
Definition at line 34 of file TScalerQueue.h.
Referenced by Add(), Clear(), Pop(), and PopScaler().
|
staticprivate |
Definition at line 32 of file TScalerQueue.h.
Referenced by Get(), and TDeadtimeScalerQueue().
|
staticprivate |
Definition at line 51 of file TScalerQueue.h.
|
private |
Definition at line 42 of file TScalerQueue.h.
Referenced by Add(), Clear(), ResetRateCounter(), and StatusUpdate().
|
private |
Definition at line 35 of file TScalerQueue.h.
Referenced by Add(), Clear(), Pop(), PopScaler(), ScalersInQueue(), Size(), and TDeadtimeScalerQueue().
|
private |
Definition at line 43 of file TScalerQueue.h.
Referenced by Clear(), Pop(), PopScaler(), ResetRateCounter(), and StatusUpdate().
|
private |
Definition at line 38 of file TScalerQueue.h.
Referenced by StartStatusUpdate(), StatusUpdate(), and StopStatusUpdate().
|
private |
Definition at line 40 of file TScalerQueue.h.
Referenced by Running(), Stop(), and TDeadtimeScalerQueue().
|
private |
Definition at line 45 of file TScalerQueue.h.
Referenced by Clear(), StatusUpdate(), and TDeadtimeScalerQueue().
|
private |
Definition at line 48 of file TScalerQueue.h.
Referenced by Add(), CheckStatus(), Clear(), and GetTotalScalersIn().
|
private |
Definition at line 49 of file TScalerQueue.h.
Referenced by CheckStatus(), Clear(), GetTotalScalersOut(), and PopScaler().
|
static |
Definition at line 57 of file TScalerQueue.h.
Referenced by Add(), Pop(), and PopScaler().