CbmRoot
|
#include <CbmDeviceEventBuilderEtofStar2019.h>
Public Member Functions | |
CbmDeviceEventBuilderEtofStar2019 () | |
virtual | ~CbmDeviceEventBuilderEtofStar2019 () |
virtual Bool_t | DoUnpack (const fles::Timeslice &ts, size_t component) |
virtual void | Reset () |
virtual void | Finish () |
void | SetParContainers () |
Bool_t | InitContainers () |
Bool_t | ReInitContainers () |
void | SetSandboxMode (Bool_t bSandboxMode=kTRUE) |
void | SetEventDumpEnable (Bool_t bDumpEna=kTRUE) |
void | AddMsComponentToList (size_t component, UShort_t usDetectorId) |
Temp until we change from CbmMcbmUnpack to something else. More... | |
void | SetNbMsInTs (size_t, size_t) |
CbmDeviceEventBuilderEtofStar2019 (const CbmDeviceEventBuilderEtofStar2019 &)=delete | |
CbmDeviceEventBuilderEtofStar2019 | operator= (const CbmDeviceEventBuilderEtofStar2019 &)=delete |
Protected Member Functions | |
virtual void | InitTask () |
bool | HandleData (FairMQMessagePtr &, int) |
bool | HandleParts (FairMQParts &, int) |
bool | HandleMessage (FairMQMessagePtr &, int) |
virtual bool | SendEvent (std::vector< Int_t >, int) |
virtual bool | SendSubevent (uint, char *, int, int) |
Private Member Functions | |
bool | CheckTimeslice (const fles::Timeslice &ts) |
bool | IsChannelNameAllowed (std::string channelName) |
Private Attributes | |
uint64_t | fNumMessages |
Bool_t | fbMonitorMode |
Control flags. More... | |
Bool_t | fbDebugMonitorMode |
Switch ON the filling of a minimal set of histograms. More... | |
Bool_t | fbSandboxMode |
Switch ON the filling of a additional set of histograms. More... | |
Bool_t | fbEventDumpEna |
Switch OFF the emission of data toward the STAR DAQ. More... | |
TList * | fParCList |
Switch ON the dumping of the events to a binary file. More... | |
uint64_t | fulTsCounter |
Statistics & first TS rejection. More... | |
uint64_t | fNumEvt |
std::vector< std::string > | fAllowedChannels |
std::vector< std::vector< std::string > > | fChannelsToSend = {{}, {}, {}} |
CbmStar2019EventBuilderEtofAlgo * | fEventBuilderAlgo |
Processing algo. More... | |
TStopwatch | fTimer |
CbmStar2019TofPar * | fUnpackPar |
std::fstream * | fpBinDumpFile |
Event dump to binary file. More... | |
const UInt_t | kuBinDumpBegWord = 0xFEEDBEAF |
const UInt_t | kuBinDumpEndWord = 0xFAEBDEEF |
Definition at line 19 of file CbmDeviceEventBuilderEtofStar2019.h.
CbmDeviceEventBuilderEtofStar2019::CbmDeviceEventBuilderEtofStar2019 | ( | ) |
Definition at line 46 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fEventBuilderAlgo.
|
virtual |
Definition at line 63 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fEventBuilderAlgo.
|
delete |
void CbmDeviceEventBuilderEtofStar2019::AddMsComponentToList | ( | size_t | component, |
UShort_t | usDetectorId | ||
) |
Temp until we change from CbmMcbmUnpack to something else.
Definition at line 217 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References CbmStar2019EventBuilderEtofAlgo::AddMsComponentToList(), and fEventBuilderAlgo.
|
private |
Definition at line 442 of file CbmDeviceEventBuilderEtofStar2019.cxx.
Referenced by HandleData(), and HandleParts().
|
virtual |
Send the sub-event to the STAR systems
Valid output, do stuff with it!
Definition at line 223 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fbSandboxMode, fEventBuilderAlgo, fulTsCounter, CbmStar2019EventBuilderEtofAlgo::GetEventBuffer(), CbmStar2019EventBuilderEtofAlgo::ProcessTs(), and SendSubevent().
Referenced by HandleData().
|
virtual |
If monitor mode enabled, trigger histos creation, obtain pointer on them and add them to the HTTP server
Obtain vector of pointers on each histo from the algo (+ optionally desired folder)
(Re-)Create ROOT file to store the histos
Register the histos in the HTTP server
Make sure we end up in chosen folder
Write plot
Definition at line 553 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fbMonitorMode, fEventBuilderAlgo, fpBinDumpFile, and CbmStar2019Algo< T >::GetHistoVector().
|
protected |
Definition at line 287 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References CheckTimeslice(), DoUnpack(), and fNumMessages.
|
protected |
Definition at line 418 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References cbm::mq::ChangeState(), cbm::mq::DeviceReady, cbm::mq::End, cbm::mq::Idle, cbm::mq::LogState(), and cbm::mq::Ready.
Referenced by InitTask().
|
protected |
Send the sub-event to the STAR systems
Valid output, do stuff with it!
Definition at line 314 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References CbmStar2019EventBuilderEtofAlgo::AddMsComponentToList(), CheckTimeslice(), dctime, fbSandboxMode, fEventBuilderAlgo, fiSelectComponents, fNumMessages, fulTsCounter, CbmStar2019EventBuilderEtofAlgo::GetEventBuffer(), i, CbmStar2019EventBuilderEtofAlgo::ProcessTs(), and SendSubevent().
Referenced by InitTask().
Bool_t CbmDeviceEventBuilderEtofStar2019::InitContainers | ( | ) |
Obtain vector of pointers on each histo from the algo (+ optionally desired folder)
Definition at line 125 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References CbmStar2019EventBuilderEtofAlgo::CreateHistograms(), fbMonitorMode, fEventBuilderAlgo, fUnpackPar, CbmStar2019Algo< T >::GetHistoVector(), CbmStar2019EventBuilderEtofAlgo::InitContainers(), ReInitContainers(), CbmStar2019EventBuilderEtofAlgo::SetAddStatusToEvent(), and SetParContainers().
Referenced by InitTask().
|
protectedvirtual |
Definition at line 67 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fChannelsToSend, HandleMessage(), HandleParts(), InitContainers(), and IsChannelNameAllowed().
|
private |
Definition at line 103 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fAllowedChannels, and pos.
Referenced by InitTask().
|
delete |
Bool_t CbmDeviceEventBuilderEtofStar2019::ReInitContainers | ( | ) |
Definition at line 279 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fEventBuilderAlgo, and CbmStar2019EventBuilderEtofAlgo::ReInitContainers().
Referenced by InitContainers().
|
virtual |
Definition at line 551 of file CbmDeviceEventBuilderEtofStar2019.cxx.
|
protectedvirtual |
Definition at line 470 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fChannelsToSend, and fNumEvt.
|
protectedvirtual |
Definition at line 502 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fChannelsToSend, and fNumEvt.
Referenced by DoUnpack(), and HandleParts().
void CbmDeviceEventBuilderEtofStar2019::SetEventDumpEnable | ( | Bool_t | bDumpEna = kTRUE | ) |
|
inline |
Definition at line 41 of file CbmDeviceEventBuilderEtofStar2019.h.
void CbmDeviceEventBuilderEtofStar2019::SetParContainers | ( | ) |
Definition at line 185 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fEventBuilderAlgo, fParCList, fUnpackPar, and CbmStar2019EventBuilderEtofAlgo::GetParList().
Referenced by InitContainers().
|
inline |
Definition at line 34 of file CbmDeviceEventBuilderEtofStar2019.h.
References fbSandboxMode.
|
private |
Definition at line 77 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by IsChannelNameAllowed().
|
private |
Switch ON the filling of a minimal set of histograms.
Definition at line 62 of file CbmDeviceEventBuilderEtofStar2019.h.
|
private |
Switch OFF the emission of data toward the STAR DAQ.
Definition at line 65 of file CbmDeviceEventBuilderEtofStar2019.h.
|
private |
Control flags.
Definition at line 60 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by Finish(), and InitContainers().
|
private |
Switch ON the filling of a additional set of histograms.
Definition at line 63 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by DoUnpack(), HandleParts(), and SetSandboxMode().
|
private |
Definition at line 81 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by InitTask(), SendEvent(), and SendSubevent().
|
private |
Processing algo.
Definition at line 84 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by AddMsComponentToList(), CbmDeviceEventBuilderEtofStar2019(), DoUnpack(), Finish(), HandleParts(), InitContainers(), ReInitContainers(), SetParContainers(), and ~CbmDeviceEventBuilderEtofStar2019().
|
private |
Definition at line 72 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by SendEvent(), and SendSubevent().
|
private |
Definition at line 57 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by HandleData(), and HandleParts().
|
private |
Switch ON the dumping of the events to a binary file.
Parameters management
Definition at line 68 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by SetParContainers().
|
private |
Event dump to binary file.
Definition at line 90 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by Finish().
|
private |
Definition at line 85 of file CbmDeviceEventBuilderEtofStar2019.h.
|
private |
Statistics & first TS rejection.
Definition at line 71 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by DoUnpack(), and HandleParts().
|
private |
Definition at line 87 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by InitContainers(), and SetParContainers().
|
private |
Definition at line 91 of file CbmDeviceEventBuilderEtofStar2019.h.
|
private |
Definition at line 92 of file CbmDeviceEventBuilderEtofStar2019.h.