EUDAQ
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
eudaq::RunControl Class Reference

#include <RunControl.hh>

Inheritance diagram for eudaq::RunControl:
PyRunControl TestRunControl

Public Member Functions

 RunControl (const std::string &listenaddress="")
 
void StartServer (const std::string &listenaddress)
 
void StopServer ()
 
void Init (const std::string &settings)
 
void Configure (const Configuration &settings)
 Send 'Configure' command with settings.
 
void Configure (const std::string &settings, int geoid=0)
 Send 'Configure' command with settings.
 
void Reset ()
 Send 'Reset' command.
 
void GetConnectionState ()
 Send 'ConnectionState' command to get state.
 
virtual void StartRun (const std::string &msg="")
 
virtual void StopRun (bool listen=true)
 Send 'StopRun' command.
 
void Terminate ()
 Send 'Terminate' command.
 
void TestCommand ()
 
virtual void OnConnect (const ConnectionInfo &)
 
virtual void OnDisconnect (const ConnectionInfo &)
 
virtual void OnReceive (const ConnectionInfo &, std::shared_ptr< ConnectionState >)
 
virtual void SendState (int state)
 
void CommandThread ()
 
size_t NumConnections () const
 
const ConnectionInfoGetConnection (size_t i) const
 
int GetFSMState ()
 

Protected Attributes

int32_t m_runnumber
 The current run number.
 
TransportServerm_cmdserver
 Transport for sending commands.
 
std::unique_ptr< std::thread > m_thread
 
size_t m_idata
 
size_t m_ilog
 
std::string m_logaddr
 
std::map< size_t, std::string > m_dataaddr
 
int64_t m_runsizelimit
 
int64_t m_runeventlimit
 
bool m_nextconfigonrunchange
 
bool m_stopping
 
bool m_busy
 
bool m_producerbusy
 

Detailed Description

Implements the functionality of the Run Control application.

Member Function Documentation

void eudaq::RunControl::StartRun ( const std::string &  msg = "")
virtual

Send 'StartRun' command with run number

void eudaq::RunControl::StopServer ( )

if (m_thread)/ pthread_join(m_thread, 0);


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