JAPAn
Just Another Parity Analyzer
|
Mix-in class for handling CODA control event data and timing. More...
#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 |
Mix-in class for handling CODA control event data and timing.
Provides functionality for processing and storing information from CODA control events including prestart, go, pause, and end events. Manages run timing, event counts, and run summary reporting.
Definition at line 24 of file MQwCodaControlEvent.h.
|
protected |
Enumerator | |
---|---|
kSYNC_EVENT | |
kPRESTART_EVENT | |
kGO_EVENT | |
kPAUSE_EVENT | |
kEND_EVENT |
Definition at line 64 of file MQwCodaControlEvent.h.
MQwCodaControlEvent::MQwCodaControlEvent | ( | ) |
Definition at line 10 of file MQwCodaControlEvent.cc.
References ResetControlParameters().
MQwCodaControlEvent::~MQwCodaControlEvent | ( | ) |
Definition at line 14 of file MQwCodaControlEvent.cc.
|
inline |
TString MQwCodaControlEvent::GetEndSQLTime | ( | ) |
Definition at line 144 of file MQwCodaControlEvent.cc.
References fEndDatime.
Referenced by ReportRunSummary().
|
inline |
Definition at line 45 of file MQwCodaControlEvent.h.
References fEndTime.
Referenced by GetEndUnixTime().
time_t MQwCodaControlEvent::GetEndUnixTime | ( | ) |
Definition at line 195 of file MQwCodaControlEvent.cc.
References GetEndTime().
UInt_t MQwCodaControlEvent::GetGoEventCount | ( | int | index = 0 | ) |
Definition at line 120 of file MQwCodaControlEvent.cc.
References fGoEventCount, and fNumberGo.
UInt_t MQwCodaControlEvent::GetGoTime | ( | int | index = 0 | ) |
Definition at line 114 of file MQwCodaControlEvent.cc.
UInt_t MQwCodaControlEvent::GetPauseEventCount | ( | int | index = 0 | ) |
Definition at line 132 of file MQwCodaControlEvent.cc.
References fNumberPause, and fPauseEventCount.
UInt_t MQwCodaControlEvent::GetPauseTime | ( | int | index = 0 | ) |
Definition at line 126 of file MQwCodaControlEvent.cc.
References fNumberPause, and fPauseTime.
|
inline |
|
inline |
|
inline |
TString MQwCodaControlEvent::GetStartSQLTime | ( | ) |
Definition at line 139 of file MQwCodaControlEvent.cc.
References fStartDatime.
Referenced by ReportRunSummary().
|
inline |
Definition at line 34 of file MQwCodaControlEvent.h.
References fStartTime.
Referenced by GetStartUnixTime().
time_t MQwCodaControlEvent::GetStartUnixTime | ( | ) |
Definition at line 189 of file MQwCodaControlEvent.cc.
References GetStartTime().
void MQwCodaControlEvent::ProcessControlEvent | ( | UInt_t | evtype, |
UInt_t * | buffer ) |
Definition at line 36 of file MQwCodaControlEvent.cc.
References kEND_EVENT, kGO_EVENT, kPAUSE_EVENT, kPRESTART_EVENT, kSYNC_EVENT, ProcessEnd(), ProcessGo(), ProcessPause(), ProcessPrestart(), and ProcessSync().
Referenced by Coda2EventDecoder::DecodeEventIDBank(), and Coda3EventDecoder::DecodeEventIDBank().
|
protected |
Definition at line 104 of file MQwCodaControlEvent.cc.
References fEndDatime, fEndEventCount, fEndTime, and fFoundControlEvents.
Referenced by Coda2EventDecoder::EncodeEndEventHeader(), Coda3EventDecoder::EncodeEndEventHeader(), and ProcessControlEvent().
|
protected |
Definition at line 91 of file MQwCodaControlEvent.cc.
References fFoundControlEvents, fGoEventCount, fGoTime, fNumberGo, fStartDatime, and fStartTime.
Referenced by Coda2EventDecoder::EncodeGoEventHeader(), Coda3EventDecoder::EncodeGoEventHeader(), and ProcessControlEvent().
|
protected |
Definition at line 82 of file MQwCodaControlEvent.cc.
References fFoundControlEvents, fNumberPause, fPauseEventCount, and fPauseTime.
Referenced by Coda2EventDecoder::EncodePauseEventHeader(), Coda3EventDecoder::EncodePauseEventHeader(), and ProcessControlEvent().
|
protected |
Definition at line 69 of file MQwCodaControlEvent.cc.
References fFoundControlEvents, fPrestartDatime, fPrestartRunNumber, fPrestartTime, fRunType, and ResetControlParameters().
Referenced by Coda2EventDecoder::EncodePrestartEventHeader(), Coda3EventDecoder::EncodePrestartEventHeader(), and ProcessControlEvent().
|
protected |
Definition at line 62 of file MQwCodaControlEvent.cc.
References fFoundControlEvents.
Referenced by ProcessControlEvent().
void MQwCodaControlEvent::ReportRunSummary | ( | ) |
Definition at line 150 of file MQwCodaControlEvent.cc.
References QwLog::endl(), fEndEventCount, fEndTime, fFoundControlEvents, fGoTime, fNumberGo, fNumberPause, fPauseEventCount, fPauseTime, fPrestartRunNumber, fPrestartTime, fRunType, fStartTime, GetEndSQLTime(), GetStartSQLTime(), and QwMessage.
void MQwCodaControlEvent::ResetControlParameters | ( | ) |
Definition at line 16 of file MQwCodaControlEvent.cc.
References fEndDatime, fEndEventCount, fEndTime, fFoundControlEvents, fGoEventCount, fGoTime, fNumberGo, fNumberPause, fPauseEventCount, fPauseTime, fPrestartDatime, fPrestartRunNumber, fPrestartTime, fRunType, fStartDatime, and fStartTime.
Referenced by MQwCodaControlEvent(), and ProcessPrestart().
|
protected |
Definition at line 93 of file MQwCodaControlEvent.h.
Referenced by GetEndSQLTime(), ProcessEnd(), and ResetControlParameters().
|
protected |
Definition at line 80 of file MQwCodaControlEvent.h.
Referenced by GetEndEventCount(), ProcessEnd(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 79 of file MQwCodaControlEvent.h.
Referenced by GetEndTime(), ProcessEnd(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 73 of file MQwCodaControlEvent.h.
Referenced by ProcessEnd(), ProcessGo(), ProcessPause(), ProcessPrestart(), ProcessSync(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 87 of file MQwCodaControlEvent.h.
Referenced by GetGoEventCount(), ProcessGo(), and ResetControlParameters().
|
protected |
Definition at line 88 of file MQwCodaControlEvent.h.
Referenced by GetGoTime(), ProcessGo(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 86 of file MQwCodaControlEvent.h.
Referenced by GetGoEventCount(), GetGoTime(), ProcessGo(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 82 of file MQwCodaControlEvent.h.
Referenced by GetPauseEventCount(), GetPauseTime(), ProcessPause(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 83 of file MQwCodaControlEvent.h.
Referenced by GetPauseEventCount(), ProcessPause(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 84 of file MQwCodaControlEvent.h.
Referenced by GetPauseTime(), ProcessPause(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 91 of file MQwCodaControlEvent.h.
Referenced by ProcessPrestart(), and ResetControlParameters().
|
protected |
Definition at line 76 of file MQwCodaControlEvent.h.
Referenced by GetPrestartRunNumber(), ProcessPrestart(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 75 of file MQwCodaControlEvent.h.
Referenced by GetPrestartTime(), ProcessPrestart(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 77 of file MQwCodaControlEvent.h.
Referenced by GetRunType(), ProcessPrestart(), ReportRunSummary(), and ResetControlParameters().
|
protected |
Definition at line 92 of file MQwCodaControlEvent.h.
Referenced by GetStartSQLTime(), ProcessGo(), and ResetControlParameters().
|
protected |
Definition at line 89 of file MQwCodaControlEvent.h.
Referenced by GetStartTime(), ProcessGo(), ReportRunSummary(), and ResetControlParameters().