1 #ifndef artdaq_ArtModules_NetMonWrapper_hh
2 #define artdaq_ArtModules_NetMonWrapper_hh
4 #include "artdaq/ArtModules/NetMonTransportService.h"
6 #include "art/Framework/Services/Registry/ServiceHandle.h"
7 #include "artdaq-core/Utilities/ExceptionHandler.hh"
8 #include "fhiclcpp/fwd.h"
10 #include <TBufferFile.h>
34 ServiceHandle<NetMonTransportService> transport;
41 metricMan->initialize(pset.get<fhicl::ParameterSet>(
"metrics", fhicl::ParameterSet()), app_name);
42 metricMan->do_start();
47 artdaq::ExceptionHandler(artdaq::ExceptionHandlerRethrow::no,
"Error loading metrics in NetMonWrapper");
56 ServiceHandle<NetMonTransportService> transport;
57 transport->disconnect();
~NetMonWrapper()
NetMonWrapper Destructor.
This class wraps NetMonTransportService so that it can act as an ArtdaqInput template class...
static void CleanUpGlobals()
Clean up statically-allocated Manager class instances.
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.