CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMMonitoringService.h
Go to the documentation of this file.
1 #ifndef DQMServices_StreamerIO_DQMMonitoringService_h
2 #define DQMServices_StreamerIO_DQMMonitoringService_h
3 
15 #include "boost/filesystem.hpp"
16 
17 #include <string>
18 #include <vector>
19 #include <map>
20 #include <queue>
21 #include <sstream>
22 #include <chrono>
23 #include <unordered_map>
24 
25 #include <boost/filesystem.hpp>
26 #include <boost/format.hpp>
27 #include <boost/property_tree/json_parser.hpp>
28 #include <boost/property_tree/ptree.hpp>
29 
30 /*
31  * This service is very similar to the FastMonitoringService in the HLT,
32  * except that it is used for monitoring online DQM applications
33  */
34 
35 namespace dqmservices {
36 
37 using boost::property_tree::ptree;
38 using edm::StreamID;
39 using edm::StreamContext;
40 using edm::GlobalContext;
41 
43  public:
46 
47  void keepAlive();
48  void outputUpdate(ptree& doc);
49 
50  void evLumi(GlobalContext const&);
51  void evEvent(StreamID const&);
52 
53  //void makeReport();
54 
55  private:
56  std::shared_ptr<std::ostream> mstream_;
57  ptree doc_;
58 
59  long nevents_;
61  std::chrono::high_resolution_clock::time_point last_report_time_;
62 };
63 
64 } // end-of-namespace
65 
66 #endif
tuple doc
Definition: asciidump.py:381
std::chrono::high_resolution_clock::time_point last_report_time_
DQMMonitoringService(const edm::ParameterSet &, edm::ActivityRegistry &)
void evLumi(GlobalContext const &)
std::shared_ptr< std::ostream > mstream_