CMS 3D CMS Logo

LogMessageMonitor.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: LogMessageMonitor
4 // Class: LogMessageMonitor
5 //
13 //
14 // Original Author: Mia Tosi,40 3-B32,+41227671609,
15 // Created: Thu Mar 8 14:34:13 CET 2012
16 //
17 //
18 
19 // system include files
20 #include <memory>
21 
22 // user include files
27 
31 
33 
35 
36 #include <vector>
37 #include <string>
38 #include <map>
39 
41 
42 class GetLumi;
43 
44 //
45 // class declaration
46 //
47 
49 public:
50  explicit LogMessageMonitor(const edm::ParameterSet&);
51  ~LogMessageMonitor() override;
52 
53  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
54 
55 private:
56  // virtual void beginJob() ;
57  void analyze(const edm::Event&, const edm::EventSetup&) override;
58  void endJob() override;
59 
60  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
61 
62  // ----------member data ---------------------------
64 
65  std::string histname; //for naming the histograms according to algorithm used
66 
69 
70  std::map<std::string, int> modulesMap;
71 
72  // from parameters
74  std::vector<std::string> modules_vector_;
75  std::vector<std::string> categories_vector_;
76 
79 
80  // MEs
81  std::vector<MonitorElement*> ModulesErrorsVsBXlumi;
82  std::vector<MonitorElement*> ModulesWarningsVsBXlumi;
83 
85 
88 };
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
LogMessageMonitor(const edm::ParameterSet &)
MonitorElement * CategoriesVsModules
std::vector< std::string > categories_vector_
void endJob() override
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< MonitorElement * > ModulesWarningsVsBXlumi
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
std::vector< MonitorElement * > ModulesErrorsVsBXlumi
edm::ParameterSet conf_
std::map< std::string, int > modulesMap
void analyze(const edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< std::vector< edm::ErrorSummaryEntry > > errorToken_
GenericTriggerEventFlag * genTriggerEventFlag_
std::vector< std::string > modules_vector_
std::string pluginsMonName_
~LogMessageMonitor() override
Definition: Run.h:45