2 #include "artdaq/ArtModules/ArtdaqOutput.hh"
4 #include "artdaq/ArtModules/NetMonTransportService.h"
5 #include "artdaq/DAQdata/NetMonHeader.hh"
8 #define TRACE_NAME (app_name + "_RootNetOutput").c_str()
43 virtual void SendMessage(artdaq::Fragment::sequence_id_t sequence_id, artdaq::Fragment::type_t messageType, TBufferFile& msg);
49 TLOG(TLVL_DEBUG) <<
"Begin: RootNetOutput::RootNetOutput(ParameterSet const& ps)";
50 ServiceHandle<NetMonTransportService> transport;
52 TLOG(TLVL_DEBUG) <<
"End: RootNetOutput::RootNetOutput(ParameterSet const& ps)";
57 TLOG(TLVL_DEBUG) <<
"Begin: RootNetOutput::~RootNetOutput()";
58 ServiceHandle<NetMonTransportService> transport;
59 transport->disconnect();
60 TLOG(TLVL_DEBUG) <<
"End: RootNetOutput::~RootNetOutput()";
69 ServiceHandle<NetMonTransportService> transport;
72 TLOG(TLVL_ERROR) <<
"Could not get handle to NetMonTransportService!";
75 TLOG(TLVL_WRITE) <<
"RootNetOutput::SendMessage Sending a message with type code "
76 << artdaq::detail::RawFragmentHeader::SystemTypeToString(messageType);
77 transport->sendMessage(sequence_id, messageType, msg);
78 TLOG(TLVL_WRITE) <<
"RootNetOutput::SendMessage: Message sent.";
This is the base class for artdaq OutputModules, providing the serialization interface for art Events...
virtual void SendMessage(artdaq::Fragment::sequence_id_t sequence_id, artdaq::Fragment::type_t messageType, TBufferFile &msg)
Send a message using DataSenderManager
~RootNetOutput()
RootNetOutput Destructor.
An art::OutputModule which sends events using DataSenderManager. This module is designed for transpor...
RootNetOutput(fhicl::ParameterSet const &ps)
RootNetOutput Constructor.