File indexing completed on 2024-04-06 12:10:10
0001 #ifndef DQMSERVICES_CORE_DQM_SERVICE_H
0002 #define DQMSERVICES_CORE_DQM_SERVICE_H
0003
0004 #include "DQMServices/Core/interface/DQMStore.h"
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"
0008
0009 class DQMBasicNet;
0010
0011
0012 class DQMService {
0013 public:
0014 typedef dqm::legacy::DQMStore DQMStore;
0015 typedef dqm::legacy::MonitorElement MonitorElement;
0016
0017 DQMService(const edm::ParameterSet &pset, edm::ActivityRegistry &ar);
0018 ~DQMService();
0019
0020 public:
0021 void flush(edm::StreamContext const &sc);
0022
0023 private:
0024 void shutdown();
0025
0026 DQMStore *store_;
0027 DQMBasicNet *net_;
0028 double lastFlush_;
0029 double publishFrequency_;
0030
0031 public:
0032 void flushStandalone();
0033 };
0034
0035 #endif