|
JAPAn
Just Another Parity Analyzer
|
Event buffer management for reading and processing CODA data. More...
#include <QwEventBuffer.h>
Collaboration diagram for QwEventBuffer:Public Member Functions | |
| QwEventBuffer () | |
| Default constructor. | |
| virtual | ~QwEventBuffer () |
| void | ProcessOptions (QwOptions &options) |
| Sets internal flags based on the QwOptions. | |
| void | PrintRunTimes () |
| TString | GetRunLabel () const |
| Returns a string like <run#> or <run#>.<file#> | |
| Bool_t | AreRunletsSplit () const |
| Return true if file segments are being separated for. | |
| Int_t | GetRunNumber () const |
| Return CODA file run number. | |
| Int_t | GetSegmentNumber () const |
| Return CODA file segment number. | |
| std::pair< UInt_t, UInt_t > | GetEventRange () const |
| Int_t | OpenNextStream () |
| Opens the event stream (file or ET) based on the internal flags. | |
| Int_t | CloseStream () |
| Closes a currently open event stream. | |
| void | SetDataDirectory (const TString datadir) |
| const TString & | GetDataFile () const |
| const TString & | GetDataDirectory () 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 | GetPhysicsEventNumber () |
| Int_t | GetEventNumber () |
| Bool_t | GetNextEventRange () |
| Read the next requested event range, return true if success. | |
| Bool_t | GetNextRunRange () |
| Read the next requested run range, return true if success. | |
| Bool_t | GetNextRunNumber () |
| Get the next run in the active run range, proceed to next range if needed. | |
| void | VerifyCodaVersion (const UInt_t *buffer) |
| Int_t | GetNextEvent () |
| Int_t | GetEvent () |
| Int_t | WriteEvent (int *buffer) |
| Bool_t | IsOnline () |
| 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) |
| void | ResetControlParameters () |
| void | ReportRunSummary () |
| Int_t | EncodeSubsystemData (QwSubsystemArray &subsystems) |
| Int_t | EncodePrestartEvent (int runnumber, int runtype=0) |
| Int_t | EncodeGoEvent () |
| Int_t | EncodePauseEvent () |
| Int_t | EncodeEndEvent () |
| TString | GetStartSQLTime () |
| TString | GetEndSQLTime () |
| time_t | GetStartUnixTime () |
| time_t | GetEndUnixTime () |
| void | ResetFlags () |
Static Public Member Functions | |
| static void | DefineOptions (QwOptions &options) |
| static void | SetDefaultDataDirectory (const std::string &dir) |
| 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 } |
| typedef ULong64_t | RocBankLabel_t |
| Methods and data members needed to find marker words. | |
Protected Member Functions | |
| Int_t | GetFileEvent () |
| Int_t | GetEtEvent () |
| Int_t | WriteFileEvent (int *buffer) |
| Int_t | WriteEtEvent (int *buffer) |
| Bool_t | DataFileIsSegmented () |
| Int_t | CloseThisSegment () |
| Int_t | OpenNextSegment () |
| const TString & | DataFile (const UInt_t run, const Short_t seg) |
| std::size_t | CheckForMarkerWords (QwSubsystemArray &subsystems) |
| UInt_t | FindMarkerWord (UInt_t markerID, UInt_t *buffer, UInt_t num_words) |
| UInt_t | GetMarkerWord (UInt_t markerID) |
Protected Attributes | |
| Bool_t | fOnline |
| TString | fETHostname |
| TString | fETSession |
| TString | fETStationName |
| Int_t | fETWaitMode |
| Bool_t | fExitOnEnd |
| Bool_t | fEventRateLimitEnabled {false} |
| Double_t | fMaxEventRate {0.0} |
| std::chrono::duration< double > | fMinEventInterval |
| std::chrono::duration< double > | fAccumulatedDelay {0.0} |
| std::chrono::steady_clock::time_point | fLastEventTime |
| Bool_t | fChainDataFiles |
| std::pair< Int_t, Int_t > | fRunRange |
| std::string | fRunListFileName |
| std::unique_ptr< QwParameterFile > | fRunListFile |
| std::vector< Int_t > | fRunRangeMinList |
| std::vector< Int_t > | fRunRangeMaxList |
| std::pair< UInt_t, UInt_t > | fEventRange |
| std::string | fEventListFileName |
| std::unique_ptr< 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 |
| Double_t | fCleanParameter [3] |
| Scan data/clean data from the green monster. | |
| TStopwatch | fRunTimer |
| Timer used for runlet processing loop. | |
| TStopwatch | fStopwatch |
| Timer used for internal timing. | |
| std::unordered_map< RocBankLabel_t, std::vector< UInt_t > > | fMarkerList |
| std::unordered_map< RocBankLabel_t, std::vector< UInt_t > > | fOffsetList |
| RocBankLabel_t | fThisRocBankLabel |
| UInt_t | fNumPhysicsEvents |
| UInt_t | fStartingPhysicsEvent |
| Bool_t | fSingleFile |
| VEventDecoder * | decoder |
Static Protected Attributes | |
| static std::string | fDefaultDataDirectory = "/adaq1/data1/apar" |
| 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) |
Private Attributes | |
| Int_t | fDataVersionVerify = 0 |
| Int_t | fDataVersion |
Event buffer management for reading and processing CODA data.
Manages the reading of CODA event data files, including support for segmented files, run lists, and event stream processing. Handles event decoding via pluggable decoder classes and provides iteration over events and runs.
Definition at line 47 of file QwEventBuffer.h.
|
protected |
Methods and data members needed to find marker words.
Definition at line 276 of file QwEventBuffer.h.
|
protected |
| Enumerator | |
|---|---|
| fEvStreamNull | |
| fEvStreamFile | |
| fEvStreamET | |
Definition at line 255 of file QwEventBuffer.h.
| QwEventBuffer::QwEventBuffer | ( | ) |
Default constructor.
Definition at line 56 of file QwEventBuffer.cc.
References decoder, fCleanParameter, fCurrentRun, fDataDirectory, fDataFileExtension, fDataFileStem, fDefaultDataDirectory, fDefaultDataFileExtension, fDefaultDataFileStem, fEventListFile, fEvStream, fEvStreamMode, fEvStreamNull, fNumPhysicsEvents, fRunListFile, fSingleFile, globalEXIT, onlineRestart, sigint_handler(), and sigusr_handler().
Here is the call graph for this function:
|
inlinevirtual |
|
inline |
Return true if file segments are being separated for.
Definition at line 93 of file QwEventBuffer.h.
References fChainDataFiles, and fRunIsSegmented.
|
protected |
Definition at line 1313 of file QwEventBuffer.cc.
References decoder, QwLog::endl(), fMarkerList, fOffsetList, fThisRocBankLabel, QwSubsystemArray::GetMarkerWordList(), and QwDebug.
Referenced by FillSubsystemData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| Int_t QwEventBuffer::CloseDataFile | ( | ) |
Definition at line 1275 of file QwEventBuffer.cc.
References fEvStream, fEvStreamFile, fEvStreamMode, and kFileHandleNotConfigured.
Referenced by CloseStream(), CloseThisSegment(), and main().
Here is the caller graph for this function:| Int_t QwEventBuffer::CloseETStream | ( | ) |
Definition at line 1303 of file QwEventBuffer.cc.
References fEvStream, fEvStreamET, fEvStreamMode, and kFileHandleNotConfigured.
Referenced by CloseStream().
Here is the caller graph for this function:| Int_t QwEventBuffer::CloseStream | ( | ) |
Closes a currently open event stream.
Definition at line 428 of file QwEventBuffer.cc.
References CloseDataFile(), CloseETStream(), CloseThisSegment(), QwLog::endl(), fChainDataFiles, fEvStreamFile, fEvStreamMode, fRunIsSegmented, fRunTimer, fStopwatch, kFileHandleNotConfigured, and QwWarning.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1135 of file QwEventBuffer.cc.
References CloseDataFile(), QwLog::endl(), fRunIsSegmented, fRunSegmentIterator, fRunSegments, kFileHandleNotConfigured, and QwMessage.
Referenced by CloseStream(), and GetFileEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1016 of file QwEventBuffer.cc.
References fDataDirectory, fDataFile, fDataFileExtension, fDataFileStem, and fSingleFile.
Referenced by OpenDataFile(), and OpenNextSegment().
Here is the caller graph for this function:
|
protected |
Definition at line 1030 of file QwEventBuffer.cc.
References QwLog::endl(), fCurrentRun, fDataFile, fRunIsSegmented, fRunSegmentIterator, fRunSegments, fSegmentRange, fSingleFile, QwError, QwMessage, and QwWarning.
Referenced by OpenDataFile().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Defines configuration options for QwEventBuffer class using QwOptions functionality.
| options | Options object |
Definition at line 88 of file QwEventBuffer.cc.
References QwOptions::AddDefaultOptions(), QwOptions::AddOptions(), fDefaultDataDirectory, fDefaultDataFileExtension, and fDefaultDataFileStem.
Referenced by QwOptions::DefineOptions().
Here is the call graph for this function:
Here is the caller graph for this function:| Int_t QwEventBuffer::EncodeEndEvent | ( | ) |
Definition at line 774 of file QwEventBuffer.cc.
References decoder, and WriteEvent().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| Int_t QwEventBuffer::EncodeGoEvent | ( | ) |
Definition at line 758 of file QwEventBuffer.cc.
References decoder, and WriteEvent().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| Int_t QwEventBuffer::EncodePauseEvent | ( | ) |
Definition at line 766 of file QwEventBuffer.cc.
References decoder, and WriteEvent().
Here is the call graph for this function:| Int_t QwEventBuffer::EncodePrestartEvent | ( | int | runnumber, |
| int | runtype = 0 ) |
Definition at line 751 of file QwEventBuffer.cc.
References decoder, and WriteEvent().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| Int_t QwEventBuffer::EncodeSubsystemData | ( | QwSubsystemArray & | subsystems | ) |
Definition at line 691 of file QwEventBuffer.cc.
References decoder, QwSubsystemArray::EncodeEventData(), QwSubsystemArray::GetROCIDList(), and WriteEvent().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| Bool_t QwEventBuffer::FillEPICSData | ( | QwEPICSEvent & | epics | ) |
Definition at line 942 of file QwEventBuffer.cc.
References decoder, QwLog::endl(), QwEPICSEvent::ExtractEPICSValues(), fEvStream, GetEventNumber(), IsEPICSEvent(), kNullDataWord, QwError, and QwVerbose.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 295 of file QwEventBuffer.h.
References decoder, fEvStream, 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 787 of file QwEventBuffer.cc.
References decoder, QwLog::endl(), fEvStream, kNullDataWord, QwSubsystemArray::ProcessConfigurationBuffer(), QwDebug, and QwMessage.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| Bool_t QwEventBuffer::FillSubsystemData | ( | QwSubsystemArray & | subsystems | ) |
Definition at line 839 of file QwEventBuffer.cc.
References CheckForMarkerWords(), QwSubsystemArray::ClearEventData(), decoder, QwLog::endl(), fCleanParameter, fCurrentRun, fEvStream, FindMarkerWord(), fRunIsSegmented, fRunSegmentIterator, QwSubsystemArray::GetEventTypeMask(), GetMarkerWord(), kNullDataWord, QwSubsystemArray::ProcessEvBuffer(), QwDebug, QwSubsystemArray::SetCleanParameters(), QwSubsystemArray::SetCodaEventNumber(), QwSubsystemArray::SetCodaEventType(), QwSubsystemArray::SetCodaRunNumber(), and QwSubsystemArray::SetCodaSegmentNumber().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
protected |
Definition at line 1338 of file QwEventBuffer.cc.
References fMarkerList, fOffsetList, and fThisRocBankLabel.
Referenced by FillSubsystemData().
Here is the caller graph for this function:
|
inline |
Definition at line 116 of file QwEventBuffer.h.
References fDataDirectory.
Referenced by main().
Here is the caller graph for this function:
|
inline |
| TString QwEventBuffer::GetEndSQLTime | ( | ) |
Definition at line 736 of file QwEventBuffer.cc.
References decoder.
Referenced by main().
Here is the caller graph for this function:| time_t QwEventBuffer::GetEndUnixTime | ( | ) |
Definition at line 746 of file QwEventBuffer.cc.
References decoder.
|
protected |
Definition at line 591 of file QwEventBuffer.cc.
References fEvStream, and globalEXIT.
Referenced by GetEvent().
Here is the caller graph for this function:| Int_t QwEventBuffer::GetEvent | ( | ) |
Definition at line 523 of file QwEventBuffer.cc.
References decoder, fDataVersionVerify, fEvStream, fEvStreamET, fEvStreamFile, fEvStreamMode, GetEtEvent(), GetFileEvent(), kFileHandleNotConfigured, ResetFlags(), and VerifyCodaVersion().
Referenced by GetNextEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 133 of file QwEventBuffer.h.
References decoder.
Referenced by FillEPICSData(), and main().
Here is the caller graph for this function:
|
inline |
|
protected |
Definition at line 573 of file QwEventBuffer.cc.
References CloseThisSegment(), fChainDataFiles, fEvStream, and OpenNextSegment().
Referenced by GetEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 1333 of file QwEventBuffer.cc.
References fMarkerList, and fThisRocBankLabel.
Referenced by FillSubsystemData().
Here is the caller graph for this function:| Int_t QwEventBuffer::GetNextEvent | ( | ) |
Definition at line 452 of file QwEventBuffer.cc.
References decoder, QwLog::endl(), fEventRange, fExitOnEnd, fNumPhysicsEvents, fOnline, fRunIsSegmented, fSegmentRange, fStopwatch, GetEvent(), GetNextEventRange(), GetSegmentNumber(), globalEXIT, IsPhysicsEvent(), onlineRestart, QwMessage, and QwVerbose.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| Bool_t QwEventBuffer::GetNextEventRange | ( | ) |
Read the next requested event range, return true if success.
Definition at line 293 of file QwEventBuffer.cc.
References QwLog::endl(), fEventListFile, fEventRange, QwParameterFile::ParseIntRange(), and QwMessage.
Referenced by GetNextEvent(), and GetNextRunRange().
Here is the call graph for this function:
Here is the caller graph for this function:| Bool_t QwEventBuffer::GetNextRunNumber | ( | ) |
Get the next run in the active run range, proceed to next range if needed.
Definition at line 335 of file QwEventBuffer.cc.
References fCurrentRun, fRunRange, and GetNextRunRange().
Referenced by OpenNextStream().
Here is the call graph for this function:
Here is the caller graph for this function:| Bool_t QwEventBuffer::GetNextRunRange | ( | ) |
Read the next requested run range, return true if success.
Definition at line 314 of file QwEventBuffer.cc.
References QwLog::endl(), fEventListFile, fEventRange, fRunListFile, fRunRange, GetNextEventRange(), QwParameterFile::ParseIntRange(), QwMessage, and QwWarning.
Referenced by GetNextRunNumber(), and ProcessOptions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 132 of file QwEventBuffer.h.
References fNumPhysicsEvents.
Referenced by main().
Here is the caller graph for this function:| TString QwEventBuffer::GetRunLabel | ( | ) | const |
Returns a string like <run#> or <run#>.<file#>
Definition at line 352 of file QwEventBuffer.cc.
References fChainDataFiles, fCurrentRun, fRunIsSegmented, and fRunSegmentIterator.
Referenced by main().
Here is the caller graph for this function:
|
inline |
Return CODA file run number.
Definition at line 97 of file QwEventBuffer.h.
References fCurrentRun.
Referenced by main(), and PrintRunTimes().
Here is the caller graph for this function:
|
inline |
Return CODA file segment number.
Definition at line 99 of file QwEventBuffer.h.
References fRunSegmentIterator, and fRunSegments.
Referenced by GetNextEvent(), and main().
Here is the caller graph for this function:| TString QwEventBuffer::GetStartSQLTime | ( | ) |
Definition at line 731 of file QwEventBuffer.cc.
References decoder.
Referenced by main().
Here is the caller graph for this function:| time_t QwEventBuffer::GetStartUnixTime | ( | ) |
Definition at line 741 of file QwEventBuffer.cc.
References decoder.
|
inline |
Definition at line 151 of file QwEventBuffer.h.
References decoder.
Referenced by FillEPICSData(), and main().
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 128 of file QwEventBuffer.h.
References decoder.
Referenced by GetNextEvent(), and main().
Here is the caller graph for this function:
|
inline |
Definition at line 147 of file QwEventBuffer.h.
References decoder.
Referenced by main().
Here is the caller graph for this function:| Int_t QwEventBuffer::OpenDataFile | ( | const TString | filename, |
| const TString | rw = "R" ) |
Definition at line 1221 of file QwEventBuffer.cc.
References QwLog::endl(), fDataDirectory, fDataFile, fEvStream, fEvStreamFile, fEvStreamMode, fEvStreamNull, QwDebug, QwError, and QwMessage.
Here is the call graph for this function:| Int_t QwEventBuffer::OpenDataFile | ( | UInt_t | current_run, |
| const TString | rw = "R" ) |
Definition at line 1205 of file QwEventBuffer.cc.
References DataFile(), DataFileIsSegmented(), fCurrentRun, OpenDataFile(), and OpenNextSegment().
Here is the call graph for this function:| Int_t QwEventBuffer::OpenDataFile | ( | UInt_t | current_run, |
| Short_t | seg ) |
Definition at line 1191 of file QwEventBuffer.cc.
References fCurrentRun, fRunIsSegmented, fRunSegmentIterator, fRunSegments, and OpenNextSegment().
Referenced by main(), OpenDataFile(), OpenNextSegment(), OpenNextStream(), and ReOpenStream().
Here is the call graph for this function:
Here is the caller graph for this function:| Int_t QwEventBuffer::OpenETStream | ( | TString | computer, |
| TString | session, | ||
| int | mode, | ||
| const TString | stationname = "" ) |
Definition at line 1285 of file QwEventBuffer.cc.
References fEvStream, fEvStreamET, fEvStreamMode, and fEvStreamNull.
Referenced by OpenNextStream(), and ReOpenStream().
Here is the caller graph for this function:
|
protected |
Definition at line 1156 of file QwEventBuffer.cc.
References DataFile(), QwLog::endl(), fCurrentRun, fRunIsSegmented, fRunSegmentIterator, fRunSegments, kNoNextDataFile, kRunNotSegmented, OpenDataFile(), QwError, and QwMessage.
Referenced by GetFileEvent(), OpenDataFile(), OpenDataFile(), OpenNextStream(), and ReOpenStream().
Here is the call graph for this function:
Here is the caller graph for this function:| Int_t QwEventBuffer::OpenNextStream | ( | ) |
Opens the event stream (file or ET) based on the internal flags.
Definition at line 382 of file QwEventBuffer.cc.
References decoder, QwLog::endl(), fChainDataFiles, fCurrentRun, fETHostname, fETSession, fETStationName, fETWaitMode, fEventRange, fNumPhysicsEvents, fOnline, fRunTimer, fStartingPhysicsEvent, fStopwatch, GetNextRunNumber(), globalEXIT, OpenDataFile(), OpenETStream(), OpenNextSegment(), QwError, and QwMessage.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void QwEventBuffer::PrintRunTimes | ( | ) |
Definition at line 276 of file QwEventBuffer.cc.
References QwLog::endl(), fNumPhysicsEvents, fRunTimer, fStartingPhysicsEvent, GetRunNumber(), and QwMessage.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void QwEventBuffer::ProcessOptions | ( | QwOptions & | options | ) |
Sets internal flags based on the QwOptions.
Definition at line 152 of file QwEventBuffer.cc.
References decoder, QwLog::endl(), fChainDataFiles, fCurrentRun, fDataDirectory, fDataFile, fDataFileExtension, fDataFileStem, fDataVersion, fETHostname, fETSession, fETStationName, fETWaitMode, fEventListFile, fEventRange, fEventRateLimitEnabled, fExitOnEnd, fLastEventTime, fMaxEventRate, fMinEventInterval, fOnline, fRunListFile, fRunListFileName, fRunRange, fSegmentRange, fSingleFile, QwOptions::GetIntValuePair(), GetNextRunRange(), QwOptions::GetValue(), QwOptions::HasValue(), QwError, QwMessage, and QwWarning.
Referenced by main(), and main().
Here is the call graph for this function:
Here is the caller graph for this function:| Int_t QwEventBuffer::ReOpenStream | ( | ) |
Definition at line 361 of file QwEventBuffer.cc.
References fCurrentRun, fETHostname, fETSession, fETStationName, fETWaitMode, fNumPhysicsEvents, fOnline, fRunIsSegmented, fStartingPhysicsEvent, OpenDataFile(), OpenETStream(), and OpenNextSegment().
Referenced by main(), and main().
Here is the call graph for this function:
Here is the caller graph for this function:| void QwEventBuffer::ReportRunSummary | ( | ) |
| void QwEventBuffer::ResetControlParameters | ( | ) |
Definition at line 722 of file QwEventBuffer.cc.
References decoder.
Referenced by main().
Here is the caller graph for this function:| void QwEventBuffer::ResetFlags | ( | ) |
Definition at line 784 of file QwEventBuffer.cc.
Referenced by GetEvent(), and WriteEvent().
Here is the caller graph for this function:
|
inline |
Definition at line 112 of file QwEventBuffer.h.
References fDataDirectory.
|
inlinestatic |
Definition at line 50 of file QwEventBuffer.h.
References fDefaultDataDirectory.
|
inlinestatic |
Definition at line 56 of file QwEventBuffer.h.
References fDefaultDataFileExtension.
|
inlinestatic |
Definition at line 53 of file QwEventBuffer.h.
References fDefaultDataFileStem.
| void QwEventBuffer::VerifyCodaVersion | ( | const UInt_t * | buffer | ) |
Definition at line 548 of file QwEventBuffer.cc.
References QwLog::endl(), fDataVersion, fDataVersionVerify, globalEXIT, and QwError.
Referenced by GetEvent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 664 of file QwEventBuffer.cc.
References QwLog::endl(), fEvStream, and QwError.
Referenced by WriteEvent().
Here is the call graph for this function:
Here is the caller graph for this function:| Int_t QwEventBuffer::WriteEvent | ( | int * | buffer | ) |
Definition at line 603 of file QwEventBuffer.cc.
References fAccumulatedDelay, fEventRateLimitEnabled, fEvStreamET, fEvStreamFile, fEvStreamMode, fLastEventTime, fMinEventInterval, globalEXIT, kFileHandleNotConfigured, ResetFlags(), WriteEtEvent(), and WriteFileEvent().
Referenced by EncodeEndEvent(), EncodeGoEvent(), EncodePauseEvent(), EncodePrestartEvent(), and EncodeSubsystemData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 655 of file QwEventBuffer.cc.
References fEvStream.
Referenced by WriteEvent().
Here is the caller graph for this function:
|
protected |
Definition at line 292 of file QwEventBuffer.h.
Referenced by CheckForMarkerWords(), EncodeEndEvent(), EncodeGoEvent(), EncodePauseEvent(), EncodePrestartEvent(), EncodeSubsystemData(), FillEPICSData(), FillObjectWithEventData(), FillSubsystemConfigurationData(), FillSubsystemData(), GetEndSQLTime(), GetEndUnixTime(), GetEvent(), GetEventNumber(), GetNextEvent(), GetStartSQLTime(), GetStartUnixTime(), IsEPICSEvent(), IsPhysicsEvent(), IsROCConfigurationEvent(), OpenNextStream(), ProcessOptions(), QwEventBuffer(), ReportRunSummary(), ResetControlParameters(), and ~QwEventBuffer().
|
protected |
|
protected |
Definition at line 206 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 268 of file QwEventBuffer.h.
Referenced by FillSubsystemData(), and QwEventBuffer().
|
protected |
Definition at line 258 of file QwEventBuffer.h.
Referenced by DataFileIsSegmented(), FillSubsystemData(), GetNextRunNumber(), GetRunLabel(), GetRunNumber(), OpenDataFile(), OpenDataFile(), OpenNextSegment(), OpenNextStream(), ProcessOptions(), QwEventBuffer(), and ReOpenStream().
|
protected |
Definition at line 228 of file QwEventBuffer.h.
Referenced by DataFile(), GetDataDirectory(), OpenDataFile(), ProcessOptions(), QwEventBuffer(), and SetDataDirectory().
|
protected |
Definition at line 229 of file QwEventBuffer.h.
Referenced by DataFile(), DataFileIsSegmented(), GetDataFile(), OpenDataFile(), and ProcessOptions().
|
protected |
Definition at line 226 of file QwEventBuffer.h.
Referenced by DataFile(), ProcessOptions(), and QwEventBuffer().
|
protected |
Definition at line 225 of file QwEventBuffer.h.
Referenced by DataFile(), ProcessOptions(), and QwEventBuffer().
|
private |
Definition at line 188 of file QwEventBuffer.h.
Referenced by ProcessOptions(), and VerifyCodaVersion().
|
private |
Definition at line 187 of file QwEventBuffer.h.
Referenced by GetEvent(), and VerifyCodaVersion().
|
staticprotected |
Definition at line 221 of file QwEventBuffer.h.
Referenced by DefineOptions(), QwEventBuffer(), and SetDefaultDataDirectory().
|
staticprotected |
Definition at line 223 of file QwEventBuffer.h.
Referenced by DefineOptions(), QwEventBuffer(), and SetDefaultDataFileExtension().
|
staticprotected |
Definition at line 222 of file QwEventBuffer.h.
Referenced by DefineOptions(), QwEventBuffer(), and SetDefaultDataFileStem().
|
protected |
Definition at line 193 of file QwEventBuffer.h.
Referenced by OpenNextStream(), ProcessOptions(), and ReOpenStream().
|
protected |
Definition at line 194 of file QwEventBuffer.h.
Referenced by OpenNextStream(), ProcessOptions(), and ReOpenStream().
|
protected |
Definition at line 195 of file QwEventBuffer.h.
Referenced by OpenNextStream(), ProcessOptions(), and ReOpenStream().
|
protected |
Definition at line 196 of file QwEventBuffer.h.
Referenced by OpenNextStream(), ProcessOptions(), and ReOpenStream().
|
protected |
Definition at line 215 of file QwEventBuffer.h.
|
protected |
Definition at line 214 of file QwEventBuffer.h.
Referenced by GetNextEventRange(), GetNextRunRange(), ProcessOptions(), and QwEventBuffer().
|
protected |
Definition at line 213 of file QwEventBuffer.h.
|
protected |
Definition at line 212 of file QwEventBuffer.h.
Referenced by GetEventRange(), GetNextEvent(), GetNextEventRange(), GetNextRunRange(), OpenNextStream(), and ProcessOptions().
|
protected |
Definition at line 200 of file QwEventBuffer.h.
Referenced by ProcessOptions(), and WriteEvent().
|
protected |
Definition at line 256 of file QwEventBuffer.h.
Referenced by CloseDataFile(), CloseETStream(), FillEPICSData(), FillObjectWithEventData(), FillSubsystemConfigurationData(), FillSubsystemData(), GetEtEvent(), GetEvent(), GetFileEvent(), OpenDataFile(), OpenETStream(), QwEventBuffer(), WriteEtEvent(), WriteFileEvent(), and ~QwEventBuffer().
|
protected |
Referenced by CloseDataFile(), CloseETStream(), CloseStream(), GetEvent(), OpenDataFile(), OpenETStream(), QwEventBuffer(), and WriteEvent().
|
protected |
Definition at line 197 of file QwEventBuffer.h.
Referenced by GetNextEvent(), and ProcessOptions().
|
protected |
Definition at line 204 of file QwEventBuffer.h.
Referenced by ProcessOptions(), and WriteEvent().
|
protected |
Definition at line 277 of file QwEventBuffer.h.
Referenced by CheckForMarkerWords(), FindMarkerWord(), and GetMarkerWord().
|
protected |
|
protected |
Definition at line 202 of file QwEventBuffer.h.
Referenced by ProcessOptions(), and WriteEvent().
|
protected |
Definition at line 286 of file QwEventBuffer.h.
Referenced by GetNextEvent(), GetPhysicsEventNumber(), OpenNextStream(), PrintRunTimes(), QwEventBuffer(), and ReOpenStream().
|
protected |
Definition at line 278 of file QwEventBuffer.h.
Referenced by CheckForMarkerWords(), and FindMarkerWord().
|
protected |
Definition at line 192 of file QwEventBuffer.h.
Referenced by GetNextEvent(), IsOnline(), OpenNextStream(), ProcessOptions(), and ReOpenStream().
|
protected |
Definition at line 260 of file QwEventBuffer.h.
Referenced by AreRunletsSplit(), CloseStream(), CloseThisSegment(), DataFileIsSegmented(), FillSubsystemData(), GetNextEvent(), GetRunLabel(), OpenDataFile(), OpenNextSegment(), and ReOpenStream().
|
protected |
Definition at line 209 of file QwEventBuffer.h.
Referenced by GetNextRunRange(), ProcessOptions(), and QwEventBuffer().
|
protected |
Definition at line 208 of file QwEventBuffer.h.
Referenced by ProcessOptions().
|
protected |
Definition at line 207 of file QwEventBuffer.h.
Referenced by GetNextRunNumber(), GetNextRunRange(), and ProcessOptions().
|
protected |
Definition at line 210 of file QwEventBuffer.h.
|
protected |
Definition at line 210 of file QwEventBuffer.h.
|
protected |
Definition at line 264 of file QwEventBuffer.h.
Referenced by CloseThisSegment(), DataFileIsSegmented(), FillSubsystemData(), GetRunLabel(), GetSegmentNumber(), OpenDataFile(), and OpenNextSegment().
|
protected |
Definition at line 263 of file QwEventBuffer.h.
Referenced by CloseThisSegment(), DataFileIsSegmented(), GetSegmentNumber(), OpenDataFile(), and OpenNextSegment().
|
protected |
Timer used for runlet processing loop.
Definition at line 271 of file QwEventBuffer.h.
Referenced by CloseStream(), OpenNextStream(), and PrintRunTimes().
|
protected |
Definition at line 217 of file QwEventBuffer.h.
Referenced by DataFileIsSegmented(), GetNextEvent(), and ProcessOptions().
|
protected |
Definition at line 289 of file QwEventBuffer.h.
Referenced by DataFile(), DataFileIsSegmented(), ProcessOptions(), and QwEventBuffer().
|
protected |
Definition at line 287 of file QwEventBuffer.h.
Referenced by OpenNextStream(), PrintRunTimes(), and ReOpenStream().
|
protected |
Timer used for internal timing.
Definition at line 272 of file QwEventBuffer.h.
Referenced by CloseStream(), GetNextEvent(), and OpenNextStream().
|
protected |
Definition at line 281 of file QwEventBuffer.h.
Referenced by CheckForMarkerWords(), FindMarkerWord(), and GetMarkerWord().
|
static |
Definition at line 63 of file QwEventBuffer.h.
Referenced by CloseDataFile(), CloseETStream(), CloseStream(), CloseThisSegment(), GetEvent(), and WriteEvent().
|
static |
Definition at line 62 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 65 of file QwEventBuffer.h.
Referenced by FillEPICSData(), FillObjectWithEventData(), FillSubsystemConfigurationData(), and FillSubsystemData().
|
static |
Definition at line 61 of file QwEventBuffer.h.
Referenced by OpenNextSegment().