2 #define TRACE_NAME (app_name + "_RootNetOutput").c_str()
3 #include "artdaq/ArtModules/ArtdaqOutput.hh"
5 #include "artdaq/ArtModules/NetMonTransportService.h"
6 #include "artdaq/DAQdata/NetMonHeader.hh"
41 virtual void SendMessage(artdaq::Fragment::sequence_id_t sequence_id, artdaq::Fragment::type_t messageType, TBufferFile& msg);
47 TLOG(TLVL_DEBUG) <<
"Begin: RootNetOutput::RootNetOutput(ParameterSet const& ps)";
48 ServiceHandle<NetMonTransportService> transport;
50 TLOG(TLVL_DEBUG) <<
"End: RootNetOutput::RootNetOutput(ParameterSet const& ps)";
55 TLOG(TLVL_DEBUG) <<
"Begin: RootNetOutput::~RootNetOutput()";
56 ServiceHandle<NetMonTransportService> transport;
57 transport->disconnect();
58 TLOG(TLVL_DEBUG) <<
"End: RootNetOutput::~RootNetOutput()";
67 ServiceHandle<NetMonTransportService> transport;
70 TLOG(TLVL_ERROR) <<
"Could not get handle to NetMonTransportService!";
73 TLOG(TLVL_WRITE) <<
"RootNetOutput::SendMessage Sending a message with type code "
74 << artdaq::detail::RawFragmentHeader::SystemTypeToString(messageType);
75 transport->sendMessage(sequence_id, messageType, msg);
76 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.