QwAnalysis
|
#include <QwEventBuffer.h>
Public Member Functions | |
QwEventBuffer () | |
Default constructor. More... | |
virtual | ~QwEventBuffer () |
void | ProcessOptions (QwOptions &options) |
Sets internal flags based on the QwOptions. More... | |
void | PrintRunTimes () |
TString | GetRunLabel () const |
Returns a string like <run#> or <run#>.<file#> More... | |
Bool_t | AreRunletsSplit () const |
Return true if file segments are being separated for. More... | |
Int_t | GetRunNumber () const |
Return CODA file run number. More... | |
Int_t | GetSegmentNumber () const |
Return CODA file segment number. More... | |
std::pair< UInt_t, UInt_t > | GetEventRange () const |
Int_t | OpenNextStream () |
Opens the event stream (file or ET) based on the internal flags. More... | |
Int_t | CloseStream () |
Closes a currently open event stream. More... | |
void | SetDataDirectory (const TString datadir) |
const TString & | GetDataFile () const |
Int_t | ReOpenStream () |
Int_t | OpenDataFile (UInt_t current_run, Short_t seg) |
Int_t | OpenDataFile (UInt_t current_run, const TString rw="R") |
Int_t | OpenDataFile (const TString filename, const TString rw="R") |
Int_t | CloseDataFile () |
Int_t | OpenETStream (TString computer, TString session, int mode, const TString stationname="") |
Int_t | CloseETStream () |
Bool_t | IsPhysicsEvent () |
Int_t | GetEventNumber () |
Bool_t | GetNextEventRange () |
Read the next requested event range, return true if success. More... | |
Bool_t | GetNextRunRange () |
Read the next requested run range, return true if success. More... | |
Bool_t | GetNextRunNumber () |
Get the next run in the active run range, proceed to next range if needed. More... | |
Int_t | GetNextEvent () |
Int_t | GetEvent () |
Int_t | WriteEvent (int *buffer) |
Bool_t | IsROCConfigurationEvent () |
Bool_t | IsEPICSEvent () |
Bool_t | FillSubsystemConfigurationData (QwSubsystemArray &subsystems) |
Bool_t | FillSubsystemData (QwSubsystemArray &subsystems) |
Bool_t | FillEPICSData (QwEPICSEvent &epics) |
template<class T > | |
Bool_t | FillObjectWithEventData (T &t) |
Int_t | EncodeSubsystemData (QwSubsystemArray &subsystems) |
Int_t | EncodePrestartEvent (int runnumber, int runtype=0) |
Int_t | EncodeGoEvent () |
Int_t | EncodePauseEvent () |
Int_t | EncodeEndEvent () |
void | ResetFlags () |
![]() | |
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 () |
Static Public Member Functions | |
static void | DefineOptions (QwOptions &options) |
static void | SetDefaultDataFileStem (const std::string &stem) |
static void | SetDefaultDataFileExtension (const std::string &extension) |
Static Public Attributes | |
static const Int_t | kRunNotSegmented = -20 |
static const Int_t | kNoNextDataFile = -30 |
static const Int_t | kFileHandleNotConfigured = -40 |
static const UInt_t | kNullDataWord = 0x4e554c4c |
Protected Types | |
enum | CodaStreamMode { fEvStreamNull, fEvStreamFile, fEvStreamET } |
![]() | |
enum | EventTypes { kSYNC_EVENT = 16, kPRESTART_EVENT = 17, kGO_EVENT = 18, kPAUSE_EVENT = 19, kEND_EVENT = 20 } |
Protected Member Functions | |
Int_t | GetFileEvent () |
Int_t | GetEtEvent () |
Int_t | WriteFileEvent (int *buffer) |
Bool_t | DataFileIsSegmented () |
Int_t | CloseThisSegment () |
Int_t | OpenNextSegment () |
void | DecodeEventIDBank (UInt_t *buffer) |
Bool_t | DecodeSubbankHeader (UInt_t *buffer) |
const TString & | DataFile (const UInt_t run, const Short_t seg) |
void | SetEventLength (const ULong_t tmplength) |
void | SetEventType (const UInt_t tmptype) |
void | SetWordsSoFar (const ULong_t tmpwords) |
![]() | |
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 | fOnline |
TString | fETHostname |
TString | fETSession |
TString | fETStationName |
Bool_t | fChainDataFiles |
std::pair< Int_t, Int_t > | fRunRange |
std::string | fRunListFileName |
QwParameterFile * | fRunListFile |
std::vector< Int_t > | fRunRangeMinList |
std::vector< Int_t > | fRunRangeMaxList |
std::pair< UInt_t, UInt_t > | fEventRange |
std::string | fEventListFileName |
QwParameterFile * | fEventListFile |
std::vector< UInt_t > | fEventList |
std::pair< Int_t, Int_t > | fSegmentRange |
TString | fDataFileStem |
TString | fDataFileExtension |
TString | fDataDirectory |
TString | fDataFile |
enum QwEventBuffer::CodaStreamMode | fEvStreamMode |
THaCodaData * | fEvStream |
Int_t | fCurrentRun |
Bool_t | fRunIsSegmented |
std::vector< Int_t > | fRunSegments |
std::vector< Int_t >::iterator | fRunSegmentIterator |
Bool_t | fPhysicsEventFlag |
UInt_t | fEvtLength |
UInt_t | fWordsSoFar |
UInt_t | fEvtType |
UInt_t | fEvtTag |
UInt_t | fBankDataType |
UInt_t | fIDBankNum |
UInt_t | fEvtNumber |
CODA event number; only defined for physics events. More... | |
UInt_t | fEvtClass |
UInt_t | fStatSum |
Double_t | fCleanParameter [3] |
Scan data/clean data from the green monster. More... | |
UInt_t | fFragLength |
UInt_t | fSubbankTag |
UInt_t | fSubbankType |
UInt_t | fSubbankNum |
UInt_t | fROC |
TStopwatch | fRunTimer |
Timer used for runlet processing loop. More... | |
TStopwatch | fStopwatch |
Timer used for internal timing. More... | |
UInt_t | fNumPhysicsEvents |
UInt_t | fStartingPhysicsEvent |
![]() | |
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 |
Static Protected Attributes | |
static std::string | fDefaultDataFileStem = "QwRun_" |
static std::string | fDefaultDataFileExtension = "log" |
Private Member Functions | |
void | ClearEventData (std::vector< VQwSubsystem * > &subsystems) |
Bool_t | FillSubsystemConfigurationData (std::vector< VQwSubsystem * > &subsystems) |
Bool_t | FillSubsystemData (std::vector< VQwSubsystem * > &subsystems) |
Definition at line 33 of file QwEventBuffer.h.
|
protected |
Enumerator | |
---|---|
fEvStreamNull | |
fEvStreamFile | |
fEvStreamET |
Definition at line 216 of file QwEventBuffer.h.
QwEventBuffer::QwEventBuffer | ( | ) |
Default constructor.
Definition at line 42 of file QwEventBuffer.cc.
References QwLog::endl(), fCleanParameter, fDataDirectory, globalEXIT, QwError, and sigint_handler().
|
inlinevirtual |
|
inline |
Return true if file segments are being separated for.
Definition at line 76 of file QwEventBuffer.h.
References fChainDataFiles, and fRunIsSegmented.
Referenced by QwParityDB::GetAnalysisID(), QwParityDB::GetRunletID(), and QwParityDB::SetRunletID().
|
private |
Int_t QwEventBuffer::CloseDataFile | ( | ) |
Definition at line 1162 of file QwEventBuffer.cc.
References fEvStream, fEvStreamFile, fEvStreamMode, and kFileHandleNotConfigured.
Referenced by CloseStream(), CloseThisSegment(), and main().
Int_t QwEventBuffer::CloseETStream | ( | ) |
Definition at line 1190 of file QwEventBuffer.cc.
References fEvStream, fEvStreamFile, fEvStreamMode, and kFileHandleNotConfigured.
Referenced by CloseStream().
Int_t QwEventBuffer::CloseStream | ( | ) |
Closes a currently open event stream.
Definition at line 339 of file QwEventBuffer.cc.
References CloseDataFile(), CloseETStream(), CloseThisSegment(), QwLog::endl(), fChainDataFiles, fEvStreamFile, fEvStreamMode, fRunIsSegmented, fRunTimer, fStopwatch, kFileHandleNotConfigured, and QwWarning.
Referenced by main().
|
protected |
Definition at line 1022 of file QwEventBuffer.cc.
References CloseDataFile(), QwLog::endl(), fRunIsSegmented, fRunSegmentIterator, fRunSegments, kFileHandleNotConfigured, and QwMessage.
Referenced by CloseStream(), and GetFileEvent().
|
protected |
Definition at line 909 of file QwEventBuffer.cc.
References fDataDirectory, fDataFile, fDataFileExtension, and fDataFileStem.
Referenced by OpenDataFile(), and OpenNextSegment().
|
protected |
Definition at line 921 of file QwEventBuffer.cc.
References QwLog::endl(), fCurrentRun, fDataFile, fRunIsSegmented, fRunSegmentIterator, fRunSegments, fSegmentRange, QwError, QwMessage, and QwWarning.
Referenced by OpenDataFile().
|
protected |
Definition at line 582 of file QwEventBuffer.cc.
References fBankDataType, fEvtClass, fEvtNumber, fEvtTag, fEvtType, fIDBankNum, fPhysicsEventFlag, fStatSum, fWordsSoFar, MQwCodaControlEvent::ProcessControlEvent(), SetEventLength(), SetEventType(), and SetWordsSoFar().
Referenced by FillSubsystemData(), and GetEvent().
|
protected |
Definition at line 872 of file QwEventBuffer.cc.
References QwLog::endl(), fEvtLength, fFragLength, fROC, fSubbankNum, fSubbankTag, fSubbankType, fWordsSoFar, and QwError.
Referenced by FillEPICSData(), FillObjectWithEventData(), FillSubsystemConfigurationData(), and FillSubsystemData().
|
static |
Defines configuration options for QwEventBuffer class using QwOptions functionality.
options | Options object |
Definition at line 78 of file QwEventBuffer.cc.
References QwOptions::AddDefaultOptions(), QwOptions::AddOptions(), default_bool_value, fDefaultDataFileExtension, and fDefaultDataFileStem.
Referenced by QwOptions::DefineOptions().
Int_t QwEventBuffer::EncodeEndEvent | ( | ) |
Definition at line 563 of file QwEventBuffer.cc.
References MQwCodaControlEvent::kEND_EVENT, MQwCodaControlEvent::ProcessEnd(), and WriteEvent().
Referenced by main().
Int_t QwEventBuffer::EncodeGoEvent | ( | ) |
Definition at line 537 of file QwEventBuffer.cc.
References MQwCodaControlEvent::kGO_EVENT, MQwCodaControlEvent::ProcessGo(), and WriteEvent().
Referenced by main().
Int_t QwEventBuffer::EncodePauseEvent | ( | ) |
Definition at line 550 of file QwEventBuffer.cc.
References MQwCodaControlEvent::kPAUSE_EVENT, MQwCodaControlEvent::ProcessPause(), and WriteEvent().
Int_t QwEventBuffer::EncodePrestartEvent | ( | int | runnumber, |
int | runtype = 0 |
||
) |
Definition at line 525 of file QwEventBuffer.cc.
References MQwCodaControlEvent::kPRESTART_EVENT, MQwCodaControlEvent::ProcessPrestart(), and WriteEvent().
Referenced by main().
Int_t QwEventBuffer::EncodeSubsystemData | ( | QwSubsystemArray & | subsystems | ) |
Definition at line 486 of file QwEventBuffer.cc.
References QwSubsystemArray::EncodeEventData(), fEvtNumber, and WriteEvent().
Referenced by main().
Bool_t QwEventBuffer::FillEPICSData | ( | QwEPICSEvent & | epics | ) |
Definition at line 798 of file QwEventBuffer.cc.
References DecodeSubbankHeader(), QwLog::endl(), QwEPICSEvent::ExtractEPICSValues(), fBankDataType, fEvStream, fFragLength, fSubbankType, fWordsSoFar, GetEventNumber(), IsEPICSEvent(), kNullDataWord, QwError, and QwVerbose.
Referenced by main().
Bool_t QwEventBuffer::FillObjectWithEventData | ( | T & | t | ) |
Template to fill any object with data from a CODA event.
The classes for which this template can be specialized must have the following three methods defined:
Definition at line 261 of file QwEventBuffer.h.
References DecodeSubbankHeader(), fBankDataType, fEvStream, fEvtLength, fEvtType, fFragLength, fROC, fSubbankTag, fSubbankType, fWordsSoFar, and kNullDataWord.
Bool_t QwEventBuffer::FillSubsystemConfigurationData | ( | QwSubsystemArray & | subsystems | ) |
Passes the data for the configuration events into each subsystem object. Each object is responsible for recognizing the configuration data which it ought to decode. NOTE TO DAQ PROGRAMMERS: The configuration event for a ROC must have the same subbank structure as the physics events for that ROC.
Definition at line 663 of file QwEventBuffer.cc.
References DecodeSubbankHeader(), QwLog::endl(), fEvStream, fEvtClass, fEvtNumber, fEvtType, fFragLength, fSubbankTag, fSubbankType, fWordsSoFar, kNullDataWord, QwSubsystemArray::ProcessConfigurationBuffer(), QwDebug, and QwMessage.
Referenced by main().
|
private |
Bool_t QwEventBuffer::FillSubsystemData | ( | QwSubsystemArray & | subsystems | ) |
Definition at line 715 of file QwEventBuffer.cc.
References QwSubsystemArray::ClearEventData(), DecodeEventIDBank(), DecodeSubbankHeader(), fCleanParameter, fCurrentRun, fEvStream, fEvtNumber, fEvtType, fFragLength, fROC, fRunIsSegmented, fRunSegmentIterator, fSubbankTag, fSubbankType, fWordsSoFar, QwSubsystemArray::GetEventTypeMask(), kNullDataWord, QwSubsystemArray::ProcessEvBuffer(), QwSubsystemArray::SetCleanParameters(), QwSubsystemArray::SetCodaEventNumber(), QwSubsystemArray::SetCodaEventType(), QwSubsystemArray::SetCodaRunNumber(), and QwSubsystemArray::SetCodaSegmentNumber().
Referenced by main().
|
private |
|
inline |
|
protected |
Definition at line 452 of file QwEventBuffer.cc.
References fEvStream, and globalEXIT.
Referenced by GetEvent().
Int_t QwEventBuffer::GetEvent | ( | ) |
Definition at line 419 of file QwEventBuffer.cc.
References DecodeEventIDBank(), fEvStream, fEvStreamET, fEvStreamFile, fEvStreamMode, GetEtEvent(), GetFileEvent(), kFileHandleNotConfigured, and ResetFlags().
Referenced by GetNextEvent(), main(), and QwTrackingDataserver::NextEvent().
|
inline |
Definition at line 115 of file QwEventBuffer.h.
References fEvtNumber.
Referenced by FillEPICSData(), and main().
|
inline |
Definition at line 86 of file QwEventBuffer.h.
References fEventRange.
Referenced by QwParityDB::SetAnalysisID().
|
protected |
Definition at line 434 of file QwEventBuffer.cc.
References CloseThisSegment(), fChainDataFiles, fEvStream, and OpenNextSegment().
Referenced by GetEvent().
Int_t QwEventBuffer::GetNextEvent | ( | ) |
Definition at line 363 of file QwEventBuffer.cc.
References QwLog::endl(), fEventRange, fEvtNumber, fNumPhysicsEvents, fRunIsSegmented, fSegmentRange, fStopwatch, GetEvent(), GetNextEventRange(), GetSegmentNumber(), globalEXIT, IsPhysicsEvent(), QwMessage, and QwVerbose.
Referenced by main().
Bool_t QwEventBuffer::GetNextEventRange | ( | ) |
Read the next requested event range, return true if success.
Definition at line 202 of file QwEventBuffer.cc.
References QwLog::endl(), fEventListFile, fEventRange, QwParameterFile::IsEOF(), QwParameterFile::LineIsEmpty(), QwParameterFile::ParseIntRange(), QwMessage, QwParameterFile::ReadNextLine(), QwParameterFile::TrimComment(), and QwParameterFile::TrimWhitespace().
Referenced by GetNextEvent(), and GetNextRunRange().
Bool_t QwEventBuffer::GetNextRunNumber | ( | ) |
Get the next run in the active run range, proceed to next range if needed.
Definition at line 246 of file QwEventBuffer.cc.
References fCurrentRun, fRunRange, and GetNextRunRange().
Referenced by OpenNextStream().
Bool_t QwEventBuffer::GetNextRunRange | ( | ) |
Read the next requested run range, return true if success.
Definition at line 223 of file QwEventBuffer.cc.
References QwLog::endl(), fEventListFile, fEventRange, fRunListFile, fRunRange, QwParameterFile::GetLine(), GetNextEventRange(), QwParameterFile::IsEOF(), QwParameterFile::ParseIntRange(), QwMessage, QwWarning, and QwParameterFile::ReadNextSection().
Referenced by GetNextRunNumber(), and ProcessOptions().
TString QwEventBuffer::GetRunLabel | ( | ) | const |
Returns a string like <run#> or <run#>.<file#>
Definition at line 263 of file QwEventBuffer.cc.
References fChainDataFiles, fCurrentRun, fRunIsSegmented, and fRunSegmentIterator.
Referenced by main().
|
inline |
Return CODA file run number.
Definition at line 80 of file QwEventBuffer.h.
References fCurrentRun.
Referenced by QwParityDB::GetAnalysisID(), QwParityDB::GetRunID(), QwParityDB::GetRunletID(), main(), PrintRunTimes(), QwParityDB::SetRunID(), QwParityDB::SetRunletID(), and QwParityDB::SetupOneRun().
|
inline |
Return CODA file segment number.
Definition at line 82 of file QwEventBuffer.h.
References fRunSegmentIterator, and fRunSegments.
Referenced by QwParityDB::GetAnalysisID(), GetNextEvent(), QwParityDB::GetRunletID(), main(), and QwParityDB::SetRunletID().
|
inline |
Definition at line 130 of file QwEventBuffer.h.
References fEvtType.
Referenced by FillEPICSData(), and main().
|
inline |
Definition at line 110 of file QwEventBuffer.h.
References fEvtType, and fIDBankNum.
Referenced by GetNextEvent(), and main().
|
inline |
Definition at line 126 of file QwEventBuffer.h.
References fEvtType.
Referenced by main().
Int_t QwEventBuffer::OpenDataFile | ( | UInt_t | current_run, |
Short_t | seg | ||
) |
Definition at line 1078 of file QwEventBuffer.cc.
References fCurrentRun, fRunIsSegmented, fRunSegmentIterator, fRunSegments, and OpenNextSegment().
Referenced by main(), OpenDataFile(), OpenNextSegment(), OpenNextStream(), QwTrackingDataserver::QwTrackingDataserver(), and ReOpenStream().
Int_t QwEventBuffer::OpenDataFile | ( | UInt_t | current_run, |
const TString | rw = "R" |
||
) |
Definition at line 1092 of file QwEventBuffer.cc.
References DataFile(), DataFileIsSegmented(), fCurrentRun, OpenDataFile(), and OpenNextSegment().
Int_t QwEventBuffer::OpenDataFile | ( | const TString | filename, |
const TString | rw = "R" |
||
) |
Definition at line 1108 of file QwEventBuffer.cc.
References QwLog::endl(), fDataDirectory, fDataFile, fEvStream, fEvStreamFile, fEvStreamMode, fEvStreamNull, QwDebug, QwError, and QwMessage.
Int_t QwEventBuffer::OpenETStream | ( | TString | computer, |
TString | session, | ||
int | mode, | ||
const TString | stationname = "" |
||
) |
Definition at line 1172 of file QwEventBuffer.cc.
References fEvStream, fEvStreamET, fEvStreamMode, and fEvStreamNull.
Referenced by OpenNextStream(), and ReOpenStream().
|
protected |
Definition at line 1043 of file QwEventBuffer.cc.
References DataFile(), QwLog::endl(), fCurrentRun, fRunIsSegmented, fRunSegmentIterator, fRunSegments, kNoNextDataFile, kRunNotSegmented, OpenDataFile(), QwError, and QwMessage.
Referenced by GetFileEvent(), OpenDataFile(), OpenNextStream(), and ReOpenStream().
Int_t QwEventBuffer::OpenNextStream | ( | ) |
Opens the event stream (file or ET) based on the internal flags.
Definition at line 293 of file QwEventBuffer.cc.
References QwLog::endl(), fChainDataFiles, fCurrentRun, fETHostname, fETSession, fETStationName, fEventRange, fEvtNumber, fNumPhysicsEvents, fOnline, fRunTimer, fStartingPhysicsEvent, fStopwatch, GetNextRunNumber(), globalEXIT, OpenDataFile(), OpenETStream(), OpenNextSegment(), QwError, and QwMessage.
Referenced by main().
void QwEventBuffer::PrintRunTimes | ( | ) |
Definition at line 185 of file QwEventBuffer.cc.
References QwLog::endl(), fNumPhysicsEvents, fRunTimer, fStartingPhysicsEvent, GetRunNumber(), and QwMessage.
Referenced by main().
void QwEventBuffer::ProcessOptions | ( | QwOptions & | options | ) |
Sets internal flags based on the QwOptions.
Definition at line 120 of file QwEventBuffer.cc.
References QwLog::endl(), fChainDataFiles, fCurrentRun, fDataFileExtension, fDataFileStem, fETHostname, fETSession, fETStationName, fEventListFile, fEventRange, fOnline, fRunListFile, fRunListFileName, fRunRange, fSegmentRange, QwOptions::GetIntValuePair(), QwParameterFile::GetLine(), GetNextRunRange(), QwOptions::GetValue(), QwOptions::HasValue(), QwError, and QwWarning.
Referenced by main().
Int_t QwEventBuffer::ReOpenStream | ( | ) |
Definition at line 272 of file QwEventBuffer.cc.
References fCurrentRun, fETHostname, fETSession, fETStationName, fNumPhysicsEvents, fOnline, fRunIsSegmented, fStartingPhysicsEvent, OpenDataFile(), OpenETStream(), and OpenNextSegment().
Referenced by main().
void QwEventBuffer::ResetFlags | ( | ) |
Definition at line 578 of file QwEventBuffer.cc.
Referenced by GetEvent(), and WriteEvent().
|
inline |
|
inlinestatic |
Definition at line 39 of file QwEventBuffer.h.
References fDefaultDataFileExtension.
|
inlinestatic |
Definition at line 36 of file QwEventBuffer.h.
References fDefaultDataFileStem.
Referenced by main().
|
inlineprotected |
Definition at line 209 of file QwEventBuffer.h.
References fEvtLength.
Referenced by DecodeEventIDBank().
|
inlineprotected |
Definition at line 210 of file QwEventBuffer.h.
References fEvtType.
Referenced by DecodeEventIDBank().
|
inlineprotected |
Definition at line 211 of file QwEventBuffer.h.
References fWordsSoFar.
Referenced by DecodeEventIDBank().
Int_t QwEventBuffer::WriteEvent | ( | int * | buffer | ) |
Definition at line 463 of file QwEventBuffer.cc.
References QwLog::endl(), fEvStreamET, fEvStreamFile, fEvStreamMode, kFileHandleNotConfigured, QwMessage, ResetFlags(), and WriteFileEvent().
Referenced by EncodeEndEvent(), EncodeGoEvent(), EncodePauseEvent(), EncodePrestartEvent(), and EncodeSubsystemData().
|
protected |
Definition at line 476 of file QwEventBuffer.cc.
References fEvStream.
Referenced by WriteEvent().
|
protected |
Definition at line 237 of file QwEventBuffer.h.
Referenced by DecodeEventIDBank(), FillEPICSData(), and FillObjectWithEventData().
|
protected |
Definition at line 166 of file QwEventBuffer.h.
Referenced by AreRunletsSplit(), CloseStream(), GetFileEvent(), GetRunLabel(), OpenNextStream(), and ProcessOptions().
|
protected |
Scan data/clean data from the green monster.
Definition at line 244 of file QwEventBuffer.h.
Referenced by FillSubsystemData(), and QwEventBuffer().
|
protected |
Definition at line 219 of file QwEventBuffer.h.
Referenced by DataFileIsSegmented(), FillSubsystemData(), GetNextRunNumber(), GetRunLabel(), GetRunNumber(), OpenDataFile(), OpenNextSegment(), OpenNextStream(), ProcessOptions(), and ReOpenStream().
|
protected |
Definition at line 187 of file QwEventBuffer.h.
Referenced by DataFile(), OpenDataFile(), QwEventBuffer(), and SetDataDirectory().
|
protected |
Definition at line 188 of file QwEventBuffer.h.
Referenced by DataFile(), DataFileIsSegmented(), GetDataFile(), and OpenDataFile().
|
protected |
Definition at line 185 of file QwEventBuffer.h.
Referenced by DataFile(), and ProcessOptions().
|
protected |
Definition at line 184 of file QwEventBuffer.h.
Referenced by DataFile(), and ProcessOptions().
|
staticprotected |
Definition at line 182 of file QwEventBuffer.h.
Referenced by DefineOptions(), and SetDefaultDataFileExtension().
|
staticprotected |
Definition at line 181 of file QwEventBuffer.h.
Referenced by DefineOptions(), and SetDefaultDataFileStem().
|
protected |
Definition at line 162 of file QwEventBuffer.h.
Referenced by OpenNextStream(), ProcessOptions(), and ReOpenStream().
|
protected |
Definition at line 163 of file QwEventBuffer.h.
Referenced by OpenNextStream(), ProcessOptions(), and ReOpenStream().
|
protected |
Definition at line 164 of file QwEventBuffer.h.
Referenced by OpenNextStream(), ProcessOptions(), and ReOpenStream().
|
protected |
Definition at line 175 of file QwEventBuffer.h.
|
protected |
Definition at line 174 of file QwEventBuffer.h.
Referenced by GetNextEventRange(), GetNextRunRange(), and ProcessOptions().
|
protected |
Definition at line 173 of file QwEventBuffer.h.
|
protected |
Definition at line 172 of file QwEventBuffer.h.
Referenced by GetEventRange(), GetNextEvent(), GetNextEventRange(), GetNextRunRange(), OpenNextStream(), and ProcessOptions().
|
protected |
Definition at line 217 of file QwEventBuffer.h.
Referenced by CloseDataFile(), CloseETStream(), FillEPICSData(), FillObjectWithEventData(), FillSubsystemConfigurationData(), FillSubsystemData(), GetEtEvent(), GetEvent(), GetFileEvent(), OpenDataFile(), OpenETStream(), WriteFileEvent(), and ~QwEventBuffer().
|
protected |
Referenced by CloseDataFile(), CloseETStream(), CloseStream(), GetEvent(), OpenDataFile(), OpenETStream(), and WriteEvent().
|
protected |
Definition at line 241 of file QwEventBuffer.h.
Referenced by DecodeEventIDBank(), and FillSubsystemConfigurationData().
|
protected |
Definition at line 231 of file QwEventBuffer.h.
Referenced by DecodeSubbankHeader(), FillObjectWithEventData(), and SetEventLength().
|
protected |
CODA event number; only defined for physics events.
Definition at line 240 of file QwEventBuffer.h.
Referenced by DecodeEventIDBank(), EncodeSubsystemData(), FillSubsystemConfigurationData(), FillSubsystemData(), GetEventNumber(), GetNextEvent(), and OpenNextStream().
|
protected |
Definition at line 236 of file QwEventBuffer.h.
Referenced by DecodeEventIDBank().
|
protected |
Definition at line 234 of file QwEventBuffer.h.
Referenced by DecodeEventIDBank(), FillObjectWithEventData(), FillSubsystemConfigurationData(), FillSubsystemData(), IsEPICSEvent(), IsPhysicsEvent(), IsROCConfigurationEvent(), and SetEventType().
|
protected |
Definition at line 246 of file QwEventBuffer.h.
Referenced by DecodeSubbankHeader(), FillEPICSData(), FillObjectWithEventData(), FillSubsystemConfigurationData(), and FillSubsystemData().
|
protected |
Definition at line 238 of file QwEventBuffer.h.
Referenced by DecodeEventIDBank(), and IsPhysicsEvent().
|
protected |
Definition at line 256 of file QwEventBuffer.h.
Referenced by GetNextEvent(), OpenNextStream(), PrintRunTimes(), and ReOpenStream().
|
protected |
Definition at line 161 of file QwEventBuffer.h.
Referenced by OpenNextStream(), ProcessOptions(), and ReOpenStream().
|
protected |
Definition at line 229 of file QwEventBuffer.h.
Referenced by DecodeEventIDBank().
|
protected |
Definition at line 250 of file QwEventBuffer.h.
Referenced by DecodeSubbankHeader(), FillObjectWithEventData(), and FillSubsystemData().
|
protected |
Definition at line 221 of file QwEventBuffer.h.
Referenced by AreRunletsSplit(), CloseStream(), CloseThisSegment(), DataFileIsSegmented(), FillSubsystemData(), GetNextEvent(), GetRunLabel(), OpenDataFile(), OpenNextSegment(), and ReOpenStream().
|
protected |
Definition at line 169 of file QwEventBuffer.h.
Referenced by GetNextRunRange(), ProcessOptions(), and ~QwEventBuffer().
|
protected |
Definition at line 168 of file QwEventBuffer.h.
Referenced by ProcessOptions().
|
protected |
Definition at line 167 of file QwEventBuffer.h.
Referenced by GetNextRunNumber(), GetNextRunRange(), and ProcessOptions().
|
protected |
Definition at line 170 of file QwEventBuffer.h.
|
protected |
Definition at line 170 of file QwEventBuffer.h.
|
protected |
Definition at line 225 of file QwEventBuffer.h.
Referenced by CloseThisSegment(), DataFileIsSegmented(), FillSubsystemData(), GetRunLabel(), GetSegmentNumber(), OpenDataFile(), and OpenNextSegment().
|
protected |
Definition at line 224 of file QwEventBuffer.h.
Referenced by CloseThisSegment(), DataFileIsSegmented(), GetSegmentNumber(), OpenDataFile(), and OpenNextSegment().
|
protected |
Timer used for runlet processing loop.
Definition at line 252 of file QwEventBuffer.h.
Referenced by CloseStream(), OpenNextStream(), and PrintRunTimes().
|
protected |
Definition at line 177 of file QwEventBuffer.h.
Referenced by DataFileIsSegmented(), GetNextEvent(), and ProcessOptions().
|
protected |
Definition at line 257 of file QwEventBuffer.h.
Referenced by OpenNextStream(), PrintRunTimes(), and ReOpenStream().
|
protected |
Definition at line 242 of file QwEventBuffer.h.
Referenced by DecodeEventIDBank().
|
protected |
Timer used for internal timing.
Definition at line 253 of file QwEventBuffer.h.
Referenced by CloseStream(), GetNextEvent(), and OpenNextStream().
|
protected |
Definition at line 249 of file QwEventBuffer.h.
Referenced by DecodeSubbankHeader().
|
protected |
Definition at line 247 of file QwEventBuffer.h.
Referenced by DecodeSubbankHeader(), FillObjectWithEventData(), FillSubsystemConfigurationData(), and FillSubsystemData().
|
protected |
Definition at line 248 of file QwEventBuffer.h.
Referenced by DecodeSubbankHeader(), FillEPICSData(), FillObjectWithEventData(), FillSubsystemConfigurationData(), and FillSubsystemData().
|
protected |
Definition at line 232 of file QwEventBuffer.h.
Referenced by DecodeEventIDBank(), DecodeSubbankHeader(), FillEPICSData(), FillObjectWithEventData(), FillSubsystemConfigurationData(), FillSubsystemData(), and SetWordsSoFar().
|
static |
Definition at line 46 of file QwEventBuffer.h.
Referenced by CloseDataFile(), CloseETStream(), CloseStream(), CloseThisSegment(), GetEvent(), and WriteEvent().
|
static |
Definition at line 45 of file QwEventBuffer.h.
Referenced by OpenNextSegment().
|
static |
This is the ASCII character array 'NULL', and is used by the DAQ to indicate a known empty buffer.
Definition at line 48 of file QwEventBuffer.h.
Referenced by FillEPICSData(), FillObjectWithEventData(), FillSubsystemConfigurationData(), and FillSubsystemData().
|
static |
Definition at line 44 of file QwEventBuffer.h.
Referenced by OpenNextSegment().