CbmRoot
CbmDeviceEventBuilderEtofStar2019 Class Reference

#include <CbmDeviceEventBuilderEtofStar2019.h>

Inheritance diagram for CbmDeviceEventBuilderEtofStar2019:
[legend]
Collaboration diagram for CbmDeviceEventBuilderEtofStar2019:
[legend]

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 = {{}, {}, {}}
 
CbmStar2019EventBuilderEtofAlgofEventBuilderAlgo
 Processing algo. More...
 
TStopwatch fTimer
 
CbmStar2019TofParfUnpackPar
 
std::fstream * fpBinDumpFile
 Event dump to binary file. More...
 
const UInt_t kuBinDumpBegWord = 0xFEEDBEAF
 
const UInt_t kuBinDumpEndWord = 0xFAEBDEEF
 

Detailed Description

Definition at line 19 of file CbmDeviceEventBuilderEtofStar2019.h.

Constructor & Destructor Documentation

◆ CbmDeviceEventBuilderEtofStar2019() [1/2]

CbmDeviceEventBuilderEtofStar2019::CbmDeviceEventBuilderEtofStar2019 ( )

Definition at line 46 of file CbmDeviceEventBuilderEtofStar2019.cxx.

References fEventBuilderAlgo.

◆ ~CbmDeviceEventBuilderEtofStar2019()

CbmDeviceEventBuilderEtofStar2019::~CbmDeviceEventBuilderEtofStar2019 ( )
virtual

Definition at line 63 of file CbmDeviceEventBuilderEtofStar2019.cxx.

References fEventBuilderAlgo.

◆ CbmDeviceEventBuilderEtofStar2019() [2/2]

CbmDeviceEventBuilderEtofStar2019::CbmDeviceEventBuilderEtofStar2019 ( const CbmDeviceEventBuilderEtofStar2019 )
delete

Member Function Documentation

◆ AddMsComponentToList()

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.

◆ CheckTimeslice()

bool CbmDeviceEventBuilderEtofStar2019::CheckTimeslice ( const fles::Timeslice &  ts)
private

Definition at line 442 of file CbmDeviceEventBuilderEtofStar2019.cxx.

Referenced by HandleData(), and HandleParts().

◆ DoUnpack()

Bool_t CbmDeviceEventBuilderEtofStar2019::DoUnpack ( const fles::Timeslice &  ts,
size_t  component 
)
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().

◆ Finish()

void CbmDeviceEventBuilderEtofStar2019::Finish ( )
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().

◆ HandleData()

bool CbmDeviceEventBuilderEtofStar2019::HandleData ( FairMQMessagePtr &  msg,
int   
)
protected

Definition at line 287 of file CbmDeviceEventBuilderEtofStar2019.cxx.

References CheckTimeslice(), DoUnpack(), and fNumMessages.

◆ HandleMessage()

bool CbmDeviceEventBuilderEtofStar2019::HandleMessage ( FairMQMessagePtr &  msg,
int   
)
protected

◆ HandleParts()

bool CbmDeviceEventBuilderEtofStar2019::HandleParts ( FairMQParts &  parts,
int   
)
protected

◆ InitContainers()

Bool_t CbmDeviceEventBuilderEtofStar2019::InitContainers ( )

◆ InitTask()

void CbmDeviceEventBuilderEtofStar2019::InitTask ( )
protectedvirtual

◆ IsChannelNameAllowed()

bool CbmDeviceEventBuilderEtofStar2019::IsChannelNameAllowed ( std::string  channelName)
private

Definition at line 103 of file CbmDeviceEventBuilderEtofStar2019.cxx.

References fAllowedChannels, and pos.

Referenced by InitTask().

◆ operator=()

CbmDeviceEventBuilderEtofStar2019 CbmDeviceEventBuilderEtofStar2019::operator= ( const CbmDeviceEventBuilderEtofStar2019 )
delete

◆ ReInitContainers()

Bool_t CbmDeviceEventBuilderEtofStar2019::ReInitContainers ( )

◆ Reset()

void CbmDeviceEventBuilderEtofStar2019::Reset ( )
virtual

Definition at line 551 of file CbmDeviceEventBuilderEtofStar2019.cxx.

◆ SendEvent()

bool CbmDeviceEventBuilderEtofStar2019::SendEvent ( std::vector< Int_t >  vdigi,
int  idx 
)
protectedvirtual

Definition at line 470 of file CbmDeviceEventBuilderEtofStar2019.cxx.

References fChannelsToSend, and fNumEvt.

◆ SendSubevent()

bool CbmDeviceEventBuilderEtofStar2019::SendSubevent ( uint  trig,
char *  pData,
int  nData,
int  idx 
)
protectedvirtual

Definition at line 502 of file CbmDeviceEventBuilderEtofStar2019.cxx.

