QwAnalysis
|
#include <QwEventRing.h>
Public Member Functions | |
QwEventRing (QwOptions &options, QwSubsystemArrayParity &event) | |
QwEventRing (QwSubsystemArrayParity &event, Int_t ring_size) | |
virtual | ~QwEventRing () |
void | ProcessOptions (QwOptions &options) |
Process options. More... | |
void | push (QwSubsystemArrayParity &event) |
Add the subsystem to the ring. More... | |
QwSubsystemArrayParity & | pop () |
Return the last subsystem in the ring. More... | |
Bool_t | IsReady () |
Return the read status of the ring. More... | |
Static Public Member Functions | |
static void | DefineOptions (QwOptions &options) |
Define options. More... | |
Private Member Functions | |
QwEventRing () | |
Private Attributes | |
Int_t | fRING_SIZE |
Int_t | fNextToBeFilled |
Int_t | fNextToBeRead |
Bool_t | bEVENT_READY |
Bool_t | bRING_READY |
std::vector < QwSubsystemArrayParity > | fEvent_Ring |
QwSubsystemArrayParity | fRollingAvg |
FILE * | out_file |
Bool_t | bStability |
Static Private Attributes | |
static const Bool_t | bDEBUG =kFALSE |
static const Bool_t | bDEBUG_Write =kFALSE |
Definition at line 16 of file QwEventRing.h.
|
private |
QwEventRing::QwEventRing | ( | QwOptions & | options, |
QwSubsystemArrayParity & | event | ||
) |
Definition at line 23 of file QwEventRing.cc.
References bDEBUG_Write, bEVENT_READY, bRING_READY, fEvent_Ring, fNextToBeFilled, fNextToBeRead, fRING_SIZE, out_file, and ProcessOptions().
QwEventRing::QwEventRing | ( | QwSubsystemArrayParity & | event, |
Int_t | ring_size | ||
) |
Definition at line 6 of file QwEventRing.cc.
References bDEBUG_Write, bEVENT_READY, bRING_READY, fEvent_Ring, fNextToBeFilled, fNextToBeRead, fRING_SIZE, and out_file.
|
inlinevirtual |
Definition at line 30 of file QwEventRing.h.
|
static |
Define options.
Definition at line 41 of file QwEventRing.cc.
References QwOptions::AddDefaultOptions(), and QwOptions::AddOptions().
Referenced by DefineOptionsParity().
Bool_t QwEventRing::IsReady | ( | ) |
Return the read status of the ring.
Definition at line 138 of file QwEventRing.cc.
References bRING_READY.
Referenced by main().
QwSubsystemArrayParity & QwEventRing::pop | ( | ) |
Return the last subsystem in the ring.
Definition at line 121 of file QwEventRing.cc.
References bDEBUG, bDEBUG_Write, bRING_READY, bStability, QwSubsystemArrayParity::DeaccumulateRunningSum(), QwLog::endl(), fEvent_Ring, fNextToBeRead, fRING_SIZE, fRollingAvg, out_file, and QwMessage.
Referenced by main().
void QwEventRing::ProcessOptions | ( | QwOptions & | options | ) |
Process options.
Definition at line 53 of file QwEventRing.cc.
References bStability, fRING_SIZE, QwOptions::GetValue(), gQwOptions, and QwOptions::HasValue().
Referenced by QwEventRing().
void QwEventRing::push | ( | QwSubsystemArrayParity & | event | ) |
Add the subsystem to the ring.
Definition at line 69 of file QwEventRing.cc.
References QwSubsystemArrayParity::AccumulateAllRunningSum(), bDEBUG, bDEBUG_Write, bEVENT_READY, bRING_READY, bStability, QwSubsystemArrayParity::CalculateRunningAverage(), QwLog::endl(), fEvent_Ring, fNextToBeFilled, fNextToBeRead, fRING_SIZE, fRollingAvg, out_file, QwMessage, and QwSubsystemArrayParity::UpdateErrorFlag().
Referenced by main().
|
staticprivate |
Definition at line 65 of file QwEventRing.h.
|
staticprivate |
Definition at line 66 of file QwEventRing.h.
Referenced by pop(), push(), and QwEventRing().
|
private |
Definition at line 54 of file QwEventRing.h.
Referenced by push(), and QwEventRing().
|
private |
Definition at line 57 of file QwEventRing.h.
Referenced by IsReady(), pop(), push(), and QwEventRing().
|
private |
Definition at line 69 of file QwEventRing.h.
Referenced by pop(), ProcessOptions(), and push().
|
private |
Definition at line 59 of file QwEventRing.h.
Referenced by pop(), push(), and QwEventRing().
|
private |
Definition at line 50 of file QwEventRing.h.
Referenced by push(), and QwEventRing().
|
private |
Definition at line 51 of file QwEventRing.h.
Referenced by pop(), push(), and QwEventRing().
|
private |
Definition at line 47 of file QwEventRing.h.
Referenced by pop(), ProcessOptions(), push(), and QwEventRing().
|
private |
Definition at line 61 of file QwEventRing.h.
|
private |
Definition at line 64 of file QwEventRing.h.
Referenced by pop(), push(), and QwEventRing().