$treeview $search $mathjax $extrastylesheet
artdaq
v3_04_00
$projectbrief
|
$projectbrief
|
$searchbox |
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 Member Functions | |
virtual | ~NetMonTransportService () |
NetMonTransportService Destructor. Calls disconnect(). | |
NetMonTransportService (fhicl::ParameterSet const &pset, art::ActivityRegistry &) | |
NetMonTransportService Constructor. | |
void | connect () override |
Reconnect the NetMonTransportService. | |
void | disconnect () override |
Disconnects the NetMonTranportService. | |
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. | |
void | receiveMessage (TBufferFile *&msg) override |
Receive data from the ConcurrentQueue. | |
void | receiveInitMessage (TBufferFile *&msg) override |
Receive the init message. | |
size_t | dataReceiverCount () const |
Get the number of data receivers. |
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 37 of file NetMonTransportService_service.cc.
void NetMonTransportService::connect | ( | ) | [override, virtual] |
Reconnect the NetMonTransportService.
Creates a new instance of DataSenderManager using the stored ParameterSet
Implements NetMonTransportServiceInterface.
Definition at line 59 of file NetMonTransportService_service.cc.
size_t NetMonTransportService::dataReceiverCount | ( | ) | const [inline] |
Get the number of data receivers.
Definition at line 87 of file NetMonTransportService.h.
void NetMonTransportService::disconnect | ( | ) | [override, virtual] |
Disconnects the NetMonTranportService.
Destructs the DataSenderManager
Implements NetMonTransportServiceInterface.
Definition at line 89 of file NetMonTransportService_service.cc.
void NetMonTransportService::receiveInitMessage | ( | TBufferFile *& | msg | ) | [override, virtual] |
Receive the init message.
[out] | msg | ROOT message data |
Implements NetMonTransportServiceInterface.
Definition at line 252 of file NetMonTransportService_service.cc.
void NetMonTransportService::receiveMessage | ( | TBufferFile *& | msg | ) | [override, virtual] |
Receive data from the ConcurrentQueue.
[out] | msg | Received data |
Implements NetMonTransportServiceInterface.
Definition at line 125 of file NetMonTransportService_service.cc.
void NetMonTransportService::sendMessage | ( | uint64_t | sequenceId, | |
uint8_t | messageType, | |||
TBufferFile & | msg | |||
) | [override, virtual] |
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 96 of file NetMonTransportService_service.cc.