References fChannelsToSend, and fNumEvt.

Referenced by DoUnpack(), and HandleParts().

◆ SetEventDumpEnable()

void CbmDeviceEventBuilderEtofStar2019::SetEventDumpEnable ( Bool_t  bDumpEna = kTRUE)

◆ SetNbMsInTs()

void CbmDeviceEventBuilderEtofStar2019::SetNbMsInTs ( size_t  ,
size_t   
)
inline

Definition at line 41 of file CbmDeviceEventBuilderEtofStar2019.h.

◆ SetParContainers()

void CbmDeviceEventBuilderEtofStar2019::SetParContainers ( )

◆ SetSandboxMode()

void CbmDeviceEventBuilderEtofStar2019::SetSandboxMode ( Bool_t  bSandboxMode = kTRUE)
inline

Definition at line 34 of file CbmDeviceEventBuilderEtofStar2019.h.

References fbSandboxMode.

Member Data Documentation

◆ fAllowedChannels

std::vector<std::string> CbmDeviceEventBuilderEtofStar2019::fAllowedChannels
private
Initial value:
= {"tofcomponent",
"parameters",
"etofevts",
"syscmd"}

Definition at line 77 of file CbmDeviceEventBuilderEtofStar2019.h.

Referenced by IsChannelNameAllowed().

◆ fbDebugMonitorMode

Bool_t CbmDeviceEventBuilderEtofStar2019::fbDebugMonitorMode
private

Switch ON the filling of a minimal set of histograms.

Definition at line 62 of file CbmDeviceEventBuilderEtofStar2019.h.

◆ fbEventDumpEna

Bool_t CbmDeviceEventBuilderEtofStar2019::fbEventDumpEna
private

Switch OFF the emission of data toward the STAR DAQ.

Definition at line 65 of file CbmDeviceEventBuilderEtofStar2019.h.

◆ fbMonitorMode

Bool_t CbmDeviceEventBuilderEtofStar2019::fbMonitorMode
private

Control flags.

Definition at line 60 of file CbmDeviceEventBuilderEtofStar2019.h.

Referenced by Finish(), and InitContainers().

◆ fbSandboxMode

Bool_t CbmDeviceEventBuilderEtofStar2019::fbSandboxMode
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().

◆ fChannelsToSend

std::vector<std::vector<std::string> > CbmDeviceEventBuilderEtofStar2019::fChannelsToSend = {{}, {}, {}}
private

Definition at line 81 of file CbmDeviceEventBuilderEtofStar2019.h.

Referenced by InitTask(), SendEvent(), and SendSubevent().

◆ fEventBuilderAlgo

◆ fNumEvt

uint64_t CbmDeviceEventBuilderEtofStar2019::fNumEvt
private

Definition at line 72 of file CbmDeviceEventBuilderEtofStar2019.h.

Referenced by SendEvent(), and SendSubevent().

◆ fNumMessages

uint64_t CbmDeviceEventBuilderEtofStar2019::fNumMessages
private

Definition at line 57 of file CbmDeviceEventBuilderEtofStar2019.h.

Referenced by HandleData(), and HandleParts().

◆ fParCList

TList* CbmDeviceEventBuilderEtofStar2019::fParCList
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().

◆ fpBinDumpFile

std::fstream* CbmDeviceEventBuilderEtofStar2019::fpBinDumpFile
private

Event dump to binary file.

Definition at line 90 of file CbmDeviceEventBuilderEtofStar2019.h.

Referenced by Finish().

◆ fTimer

TStopwatch CbmDeviceEventBuilderEtofStar2019::fTimer
private

Definition at line 85 of file CbmDeviceEventBuilderEtofStar2019.h.

◆ fulTsCounter

uint64_t CbmDeviceEventBuilderEtofStar2019::fulTsCounter
private

Statistics & first TS rejection.

Definition at line 71 of file CbmDeviceEventBuilderEtofStar2019.h.

Referenced by DoUnpack(), and HandleParts().

◆ fUnpackPar

CbmStar2019TofPar* CbmDeviceEventBuilderEtofStar2019::fUnpackPar
private

Definition at line 87 of file CbmDeviceEventBuilderEtofStar2019.h.

Referenced by InitContainers(), and SetParContainers().

◆ kuBinDumpBegWord

const UInt_t CbmDeviceEventBuilderEtofStar2019::kuBinDumpBegWord = 0xFEEDBEAF
private

Definition at line 91 of file CbmDeviceEventBuilderEtofStar2019.h.

◆ kuBinDumpEndWord

const UInt_t CbmDeviceEventBuilderEtofStar2019::kuBinDumpEndWord = 0xFAEBDEEF
private

Definition at line 92 of file CbmDeviceEventBuilderEtofStar2019.h.


The documentation for this class was generated from the following files: