CbmRoot
CbmMQTsaInfo Class Reference

#include <CbmMQTsaInfo.h>

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

Public Member Functions

 CbmMQTsaInfo ()
 
virtual ~CbmMQTsaInfo ()
 

Protected Member Functions

virtual void InitTask ()
 
virtual bool ConditionalRun ()
 

Protected Attributes

uint64_t fMaxTimeslices
 
std::string fFileName
 
std::vector< std::string > fInputFileList
 List of input files. More...
 
uint64_t fFileCounter
 
std::string fHost
 
uint64_t fPort
 
uint64_t fTSNumber
 
uint64_t fTSCounter
 
uint64_t fMessageCounter
 
int fMaxMemory = 0
 

Private Member Functions

bool CheckTimeslice (const fles::Timeslice &ts)
 
void PrintMicroSliceDescriptor (const fles::MicrosliceDescriptor &mdsc)
 
bool SendData (const fles::StorableTimeslice &component)
 
void CalcRuntime ()
 
bool IsChannelNameAllowed (std::string)
 

Private Attributes

fles::TimesliceSource * fSource
 
std::chrono::steady_clock::time_point fTime
 
std::vector< std::string > fAllowedChannels
 

Detailed Description

CbmMQTsaInfo.h

Since
2017-11-17
Author
F. Uhlig

Definition at line 24 of file CbmMQTsaInfo.h.

Constructor & Destructor Documentation

◆ CbmMQTsaInfo()

CbmMQTsaInfo::CbmMQTsaInfo ( )

Definition at line 34 of file CbmMQTsaInfo.cxx.

◆ ~CbmMQTsaInfo()

CbmMQTsaInfo::~CbmMQTsaInfo ( )
virtual

Definition at line 143 of file CbmMQTsaInfo.cxx.

Member Function Documentation

◆ CalcRuntime()

void CbmMQTsaInfo::CalcRuntime ( )
private

Definition at line 145 of file CbmMQTsaInfo.cxx.

References fTime.

Referenced by ConditionalRun().

◆ CheckTimeslice()

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

Definition at line 172 of file CbmMQTsaInfo.cxx.

Referenced by ConditionalRun().

◆ ConditionalRun()

bool CbmMQTsaInfo::ConditionalRun ( )
protectedvirtual

Definition at line 112 of file CbmMQTsaInfo.cxx.

References CalcRuntime(), CheckTimeslice(), fMaxTimeslices, fSource, and fTSCounter.

◆ InitTask()

void CbmMQTsaInfo::InitTask ( )
protectedvirtual

Definition at line 47 of file CbmMQTsaInfo.cxx.

References fFileName, fHost, fMaxTimeslices, fPort, fSource, fTime, and IsChannelNameAllowed().

◆ IsChannelNameAllowed()

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

Definition at line 98 of file CbmMQTsaInfo.cxx.

References fAllowedChannels.

Referenced by InitTask().

◆ PrintMicroSliceDescriptor()

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

Definition at line 154 of file CbmMQTsaInfo.cxx.

◆ SendData()

bool CbmMQTsaInfo::SendData ( const fles::StorableTimeslice &  component)
private

Member Data Documentation

◆ fAllowedChannels

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

Definition at line 57 of file CbmMQTsaInfo.h.

Referenced by IsChannelNameAllowed().

◆ fFileCounter

uint64_t CbmMQTsaInfo::fFileCounter
protected

Definition at line 34 of file CbmMQTsaInfo.h.

◆ fFileName

std::string CbmMQTsaInfo::fFileName
protected

Definition at line 32 of file CbmMQTsaInfo.h.

Referenced by InitTask().

◆ fHost

std::string CbmMQTsaInfo::fHost
protected

Definition at line 35 of file CbmMQTsaInfo.h.

Referenced by InitTask().

◆ fInputFileList

std::vector<std::string> CbmMQTsaInfo::fInputFileList
protected

List of input files.

Definition at line 33 of file CbmMQTsaInfo.h.

◆ fMaxMemory

int CbmMQTsaInfo::fMaxMemory = 0
protected

Definition at line 42 of file CbmMQTsaInfo.h.

◆ fMaxTimeslices

uint64_t CbmMQTsaInfo::fMaxTimeslices
protected

Definition at line 30 of file CbmMQTsaInfo.h.

Referenced by ConditionalRun(), and InitTask().

◆ fMessageCounter

uint64_t CbmMQTsaInfo::fMessageCounter
protected

Definition at line 40 of file CbmMQTsaInfo.h.

◆ fPort

uint64_t CbmMQTsaInfo::fPort
protected

Definition at line 36 of file CbmMQTsaInfo.h.

Referenced by InitTask().

◆ fSource

fles::TimesliceSource* CbmMQTsaInfo::fSource
private

Definition at line 54 of file CbmMQTsaInfo.h.

Referenced by ConditionalRun(), and InitTask().

◆ fTime

std::chrono::steady_clock::time_point CbmMQTsaInfo::fTime
private

Definition at line 55 of file CbmMQTsaInfo.h.

Referenced by CalcRuntime(), and InitTask().

◆ fTSCounter

uint64_t CbmMQTsaInfo::fTSCounter
protected

Definition at line 39 of file CbmMQTsaInfo.h.

Referenced by ConditionalRun().

◆ fTSNumber

uint64_t CbmMQTsaInfo::fTSNumber
protected

Definition at line 38 of file CbmMQTsaInfo.h.


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