CbmRoot
|
#include <CbmDevEventSink.h>
Public Member Functions | |
CbmDevEventSink () | |
Constructor. | |
virtual | ~CbmDevEventSink () |
Destructor. | |
Protected Member Functions | |
bool | HandleCommand (FairMQMessagePtr &, int flag) |
Action on command messages. | |
bool | HandleData (FairMQParts &parts, int flag) |
Action on data messages. | |
virtual void | InitTask () |
Initialization. | |
Private Member Functions | |
void | Finish () |
Finishing run. | |
Private Attributes | |
size_t | fNumMessages = 0 |
Number of received data messages. | |
size_t | fNumTs = 0 |
Number of processed timeslices. | |
uint64_t | fPrevTsIndex = 0 |
Index of last processed timeslice. | |
bool | fFinishDone = false |
Keep track of whether the Finish method was already called. | |
TimesliceMetaData * | fTsMetaData = nullptr |
Data output: TS meta data. | |
std::vector< CbmDigiEvent > * | fEventVec = nullptr |
Data output: events. | |
FairRunOnline * | fFairRun = nullptr |
FairRunOnline to instantiate FairRootManager. | |
FairRootManager * | fFairRootMgr = nullptr |
FairRootManager used for ROOT file I/O. | |
Definition at line 27 of file CbmDevEventSink.h.
|
inline |
Constructor.
Definition at line 30 of file CbmDevEventSink.h.
|
virtual |
Destructor.
Definition at line 40 of file CbmDevEventSink.cxx.
References fEventVec, fFairRun, fFinishDone, Finish(), and fTsMetaData.
|
private |
Finishing run.
Definition at line 99 of file CbmDevEventSink.cxx.
References fFairRootMgr, fFinishDone, fNumMessages, fNumTs, and fPrevTsIndex.
Referenced by HandleCommand(), and ~CbmDevEventSink().
|
protected |
Action on command messages.
parts | Message |
flag | Not used; ignored |
Definition at line 113 of file CbmDevEventSink.cxx.
References Finish().
Referenced by InitTask().
|
protected |
Action on data messages.
parts | Message |
flag | Not used; ignored |
Definition at line 170 of file CbmDevEventSink.cxx.
References fEventVec, fFairRootMgr, fNumMessages, fTsMetaData, and TimesliceMetaData::GetIndex().
Referenced by InitTask().
|
protectedvirtual |
Initialization.
Definition at line 58 of file CbmDevEventSink.cxx.
References fEventVec, fFairRootMgr, fFairRun, fTsMetaData, HandleCommand(), and HandleData().
|
private |
Data output: events.
Definition at line 67 of file CbmDevEventSink.h.
Referenced by HandleData(), InitTask(), and ~CbmDevEventSink().
|
private |
FairRootManager used for ROOT file I/O.
Definition at line 69 of file CbmDevEventSink.h.
Referenced by Finish(), HandleData(), and InitTask().
|
private |
FairRunOnline to instantiate FairRootManager.
Definition at line 68 of file CbmDevEventSink.h.
Referenced by InitTask(), and ~CbmDevEventSink().
|
private |
Keep track of whether the Finish method was already called.
Definition at line 65 of file CbmDevEventSink.h.
Referenced by Finish(), and ~CbmDevEventSink().
|
private |
Number of received data messages.
Definition at line 62 of file CbmDevEventSink.h.
Referenced by Finish(), and HandleData().
|
private |
Number of processed timeslices.
Definition at line 63 of file CbmDevEventSink.h.
Referenced by Finish().
|
private |
Index of last processed timeslice.
Definition at line 64 of file CbmDevEventSink.h.
Referenced by Finish().
|
private |
Data output: TS meta data.
Definition at line 66 of file CbmDevEventSink.h.
Referenced by HandleData(), InitTask(), and ~CbmDevEventSink().