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 
37 
39 
40 #include <vector>
41 #include <string>
42 #include <map>
43 
44 class DQMStore;
46 
47 class GetLumi;
48 
49 //
50 // class declaration
51 //
52 
54  public:
55  explicit LogMessageMonitor(const edm::ParameterSet&);
56  ~LogMessageMonitor() override;
57 
58  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
59 
60 
61  private:
62  // virtual void beginJob() ;
63  void analyze(const edm::Event&, const edm::EventSetup&) override;
64  void endJob() override;
65 
66  // virtual void beginRun(edm::Run const&, edm::EventSetup const&);
67  void endRun(edm::Run const&, edm::EventSetup const&) override;
68 
69  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
70 
71  // ----------member data ---------------------------
73 
74  std::string histname; //for naming the histograms according to algorithm used
75 
78 
79  std::map<std::string,int> modulesMap;
80 
81  // from parameters
83  std::vector<std::string> modules_vector_;
84  std::vector<std::string> categories_vector_;
85 
88 
89  // MEs
90  std::vector<MonitorElement*> ModulesErrorsVsBXlumi;
91  std::vector<MonitorElement*> ModulesWarningsVsBXlumi;
92 
94 
97 
98 };
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
std::map< std::string, int > modulesMap
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_
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_
void endRun(edm::Run const &, edm::EventSetup const &) override
~LogMessageMonitor() override
Definition: Run.h:45