QwAnalysis
|
#include <MQwCodaControlEvent.h>
Public Member Functions | |
MQwCodaControlEvent () | |
~MQwCodaControlEvent () | |
void | ResetControlParameters () |
void | ProcessControlEvent (UInt_t evtype, UInt_t *buffer) |
void | ReportRunSummary () |
UInt_t | GetStartTime () |
UInt_t | GetPrestartTime () |
UInt_t | GetPrestartRunNumber () |
UInt_t | GetRunType () |
UInt_t | GetGoTime (int index=0) |
UInt_t | GetGoEventCount (int index=0) |
UInt_t | GetPauseTime (int index=0) |
UInt_t | GetPauseEventCount (int index=0) |
UInt_t | GetEndTime () |
UInt_t | GetEndEventCount () |
TString | GetStartSQLTime () |
TString | GetEndSQLTime () |
time_t | GetStartUnixTime () |
time_t | GetEndUnixTime () |
Protected Types | |
enum | EventTypes { kSYNC_EVENT = 16, kPRESTART_EVENT = 17, kGO_EVENT = 18, kPAUSE_EVENT = 19, kEND_EVENT = 20 } |
Protected Member Functions | |
void | ProcessSync (UInt_t local_time, UInt_t statuscode) |
void | ProcessPrestart (UInt_t local_time, UInt_t local_runnumber, UInt_t local_runtype) |
void | ProcessGo (UInt_t local_time, UInt_t evt_count) |
void | ProcessPause (UInt_t local_time, UInt_t evt_count) |
void | ProcessEnd (UInt_t local_time, UInt_t evt_count) |
Protected Attributes | |
Bool_t | fFoundControlEvents |
UInt_t | fPrestartTime |
UInt_t | fPrestartRunNumber |
UInt_t | fRunType |
UInt_t | fEndTime |
UInt_t | fEndEventCount |
UInt_t | fNumberPause |
std::vector< UInt_t > | fPauseEventCount |
std::vector< UInt_t > | fPauseTime |
UInt_t | fNumberGo |
std::vector< UInt_t > | fGoEventCount |
std::vector< UInt_t > | fGoTime |
UInt_t | fStartTime |
TDatime | fPrestartDatime |
TDatime | fStartDatime |
TDatime | fEndDatime |
Definition at line 13 of file MQwCodaControlEvent.h.
|
protected |
Enumerator | |
---|---|
kSYNC_EVENT | |
kPRESTART_EVENT | |
kGO_EVENT | |
kPAUSE_EVENT | |
kEND_EVENT |
Definition at line 53 of file MQwCodaControlEvent.h.
MQwCodaControlEvent::MQwCodaControlEvent | ( | ) |
Definition at line 5 of file MQwCodaControlEvent.cc.
References ResetControlParameters().
MQwCodaControlEvent::~MQwCodaControlEvent | ( | ) |
Definition at line 9 of file MQwCodaControlEvent.cc.
|
inline |
TString MQwCodaControlEvent::GetEndSQLTime | ( | ) |
Definition at line 139 of file MQwCodaControlEvent.cc.
References fEndDatime.
Referenced by ReportRunSummary().
|
inline |
Definition at line 34 of file MQwCodaControlEvent.h.
References fEndTime.
Referenced by GetEndUnixTime().
time_t MQwCodaControlEvent::GetEndUnixTime | ( | ) |
Definition at line 190 of file MQwCodaControlEvent.cc.
References GetEndTime().
Referenced by QwParityDB::SetRunID().
UInt_t MQwCodaControlEvent::GetGoEventCount | ( | int | index = 0 | ) |
Definition at line 115 of file MQwCodaControlEvent.cc.
References fGoEventCount, and fNumberGo.
UInt_t MQwCodaControlEvent::GetGoTime | ( | int | index = 0 | ) |
UInt_t MQwCodaControlEvent::GetPauseEventCount | ( | int | index = 0 | ) |
Definition at line 127 of file MQwCodaControlEvent.cc.
References fNumberPause, and fPauseEventCount.
UInt_t MQwCodaControlEvent::GetPauseTime | ( | int | index = 0 | ) |
|
inline |
Definition at line 25 of file MQwCodaControlEvent.h.
References fPrestartRunNumber.
|
inline |
|
inline |
TString MQwCodaControlEvent::GetStartSQLTime | ( | ) |
Definition at line 134 of file MQwCodaControlEvent.cc.
References fStartDatime.
Referenced by ReportRunSummary().
|
inline |
Definition at line 23 of file MQwCodaControlEvent.h.
References fStartTime.
Referenced by GetStartUnixTime().
time_t MQwCodaControlEvent::GetStartUnixTime | ( | ) |
Definition at line 184 of file MQwCodaControlEvent.cc.
References GetStartTime().
Referenced by QwParityDB::SetRunID().
void MQwCodaControlEvent::ProcessControlEvent | ( | UInt_t | evtype, |
UInt_t * | buffer | ||
) |
Definition at line 31 of file MQwCodaControlEvent.cc.
References kEND_EVENT, kGO_EVENT, kPAUSE_EVENT, kPRESTART_EVENT, kSYNC_EVENT, ProcessEnd(), ProcessGo(), ProcessPause(), ProcessPrestart(), and ProcessSync().
Referenced by QwEventBuffer::DecodeEventIDBank().
|
protected |
Definition at line 99 of file MQwCodaControlEvent.cc.
References fEndDatime, fEndEventCount, fEndTime, and fFoundControlEvents.
Referenced by QwEventBuffer::EncodeEndEvent(), and ProcessControlEvent().
|
protected |
Definition at line 86 of file MQwCodaControlEvent.cc.
References fFoundControlEvents, fGoEventCount, fGoTime, fNumberGo, fStartDatime, and fStartTime.
Referenced by QwEventBuffer::EncodeGoEvent(), and ProcessControlEvent().
|
protected |
Definition at line 77 of file MQwCodaControlEvent.cc.
References fFoundControlEvents, fNumberPause, fPauseEventCount, and fPauseTime.
Referenced by QwEventBuffer::EncodePauseEvent(), and ProcessControlEvent().
|
protected |
Definition at line 64 of file MQwCodaControlEvent.cc.
References fFoundControlEvents, fPrestartDatime, fPrestartRunNumber, fPrestartTime, fRunType, and ResetControlParameters().
Referenced by QwEventBuffer::EncodePrestartEvent(), and ProcessControlEvent().
|
protected |
Definition at line 57 of file MQwCodaControlEvent.cc.
References fFoundControlEvents.
Referenced by ProcessControlEvent().
void MQwCodaControlEvent::ReportRunSummary | ( | ) |
Definition at line 145 of file MQwCodaControlEvent.cc.
References QwLog::endl(), fEndEventCount, fEndTime, fFoundControlEvents, fGoTime, fNumberGo, fNumberPause, fPauseEventCount, fPauseTime, fPrestartRunNumber, fPrestartTime, fRunType, fStartTime, GetEndSQLTime(), GetStartSQLTime(), and QwMessage.
Referenced by main().
void MQwCodaControlEvent::ResetControlParameters | ( | ) |
Definition at line 11 of file MQwCodaControlEvent.cc.
References fEndDatime, fEndEventCount, fEndTime, fFoundControlEvents, fGoEventCount, fGoTime, fNumberGo, fNumberPause, fPauseEventCount, fPauseTime, fPrestartDatime, fPrestartRunNumber, fPrestartTime, fRunType, fStartDatime, and fStartTime.
Referenced by main(), MQwCodaControlEvent(), and ProcessPrestart().
|
protected |
Definition at line 82 of file MQwCodaControlEvent.h.
Referenced by GetEndSQLTime(), ProcessEnd(), and ResetControlParameters().
|
protected |
Definition at line 69 of file MQwCodaControlEvent.h.
Referenced by GetEndEventCount(), ProcessEnd(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 68 of file MQwCodaControlEvent.h.
Referenced by GetEndTime(), ProcessEnd(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 62 of file MQwCodaControlEvent.h.
Referenced by ProcessEnd(), ProcessGo(), ProcessPause(), ProcessPrestart(), ProcessSync(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 76 of file MQwCodaControlEvent.h.
Referenced by GetGoEventCount(), ProcessGo(), and ResetControlParameters().
|
protected |
Definition at line 77 of file MQwCodaControlEvent.h.
Referenced by GetGoTime(), ProcessGo(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 75 of file MQwCodaControlEvent.h.
Referenced by GetGoEventCount(), GetGoTime(), ProcessGo(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 71 of file MQwCodaControlEvent.h.
Referenced by GetPauseEventCount(), GetPauseTime(), ProcessPause(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 72 of file MQwCodaControlEvent.h.
Referenced by GetPauseEventCount(), ProcessPause(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 73 of file MQwCodaControlEvent.h.
Referenced by GetPauseTime(), ProcessPause(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 80 of file MQwCodaControlEvent.h.
Referenced by ProcessPrestart(), and ResetControlParameters().
|
protected |
Definition at line 65 of file MQwCodaControlEvent.h.
Referenced by GetPrestartRunNumber(), ProcessPrestart(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 64 of file MQwCodaControlEvent.h.
Referenced by GetPrestartTime(), ProcessPrestart(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 66 of file MQwCodaControlEvent.h.
Referenced by GetRunType(), ProcessPrestart(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 81 of file MQwCodaControlEvent.h.
Referenced by GetStartSQLTime(), ProcessGo(), and ResetControlParameters().
|
protected |
Definition at line 78 of file MQwCodaControlEvent.h.
Referenced by GetStartTime(), ProcessGo(), ReportRunSummary(), and ResetControlParameters().