1 #ifndef artdaq_ArtModules_NetMonWrapper_hh
2 #define artdaq_ArtModules_NetMonWrapper_hh
5 #include "artdaq/ArtModules/NetMonTransportService.h"
7 #include "art/Framework/Services/Registry/ServiceHandle.h"
8 #include "artdaq-core/Utilities/ExceptionHandler.hh"
9 #include "fhiclcpp/fwd.h"
11 #include <TBufferFile.h>
42 ServiceHandle<NetMonTransportService> transport;
48 metricMan->initialize(pset.get<fhicl::ParameterSet>(
"metrics", fhicl::ParameterSet()), app_name);
49 metricMan->do_start();
54 artdaq::ExceptionHandler(artdaq::ExceptionHandlerRethrow::no,
"Error loading metrics in NetMonWrapper");
63 ServiceHandle<NetMonTransportService> transport;
64 transport->disconnect();
65 artdaq::Globals::CleanUpGlobals();
~NetMonWrapper()
NetMonWrapper Destructor.
This class wraps NetMonTransportService so that it can act as an ArtdaqInput template class...
void receiveMessage(std::unique_ptr< TBufferFile > &msg)
Receive a message from the NetMonTransportService.
NetMonWrapper(const fhicl::ParameterSet &pset)
NetMonWrapper Constructor.
void receiveInitMessage(std::unique_ptr< TBufferFile > &msg)
Receive an init message from the NetMonTransportService.