CbmRoot
CbmTsaComponentSink Class Reference

#include <CbmTsaComponentSink.h>

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

Public Member Functions

 CbmTsaComponentSink ()
 
virtual ~CbmTsaComponentSink ()
 

Protected Member Functions

virtual void InitTask ()
 
bool HandleData (FairMQMessagePtr &, int)
 

Private Member Functions

bool CheckTimeslice (const fles::Timeslice &ts)
 
void PrintMicroSliceDescriptor (const fles::MicrosliceDescriptor &mdsc)
 
bool IsChannelNameAllowed (std::string channelName)
 

Private Attributes

uint64_t fNumMessages
 
std::vector< std::string > fAllowedChannels
 

Detailed Description

CbmTsaComponentSink.h

Since
2018-04-24
Author
F. Uhlig

Definition at line 16 of file CbmTsaComponentSink.h.

Constructor & Destructor Documentation

◆ CbmTsaComponentSink()

CbmTsaComponentSink::CbmTsaComponentSink ( )

Definition at line 27 of file CbmTsaComponentSink.cxx.

◆ ~CbmTsaComponentSink()

CbmTsaComponentSink::~CbmTsaComponentSink ( )
virtual

Definition at line 95 of file CbmTsaComponentSink.cxx.

Member Function Documentation

◆ CheckTimeslice()

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

Definition at line 115 of file CbmTsaComponentSink.cxx.

Referenced by HandleData().

◆ HandleData()

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

Definition at line 75 of file CbmTsaComponentSink.cxx.

References CheckTimeslice(), and fNumMessages.

Referenced by InitTask().

◆ InitTask()

void CbmTsaComponentSink::InitTask ( )
protectedvirtual

Definition at line 29 of file CbmTsaComponentSink.cxx.

References HandleData(), and IsChannelNameAllowed().

◆ IsChannelNameAllowed()

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

Definition at line 52 of file CbmTsaComponentSink.cxx.

References fAllowedChannels, and pos.

Referenced by InitTask().

◆ PrintMicroSliceDescriptor()

void CbmTsaComponentSink::PrintMicroSliceDescriptor ( const fles::MicrosliceDescriptor &  mdsc)
private

Definition at line 97 of file CbmTsaComponentSink.cxx.

Member Data Documentation

◆ fAllowedChannels

std::vector<std::string> CbmTsaComponentSink::fAllowedChannels
private
Initial value:
= {"stscomponent",
"tofcomponent",
"trdcomponent"}

Definition at line 28 of file CbmTsaComponentSink.h.

Referenced by IsChannelNameAllowed().

◆ fNumMessages

uint64_t CbmTsaComponentSink::fNumMessages
private

Definition at line 26 of file CbmTsaComponentSink.h.

Referenced by HandleData().


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