1 #ifndef artdaq_core_Core_StatisticsCollection_hh
2 #define artdaq_core_Core_StatisticsCollection_hh
4 #include "artdaq-core/Core/MonitoredQuantity.hh"
11 typedef std::shared_ptr<MonitoredQuantity> MonitoredQuantityPtr;
20 void addMonitoredQuantity(
const std::string & name,
21 MonitoredQuantityPtr mqPtr);
22 MonitoredQuantityPtr getMonitoredQuantity(
const std::string & name)
const;
36 double calculationInterval_;
37 std::map<std::string, MonitoredQuantityPtr> monitoredQuantityMap_;
39 bool thread_stop_requested_;
40 std::thread * calculation_thread_;
41 mutable std::mutex map_mutex_;
static StatisticsCollection & getInstance()