Belle II Software development
|
Modules | |
daq data objects | |
daq modules | |
Classes | |
class | EvtSocketSend |
class | EvtSocketRecv |
class | EvtSocketManager |
class | REvtSocketRecv |
class | REvtSocketSend |
class | RSocketSend |
class | RSocketRecv |
class | SocketIO |
class | SocketRecv |
class | SocketSend |
class | SocketManager |
class | DqmMasterCallback |
class | DqmMemFile |
class | DqmSharedMem |
class | HistoManager |
class | HistoManager2 |
class | HistoRelay |
class | HistoServer |
class | HistoServer2 |
class | ERecoDistributor |
class | ERecoEventProcessor |
class | ERecoEventSampler |
class | ERecoMaster |
class | ERecoMasterCallback |
class | ERecoRunControlCallback |
class | EventSampler |
class | EventServer |
class | EventServerCallback |
class | ZMQStandardApp< AInputConnection, AOutputConnection > |
Generic base class for all standalone ZMQ applications. More... | |
class | ZMQReadySender |
App to only send a ready on every incoming message - behaves the same as the input of a worker (but without an output). More... | |
class | ZMQAcceptor |
App to only send a confirmation on every incoming message - behaves the same as the input of a (final)collector (but without an output). More... | |
class | ZMQWorker |
App to mimick a basf2-worker by accepting an incoming message with a ready message and sending it out via the output - requiring a confirmation message from the next step. More... | |
class | ZMQCollector |
Normal collector app: receive messages on the input reacting with a confirmation message and sends them out via a load-balanced connection to ready workers. More... | |
class | ZMQOutputAdapter |
Special collector app for translating between ZMQ and raw connections: send ready messages (like a typical worker) on the input and send all received events to the raw connection at output. More... | |
class | ZMQProxyCollector |
Special collector app: receive messages on the input reacting with a confirmation message and sends them out via a confirmed connection to ready workers. More... | |
class | ZMQFinalCollector |
Final collector app: receive messages on the input reacting with a confirmation message and sends them out via a raw connection (e.g. More... | |
class | ZMQFinalCollectorWithROI |
Special form of the ZMQFinalCollector for sending out the additional data message to a ROI receiver. More... | |
class | ZMQDistributor |
Standard distributor app: receive data via a raw connection (e.g. More... | |
class | ZMQInputAdapter |
class | ZMQHistogramToFileServer |
Final histogram app: receive histogram messages from all clients and react with a confirmation message. More... | |
class | ZMQHistogramToZMQServer |
Non-Final histogram app: receive histogram messages from all clients and react with a confirmation message. More... | |
class | ZMQHistogramToRawServer |
Non-Final histogram app: receive histogram messages from all clients and react with a confirmation message. More... | |
class | ZMQHistoServerToFileOutput |
Output histograms into a ROOT file and shared memory after merging. More... | |
class | ZMQHistoServerToZMQOutput |
Send the histograms as compressed byte stream via a ZMQConfirmedOutput connection after merging with all the properties of a normal confirmed output. More... | |
class | ZMQHistoServerToRawOutput |
Same as ZMQHistoServerToZMQOutput just send uncompressed to a raw output. More... | |
class | ZMQHistogramOutput< AConnectionClass > |
Add the common functionality to the histogram output classes. More... | |
class | ZMQROIOutput |
Dedicated output to send ROI messages to the PXD ONSEN system. More... | |
class | ZMQDataAndROIOutput |
Helper connection hosting both a normal raw and a ROI output and sending to both at the same time. More... | |
class | HistogramMapping |
Utility to store received histograms (hierarchical tree structures) from clients (as an event message), with a function to add multiple histogram trees together. More... | |
class | HLTEventProcessor |
EventProcessor to be used on the HLT with all specialities of the HLT processing: More... | |
class | HLTStreamHelper |
Helper class for data store serialization. More... | |
class | StorageStreamHelper |
Helper class for data store serialization. More... | |
class | CprErrorMessage |
class | DesSer |
A class definition of an input module for Sequential ROOT I/O. More... | |
class | DesSerCOPPER |
A class definition of an input module for Sequential ROOT I/O. More... | |
class | DesSerPrePC |
A class definition of an input module for Sequential ROOT I/O. More... | |
class | HLTFile |
class | HLTMainLoop |
class | HLTSocket |
class | RawRevRb2Sock |
class | Rb2Sock |
class | RevRb2Sock |
class | RevSock2Rb |
class | Sock2Rb |
class | RFCommand |
struct | RFConf_t |
class | RFConf |
class | RFDqmServer |
class | RFEventProcessor |
class | RFEventServer |
class | RFFlowStat |
class | RFLogManager |
class | RFMaster |
class | RFMasterCallback |
struct | RfNodeInfo |
class | RFNodeManager |
class | RFNSM_Status |
class | RFNSM |
class | RFOutputServer |
class | RFProcessManager |
class | RFRoiSender |
class | RFRunControlCallback |
class | RFServerBase |
struct | RfShm_Cell |
struct | RfShm_Data |
class | RFSharedMem |
struct | RfUnitInfo |
class | SharedMem |
class | RoiSenderCallback |
class | AbstractDBObject |
class | ConfigFile |
class | Connection |
class | Date |
class | Enum |
class | ERRORNo |
class | Exception |
class | IOException |
class | Reader |
class | Serializable |
struct | StringUtil |
class | TimeoutException |
class | Writer |
class | DAQLogDB |
class | DAQLogMessage |
class | DBHandlerException |
class | DBInterface |
class | DBObject |
class | DBObjectLoader |
class | DBRecord |
class | MonitorDB |
class | RunNumber |
class | RunNumberTable |
class | AbstractNSMCallback |
class | Callback |
class | NSMCallback |
class | NSMCommand |
class | NSMCommunicator |
class | NSMData |
struct | NSMDataPaket |
class | NSMDataStore |
class | NSMHandlerException |
class | NSMMessage |
class | NSMNode |
class | NSMNodeDaemon |
class | NSMNotConnectedException |
class | NSMState |
class | NSMVar |
class | NSMVHandler |
class | NSMVHandlerInt |
class | NSMVHandlerFloat |
class | NSMVHandlerText |
class | NSMVHandlerIntArray |
class | NSMVHandlerFloatArray |
class | NSMVHandlerRef |
class | PostgreSQLInterface |
class | FlowMonitor |
class | IOInfo |
class | LogListener |
class | ProcessController |
class | ProcessSubmitter |
class | ProcessListener |
struct | ro_summary |
struct | event_header |
struct | ronode_info |
struct | ronode_status |
class | RunInfoBuffer |
class | RCCallback |
class | RCCommand |
class | RCConfig |
class | RCHandlerException |
class | RCHandlerFatalException |
class | RCNode |
class | RCNodeDaemon |
class | RCState |
class | RCConfigHandler |
class | Buffer |
class | BufferedReader |
class | BufferedWriter |
class | CommandLine |
class | Cond |
class | Daemon |
class | DynamicLoader |
class | DynamicLoadException |
class | Executor |
class | Fifo |
class | File |
class | FileDescriptor |
class | FileReader< FD > |
class | FileWriter< FD > |
class | Fork |
class | InotifyEvent |
class | Inotify |
class | GenericLockGuard< AMutex > |
Lock Guard for a Mutex instance. More... | |
struct | LogFile |
class | MCond |
class | MMutex |
class | Mutex |
class | Process |
class | PThread |
class | RWLock |
class | SharedMemory |
class | StreamSizeCounter |
class | TCPServerSocket |
class | TCPSocket |
class | Time |
class | UDPSocket |
struct | BinTrailer |
struct | BinHeader |
class | BinData |
class | EventBuffer |
class | ONSENBinData |
class | SharedEventBuffer |
class | EvtBuffer |
class | Sender |
Functions | |
int | nsm_read_argv (int argc, const char **argv, int(*help)(const char **argv), char **argv_in, ConfigFile &config, std::string &name, std::string &username, int nargv) |
void | initFromConsole (const std::string &description, int argc, char *argv[]) |
Should be called before the main() function to initialize the connections using the paremeters given on command line. | |
void | main () |
Start the main loop polling on the output and monitoring connections and eventually also on the input if the output is ready. | |
void | pollEvent (bool pollOnInput) |
Poll until a single event is retreived. | |
virtual void | initialize () |
Override in a derived class to initialize the connections from the given command line arguments. Do not forget to call this base function also. | |
virtual void | addOptions (po::options_description &desc) |
Override in a derived class to add the command line arguments. Do not forget to call this base function also. | |
virtual void | handleExternalSignal (EMessageTypes) |
Will get called for every signal message on the monitoring connection. Can be overridden in a derived class. Empty by default. | |
virtual void | handleInput () |
Will get called for every message on the input connection. Can be overridden in a derived class. Calls handleIncomingData by default. | |
virtual void | handleOutput () |
Will get called for every message on the output connection. Can be overridden in a derived class. Calls handleIncomingData by default. | |
virtual void | handleTimeout () |
Will get called on a timeout. Can be overridden in a derived class. Empty by default. | |
bool | terminated () const |
Check if the main loop will be exited on next occasion. Can be set via the "m_terminate" flag. | |
bool | checkTimer () |
Helper function to check, if the timeout should happen. | |
void | updateTimer () |
Helper function to update the remaining time. | |
void | resetTimer () |
Helper function to reset the start time and the remaining time. | |
void | handleMonitoring () |
Handle an incoming message on the monitoring socket by either calling handleExternalSignal() or by passing on the monitor JSONs of the connections. | |
virtual void | fillMonitoringJSON (std::stringstream &buffer) const |
Using the connections, fill up a buffer with the content to be monitored. | |
template<class... Args> | |
ZMQHistogramOutput (unsigned int maximalUncompressedBufferSize, Args &&... args) | |
Perfectly forward the given arguments to the base class initializer (and init the buffer size) | |
bool | getBool (const std::string &name, int index=0) const |
char | getChar (const std::string &name, int index=0) const |
short | getShort (const std::string &name, int index=0) const |
int | getInt (const std::string &name, int index=0) const |
long long | getLong (const std::string &name, int index=0) const |
float | getFloat (const std::string &name, int index=0) const |
double | getDouble (const std::string &name, int index=0) const |
void | setBool (const std::string &name, bool value, int index=0) |
void | setChar (const std::string &name, int value, int index=0) |
void | setShort (const std::string &name, int value, int index=0) |
void | setInt (const std::string &name, int value, int index=0) |
void | setLong (const std::string &name, long long value, int index=0) |
void | setFloat (const std::string &name, float value, int index=0) |
void | setDouble (const std::string &name, double value, int index=0) |
void | addBool (const std::string &name, bool value) |
void | addChar (const std::string &name, char value) |
void | addShort (const std::string &name, short value) |
void | addInt (const std::string &name, int value) |
void | addLong (const std::string &name, long long value) |
void | addFloat (const std::string &name, float value) |
void | addDouble (const std::string &name, double value) |
bool | hasKey (const std::string &label) |
bool | operator== (const Connection &st) const |
bool | operator!= (const Connection &st) const |
bool | operator== (const Enum &e) const |
bool | operator!= (const Enum &e) const |
bool | operator== (const std::string &label) const |
bool | operator!= (const std::string &label) const |
NSMData & | getData (const std::string &name) |
void | openData (const std::string &name, const std::string &format, int revision=-1) |
void | allocData (const std::string &name, const std::string &format, int revision) |
template<typename T > | |
void | addArgument (T arg) |
void | setDB (DBInterface *db, const std::string &table) |
Variables | |
const int | ro_summary_revision = 1 |
const int | ronode_status_revision = 1 |
Mutex | g_mutex |
Cond | g_cond |
typedef std::vector<DAQLogMessage> DAQLogMessageList |
Definition at line 22 of file DAQLogDB.h.
typedef std::map<std::string, std::string> DBFieldList |
Definition at line 21 of file DBRecord.h.
typedef std::map<std::string, std::string> DBFieldTypeList |
Definition at line 24 of file DBInterface.h.
typedef std::vector<DBObject> DBObjectList |
Definition at line 102 of file DBObject.h.
typedef std::vector< DBRecord > DBRecordList |
Definition at line 23 of file DBInterface.h.
typedef FileReader<Fifo> FifoReader |
Definition at line 20 of file FifoReader.h.
typedef FileWriter<Fifo> FifoWriter |
Definition at line 20 of file FifoWriter.h.
typedef std::vector<InotifyEvent> InotifyEventList |
typedef GenericLockGuard<Mutex> LockGuard |
Definition at line 72 of file LockGuard.h.
typedef GenericLockGuard<MMutex> MLockGuard |
Definition at line 73 of file LockGuard.h.
typedef std::vector<NSMCommunicator*> NSMCommunicatorList |
Definition at line 102 of file NSMCommunicator.h.
typedef std::map<std::string, NSMData> NSMDataMap |
Definition at line 29 of file NSMCallback.h.
typedef std::map< std::string, NSMNode > NSMNodeMap |
Definition at line 26 of file AbstractNSMCallback.h.
typedef std::map<std::string, NSMNodeMap> NSMNodeMapMap |
Definition at line 27 of file AbstractNSMCallback.h.
typedef std::map<std::string, NSMVHandler*> NSMVHandlerList |
Definition at line 86 of file NSMVHandler.h.
typedef FileReader<File> PipeReader |
Definition at line 33 of file LogListener.cc.
typedef std::vector<RunNumber> RunNumberList |
Definition at line 57 of file RunNumber.h.
typedef std::vector<std::string> StringList |
Definition at line 20 of file StringUtil.h.
typedef FileReader<TCPSocket> TCPSocketReader |
Definition at line 20 of file TCPSocketReader.h.
typedef FileWriter<TCPSocket> TCPSocketWriter |
Definition at line 20 of file TCPSocketWriter.h.
typedef unsigned short u_short |
Definition at line 24 of file EvtSocket.h.
Definition at line 97 of file ZMQHistogramOutput.h.
Definition at line 99 of file ZMQHistogramOutput.h.
Definition at line 98 of file ZMQHistogramOutput.h.
|
inline |
Definition at line 102 of file ProcessController.h.
|
inline |
Definition at line 191 of file AbstractDBObject.h.
|
inline |
Definition at line 196 of file AbstractDBObject.h.
|
inline |
Definition at line 221 of file AbstractDBObject.h.
|
inline |
Definition at line 216 of file AbstractDBObject.h.
|
inline |
Definition at line 206 of file AbstractDBObject.h.
|
inline |
Definition at line 211 of file AbstractDBObject.h.
|
protectedvirtual |
Override in a derived class to add the command line arguments. Do not forget to call this base function also.
Reimplemented in ZMQReadySender, ZMQAcceptor, ZMQWorker, ZMQCollector, ZMQOutputAdapter, ZMQProxyCollector, ZMQFinalCollector, ZMQFinalCollectorWithROI, ZMQDistributor, ZMQInputAdapter, ZMQHistogramToFileServer, ZMQHistogramToZMQServer, and ZMQHistogramToRawServer.
Definition at line 160 of file ZMQApp.details.h.
|
inline |
Definition at line 201 of file AbstractDBObject.h.
|
inline |
Definition at line 117 of file NSMCallback.h.
|
private |
Helper function to check, if the timeout should happen.
Definition at line 195 of file ZMQApp.details.h.
|
protectedvirtual |
Using the connections, fill up a buffer with the content to be monitored.
Reimplemented in ZMQFinalCollectorWithROI.
Definition at line 256 of file ZMQApp.details.h.
|
inline |
Definition at line 121 of file AbstractDBObject.h.
|
inline |
Definition at line 126 of file AbstractDBObject.h.
|
inline |
Definition at line 100 of file NSMCallback.h.
|
inline |
Definition at line 151 of file AbstractDBObject.h.
|
inline |
Definition at line 146 of file AbstractDBObject.h.
|
inline |
Definition at line 136 of file AbstractDBObject.h.
|
inline |
Definition at line 141 of file AbstractDBObject.h.
|
inline |
Definition at line 131 of file AbstractDBObject.h.
|
protectedvirtual |
Will get called for every signal message on the monitoring connection. Can be overridden in a derived class. Empty by default.
Reimplemented in ZMQCollector, ZMQOutputAdapter, ZMQProxyCollector, ZMQFinalCollector, ZMQFinalCollectorWithROI, ZMQDistributor, ZMQInputAdapter, ZMQHistogramToFileServer, ZMQHistogramToZMQServer, and ZMQHistogramToRawServer.
Definition at line 167 of file ZMQApp.details.h.
|
protectedvirtual |
Will get called for every message on the input connection. Can be overridden in a derived class. Calls handleIncomingData by default.
Reimplemented in ZMQWorker, ZMQCollector, ZMQOutputAdapter, ZMQProxyCollector, ZMQFinalCollector, ZMQFinalCollectorWithROI, ZMQDistributor, ZMQInputAdapter, ZMQHistogramToFileServer, ZMQHistogramToZMQServer, and ZMQHistogramToRawServer.
Definition at line 172 of file ZMQApp.details.h.
|
private |
Handle an incoming message on the monitoring socket by either calling handleExternalSignal() or by passing on the monitor JSONs of the connections.
Definition at line 232 of file ZMQApp.details.h.
|
protectedvirtual |
Will get called for every message on the output connection. Can be overridden in a derived class. Calls handleIncomingData by default.
Definition at line 178 of file ZMQApp.details.h.
|
protectedvirtual |
Will get called on a timeout. Can be overridden in a derived class. Empty by default.
Reimplemented in ZMQCollector, ZMQProxyCollector, ZMQFinalCollector, ZMQFinalCollectorWithROI, ZMQDistributor, ZMQInputAdapter, ZMQHistogramToFileServer, ZMQHistogramToZMQServer, and ZMQHistogramToRawServer.
Definition at line 184 of file ZMQApp.details.h.
|
inline |
Definition at line 78 of file ConfigFile.h.
void initFromConsole | ( | const std::string & | description, |
int | argc, | ||
char * | argv[] | ||
) |
Should be called before the main() function to initialize the connections using the paremeters given on command line.
Custom implementations should implement the addOptions function to pass the command line arguments correctly. Calls the initialize function (which should also be overridden).
Definition at line 21 of file ZMQApp.details.h.
|
protectedvirtual |
Override in a derived class to initialize the connections from the given command line arguments. Do not forget to call this base function also.
Reimplemented in ZMQReadySender, ZMQAcceptor, ZMQWorker, ZMQCollector, ZMQOutputAdapter, ZMQProxyCollector, ZMQFinalCollector, ZMQFinalCollectorWithROI, ZMQDistributor, ZMQInputAdapter, ZMQHistogramToFileServer, ZMQHistogramToZMQServer, and ZMQHistogramToRawServer.
Definition at line 153 of file ZMQApp.details.h.
void main |
Start the main loop polling on the output and monitoring connections and eventually also on the input if the output is ready.
Calls the functions handleExternalSignal, handleInput, handleOutput and handleTimeout as described in the documentation of this class.
Definition at line 85 of file ZMQApp.details.h.
int nsm_read_argv | ( | int | argc, |
const char ** | argv, | ||
int(*)(const char **argv) | help, | ||
char ** | argv_in, | ||
ConfigFile & | config, | ||
std::string & | name, | ||
std::string & | username, | ||
int | nargv | ||
) |
Definition at line 19 of file nsm_read_argv.cc.
|
inline |
Definition at line 108 of file NSMCallback.h.
|
inline |
Definition at line 55 of file Connection.h.
|
inline |
|
inline |
Definition at line 50 of file Connection.h.
|
inline |
|
inline |
|
protected |
Poll until a single event is retreived.
Definition at line 104 of file ZMQApp.details.h.
|
protected |
Helper function to reset the start time and the remaining time.
Definition at line 219 of file ZMQApp.details.h.
|
inline |
Definition at line 156 of file AbstractDBObject.h.
|
inline |
Definition at line 161 of file AbstractDBObject.h.
|
inline |
Definition at line 110 of file RCCallback.h.
|
inline |
Definition at line 186 of file AbstractDBObject.h.
|
inline |
Definition at line 181 of file AbstractDBObject.h.
|
inline |
Definition at line 171 of file AbstractDBObject.h.
|
inline |
Definition at line 176 of file AbstractDBObject.h.
|
inline |
Definition at line 166 of file AbstractDBObject.h.
|
protected |
Check if the main loop will be exited on next occasion. Can be set via the "m_terminate" flag.
Definition at line 189 of file ZMQApp.details.h.
|
private |
Helper function to update the remaining time.
Definition at line 202 of file ZMQApp.details.h.
ZMQHistogramOutput | ( | unsigned int | maximalUncompressedBufferSize, |
Args &&... | args | ||
) |
Perfectly forward the given arguments to the base class initializer (and init the buffer size)
Definition at line 85 of file ZMQHistogramOutput.h.
Cond g_cond |
Definition at line 37 of file stevtserver.cc.
Mutex g_mutex |
Definition at line 36 of file stevtserver.cc.
const int ro_summary_revision = 1 |
Definition at line 21 of file ro_summary.h.
const int ronode_status_revision = 1 |
Definition at line 21 of file ronode_status.h.