CbmRoot
Loading...
Searching...
No Matches
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.
 
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 = {"stscomponent", "trdcomponent", "tofcomponent"}
 

Detailed Description

CbmMQTsaInfo.h

Since
2017-11-17
Author
F. Uhlig

Definition at line 28 of file CbmMQTsaInfo.h.

Constructor & Destructor Documentation

◆ CbmMQTsaInfo()

CbmMQTsaInfo::CbmMQTsaInfo ( )

Definition at line 41 of file CbmMQTsaInfo.cxx.

◆ ~CbmMQTsaInfo()

CbmMQTsaInfo::~CbmMQTsaInfo ( )
virtual

Definition at line 153 of file CbmMQTsaInfo.cxx.

Member Function Documentation

◆ CalcRuntime()

void CbmMQTsaInfo::CalcRuntime ( )
private

Definition at line 155 of file CbmMQTsaInfo.cxx.

References fTime.

Referenced by ConditionalRun().

◆ CheckTimeslice()

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

Definition at line 178 of file CbmMQTsaInfo.cxx.

Referenced by ConditionalRun().

◆ ConditionalRun()

bool CbmMQTsaInfo::ConditionalRun ( )
protectedvirtual

Definition at line 122 of file CbmMQTsaInfo.cxx.

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

◆ InitTask()

void CbmMQTsaInfo::InitTask ( )
protectedvirtual

Definition at line 56 of file CbmMQTsaInfo.cxx.

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

◆ IsChannelNameAllowed()

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

Definition at line 109 of file CbmMQTsaInfo.cxx.

References fAllowedChannels.

Referenced by InitTask().

◆ PrintMicroSliceDescriptor()

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

Definition at line 164 of file CbmMQTsaInfo.cxx.

◆ SendData()

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

Member Data Documentation

◆ fAllowedChannels

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

Definition at line 61 of file CbmMQTsaInfo.h.

Referenced by IsChannelNameAllowed().

◆ fFileCounter

uint64_t CbmMQTsaInfo::fFileCounter
protected

Definition at line 38 of file CbmMQTsaInfo.h.

◆ fFileName

std::string CbmMQTsaInfo::fFileName
protected

Definition at line 36 of file CbmMQTsaInfo.h.

Referenced by InitTask().

◆ fHost

std::string CbmMQTsaInfo::fHost
protected

Definition at line 39 of file CbmMQTsaInfo.h.

Referenced by InitTask().

◆ fInputFileList

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

List of input files.

Definition at line 37 of file CbmMQTsaInfo.h.

◆ fMaxMemory

int CbmMQTsaInfo::fMaxMemory = 0
protected

Definition at line 46 of file CbmMQTsaInfo.h.

◆ fMaxTimeslices

uint64_t CbmMQTsaInfo::fMaxTimeslices
protected

Definition at line 34 of file CbmMQTsaInfo.h.

Referenced by ConditionalRun(), and InitTask().

◆ fMessageCounter

uint64_t CbmMQTsaInfo::fMessageCounter
protected

Definition at line 44 of file CbmMQTsaInfo.h.

◆ fPort

uint64_t CbmMQTsaInfo::fPort
protected

Definition at line 40 of file CbmMQTsaInfo.h.

Referenced by InitTask().

◆ fSource

fles::TimesliceSource* CbmMQTsaInfo::fSource
private

Definition at line 58 of file CbmMQTsaInfo.h.

Referenced by ConditionalRun(), and InitTask().

◆ fTime

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

Definition at line 59 of file CbmMQTsaInfo.h.

Referenced by CalcRuntime(), and InitTask().

◆ fTSCounter

uint64_t CbmMQTsaInfo::fTSCounter
protected

Definition at line 43 of file CbmMQTsaInfo.h.

Referenced by ConditionalRun().

◆ fTSNumber

uint64_t CbmMQTsaInfo::fTSNumber
protected

Definition at line 42 of file CbmMQTsaInfo.h.


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