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

#include <Monitor.hh>

Inheritance diagram for eudaq::Monitor:
eudaq::CommandReceiver TestMonitor

Public Member Functions

 Monitor (const std::string &name, const std::string &runcontrol, const unsigned lim, const unsigned skip_, const unsigned int skip_evts, const std::string &datafile="")
 
bool ProcessEvent ()
 
virtual void OnIdle ()
 
virtual void OnEvent (const StandardEvent &)
 
virtual void OnBadEvent (shared_ptr< Event >)
 
virtual void OnStartRun (unsigned param)
 
virtual void OnStopRun ()
 
shared_ptr< DetectorEventLastBore () const
 
- Public Member Functions inherited from eudaq::CommandReceiver
 CommandReceiver (const std::string &type, const std::string &name, const std::string &runcontrol, bool startthread=true)
 
void SetConnectionState (ConnectionState::State state=ConnectionState::STATE_UNCONF, const std::string &info="")
 
int GetConnectionState ()
 
virtual void OnInitialise (const Configuration &param)
 
virtual void OnConfigure (const Configuration &param)
 
virtual void OnPrepareRun (unsigned)
 
virtual void OnTerminate ()
 
virtual void OnReset ()
 
virtual void OnStatus ()
 
virtual void OnData (const std::string &)
 
virtual void OnLog (const std::string &)
 
virtual void OnServer ()
 
virtual void OnGetRun ()
 
virtual void OnClear ()
 
virtual void OnUnrecognised (const std::string &, const std::string &)
 
void Process (int timeout)
 
void CommandThread ()
 
void StartThread ()
 

Protected Attributes

unsigned m_run
 
bool m_callstart
 
shared_ptr< FileReaderm_reader
 
shared_ptr< DetectorEventm_lastbore
 
unsigned limit
 
unsigned skip
 
unsigned int skip_events_with_counter
 
unsigned int counter_for_skipping
 
- Protected Attributes inherited from eudaq::CommandReceiver
ConnectionState m_connectionstate
 
TransportClientm_cmdclient
 

Detailed Description

The base class from which all Monitors should inherit.

Constructor & Destructor Documentation

eudaq::Monitor::Monitor ( const std::string &  name,
const std::string &  runcontrol,
const unsigned  lim,
const unsigned  skip_,
const unsigned int  skip_evts,
const std::string &  datafile = "" 
)

The constructor.

Parameters
runcontrolA string containing the address of the RunControl to connect to.

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