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. | |
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. | |
Bool_t | fbDebugMonitorMode |
Switch ON the filling of a minimal set of histograms. | |
Bool_t | fbSandboxMode |
Switch ON the filling of a additional set of histograms. | |
Bool_t | fbEventDumpEna |
Switch OFF the emission of data toward the STAR DAQ. | |
TList * | fParCList |
Switch ON the dumping of the events to a binary file. | |
uint64_t | fulTsCounter |
Statistics & first TS rejection. | |
uint64_t | fNumEvt |
std::vector< std::string > | fAllowedChannels = {"tofcomponent", "parameters", "etofevts", "syscmd"} |
std::vector< std::vector< std::string > > | fChannelsToSend = {{}, {}, {}} |
CbmStar2019EventBuilderEtofAlgo * | fEventBuilderAlgo |
Processing algo. | |
TStopwatch | fTimer |
CbmStar2019TofPar * | fUnpackPar |
std::fstream * | fpBinDumpFile |
Event dump to binary file. | |
const UInt_t | kuBinDumpBegWord = 0xFEEDBEAF |
const UInt_t | kuBinDumpEndWord = 0xFAEBDEEF |
Definition at line 25 of file CbmDeviceEventBuilderEtofStar2019.h.
CbmDeviceEventBuilderEtofStar2019::CbmDeviceEventBuilderEtofStar2019 | ( | ) |
Definition at line 49 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fEventBuilderAlgo.
|
virtual |
Definition at line 67 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 210 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References CbmStar2019EventBuilderEtofAlgo::AddMsComponentToList(), and fEventBuilderAlgo.
|
private |
Definition at line 413 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 215 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)
Save old global file and folder pointer to avoid messing with FairRoot
(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
Restore old global file and folder pointer to avoid messing with FairRoot
Definition at line 517 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fbMonitorMode, fEventBuilderAlgo, fpBinDumpFile, and CbmStar2019Algo< T >::GetHistoVector().
|
protected |
Definition at line 273 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References CheckTimeslice(), DoUnpack(), and fNumMessages.
|
protected |
Definition at line 389 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 299 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References CbmStar2019EventBuilderEtofAlgo::AddMsComponentToList(), CheckTimeslice(), dctime, fbSandboxMode, fEventBuilderAlgo, fiSelectComponents, fNumMessages, fulTsCounter, CbmStar2019EventBuilderEtofAlgo::GetEventBuffer(), 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 124 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 69 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fChannelsToSend, HandleMessage(), HandleParts(), InitContainers(), and IsChannelNameAllowed().
|
private |
Definition at line 105 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fAllowedChannels, and pos.
Referenced by InitTask().
|
delete |
Bool_t CbmDeviceEventBuilderEtofStar2019::ReInitContainers | ( | ) |
Definition at line 265 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fEventBuilderAlgo, and CbmStar2019EventBuilderEtofAlgo::ReInitContainers().
Referenced by InitContainers().
|
virtual |
Definition at line 515 of file CbmDeviceEventBuilderEtofStar2019.cxx.
|
protectedvirtual |
Definition at line 440 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fChannelsToSend, and fNumEvt.
|
protectedvirtual |
Definition at line 470 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fChannelsToSend, and fNumEvt.
Referenced by DoUnpack(), and HandleParts().
void CbmDeviceEventBuilderEtofStar2019::SetEventDumpEnable | ( | Bool_t | bDumpEna = kTRUE | ) |
|
inline |
Definition at line 45 of file CbmDeviceEventBuilderEtofStar2019.h.
void CbmDeviceEventBuilderEtofStar2019::SetParContainers | ( | ) |
Definition at line 180 of file CbmDeviceEventBuilderEtofStar2019.cxx.
References fEventBuilderAlgo, fParCList, fUnpackPar, and CbmStar2019EventBuilderEtofAlgo::GetParList().
Referenced by InitContainers().
|
inline |
Definition at line 40 of file CbmDeviceEventBuilderEtofStar2019.h.
References fbSandboxMode.
|
private |
Definition at line 76 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 64 of file CbmDeviceEventBuilderEtofStar2019.h.
|
private |
Control flags.
Definition at line 61 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 77 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by InitTask(), SendEvent(), and SendSubevent().
|
private |
Processing algo.
Definition at line 80 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by AddMsComponentToList(), CbmDeviceEventBuilderEtofStar2019(), DoUnpack(), Finish(), HandleParts(), InitContainers(), ReInitContainers(), SetParContainers(), and ~CbmDeviceEventBuilderEtofStar2019().
|
private |
Definition at line 71 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by SendEvent(), and SendSubevent().
|
private |
Definition at line 59 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 67 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by SetParContainers().
|
private |
Event dump to binary file.
Definition at line 86 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by Finish().
|
private |
Definition at line 81 of file CbmDeviceEventBuilderEtofStar2019.h.
|
private |
Statistics & first TS rejection.
Definition at line 70 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by DoUnpack(), and HandleParts().
|
private |
Definition at line 83 of file CbmDeviceEventBuilderEtofStar2019.h.
Referenced by InitContainers(), and SetParContainers().
|
private |
Definition at line 87 of file CbmDeviceEventBuilderEtofStar2019.h.
|
private |
Definition at line 88 of file CbmDeviceEventBuilderEtofStar2019.h.