CbmRoot
CbmHistoServer Class Reference

#include <CbmHistoServer.h>

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

Public Member Functions

 CbmHistoServer ()
 
virtual ~CbmHistoServer ()
 
void UpdateHttpServer ()
 

Protected Member Functions

virtual void InitTask ()
 
bool ReceiveData (FairMQMessagePtr &msg, int index)
 
virtual void PreRun ()
 
virtual void PostRun ()
 

Private Member Functions

int FindHistogram (const std::string &name)
 

Private Attributes

std::string fInputChannelName
 
TObjArray fArrayHisto
 
int fNMessages
 
THttpServer fServer
 
std::thread fThread
 
bool fStopThread
 

Detailed Description

Definition at line 22 of file CbmHistoServer.h.

Constructor & Destructor Documentation

◆ CbmHistoServer()

CbmHistoServer::CbmHistoServer ( )

Definition at line 22 of file CbmHistoServer.cxx.

◆ ~CbmHistoServer()

CbmHistoServer::~CbmHistoServer ( )
virtual

Definition at line 31 of file CbmHistoServer.cxx.

Member Function Documentation

◆ FindHistogram()

int CbmHistoServer::FindHistogram ( const std::string &  name)
private

Definition at line 107 of file CbmHistoServer.cxx.

References fArrayHisto, and i.

Referenced by ReceiveData().

◆ InitTask()

void CbmHistoServer::InitTask ( )
protectedvirtual

Definition at line 33 of file CbmHistoServer.cxx.

References fInputChannelName, and ReceiveData().

◆ PostRun()

void CbmHistoServer::PostRun ( )
protectedvirtual

Definition at line 102 of file CbmHistoServer.cxx.

References fStopThread, and fThread.

◆ PreRun()

void CbmHistoServer::PreRun ( )
protectedvirtual

Definition at line 81 of file CbmHistoServer.cxx.

References fStopThread, fThread, and UpdateHttpServer().

◆ ReceiveData()

bool CbmHistoServer::ReceiveData ( FairMQMessagePtr &  msg,
int  index 
)
protected

Definition at line 44 of file CbmHistoServer.cxx.

References fArrayHisto, FindHistogram(), fNMessages, fServer, i, and mtx.

Referenced by InitTask().

◆ UpdateHttpServer()

void CbmHistoServer::UpdateHttpServer ( )

Definition at line 86 of file CbmHistoServer.cxx.

References fServer, fStopThread, and mtx.

Referenced by PreRun().

Member Data Documentation

◆ fArrayHisto

TObjArray CbmHistoServer::fArrayHisto
private

Definition at line 56 of file CbmHistoServer.h.

Referenced by FindHistogram(), and ReceiveData().

◆ fInputChannelName

std::string CbmHistoServer::fInputChannelName
private

Definition at line 54 of file CbmHistoServer.h.

Referenced by InitTask().

◆ fNMessages

int CbmHistoServer::fNMessages
private

Definition at line 58 of file CbmHistoServer.h.

Referenced by ReceiveData().

◆ fServer

THttpServer CbmHistoServer::fServer
private

Definition at line 60 of file CbmHistoServer.h.

Referenced by ReceiveData(), and UpdateHttpServer().

◆ fStopThread

bool CbmHistoServer::fStopThread
private

Definition at line 65 of file CbmHistoServer.h.

Referenced by PostRun(), PreRun(), and UpdateHttpServer().

◆ fThread

std::thread CbmHistoServer::fThread
private

Definition at line 64 of file CbmHistoServer.h.

Referenced by PostRun(), and PreRun().


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