artdaq
v3_06_00
|
NetMonTransportService extends NetMonTransportServiceInterface. It sends events using DataSenderManager and receives events from the GlobalQueue. More...
#include <artdaq/ArtModules/NetMonTransportService.h>
Classes | |
struct | Config |
Allowed Configuration parameters of NetMonTransportService. May be used for configuration validation More... | |
Public Types | |
using | Parameters = fhicl::WrappedTable< Config > |
Used for ParameterSet validation (if desired) | |
Public Member Functions | |
virtual | ~NetMonTransportService () |
NetMonTransportService Destructor. Calls disconnect(). | |
NetMonTransportService (fhicl::ParameterSet const &pset, art::ActivityRegistry &) | |
NetMonTransportService Constructor. More... | |
void | connect () override |
Reconnect the NetMonTransportService. More... | |
void | disconnect () override |
Disconnects the NetMonTranportService. More... | |
void | listen () override |
Listen for connections. This method is a No-Op. | |
void | sendMessage (uint64_t sequenceId, uint8_t messageType, TBufferFile &msg) override |
Send ROOT data, wrapped in an artdaq::Fragment object. More... | |
void | receiveMessage (TBufferFile *&msg) override |
Receive data from the ConcurrentQueue. More... | |
void | receiveInitMessage (TBufferFile *&msg) override |
Receive the init message. More... | |
size_t | dataReceiverCount () const |
Get the number of data receivers. More... | |
![]() | |
virtual | ~NetMonTransportServiceInterface ()=default |
Default virtual destructor. | |
NetMonTransportService extends NetMonTransportServiceInterface. It sends events using DataSenderManager and receives events from the GlobalQueue.
Definition at line 16 of file NetMonTransportService.h.
NetMonTransportService::NetMonTransportService | ( | fhicl::ParameterSet const & | pset, |
art::ActivityRegistry & | |||
) |
NetMonTransportService Constructor.
pset | ParameterSet used to configure NetMonTransportService and DataSenderManager. See NetMonTransportService::Config |
Definition at line 34 of file NetMonTransportService_service.cc.
|
overridevirtual |
Reconnect the NetMonTransportService.
Creates a new instance of DataSenderManager using the stored ParameterSet
Implements NetMonTransportServiceInterface.
Definition at line 44 of file NetMonTransportService_service.cc.
|
inline |
Get the number of data receivers.
Definition at line 88 of file NetMonTransportService.h.
|
overridevirtual |
Disconnects the NetMonTranportService.
Destructs the DataSenderManager
Implements NetMonTransportServiceInterface.
Definition at line 96 of file NetMonTransportService_service.cc.
|
overridevirtual |
Receive the init message.
[out] | msg | ROOT message data |
Implements NetMonTransportServiceInterface.
Definition at line 259 of file NetMonTransportService_service.cc.
|
overridevirtual |
Receive data from the ConcurrentQueue.
[out] | msg | Received data |
Implements NetMonTransportServiceInterface.
Definition at line 130 of file NetMonTransportService_service.cc.
|
overridevirtual |
Send ROOT data, wrapped in an artdaq::Fragment object.
sequenceId | The sequence id of the Fragment which will wrap the ROOT data |
messageType | The type id of the Fragment which will wrap the ROOT data |
msg | The ROOT data to send |
Implements NetMonTransportServiceInterface.
Definition at line 101 of file NetMonTransportService_service.cc.