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 
45 
46 class GetLumi;
47 
48 //
49 // class declaration
50 //
51 
53 public:
54  explicit LogMessageMonitor(const edm::ParameterSet&);
55  ~LogMessageMonitor() override;
56 
57  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
58 
59 private:
60  // virtual void beginJob() ;
61  void analyze(const edm::Event&, const edm::EventSetup&) override;
62  void endJob() override;
63 
64  // virtual void beginRun(edm::Run const&, edm::EventSetup const&);
65  void dqmEndRun(edm::Run const&, edm::EventSetup const&) override;
66 
67  void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
68 
69  // ----------member data ---------------------------
71 
72  std::string histname; //for naming the histograms according to algorithm used
73 
76 
77  std::map<std::string, int> modulesMap;
78 
79  // from parameters
81  std::vector<std::string> modules_vector_;
82  std::vector<std::string> categories_vector_;
83 
86 
87  // MEs
88  std::vector<MonitorElement*> ModulesErrorsVsBXlumi;
89  std::vector<MonitorElement*> ModulesWarningsVsBXlumi;
90 
92 
95 };
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_
void dqmEndRun(edm::Run const &, edm::EventSetup const &) override
~LogMessageMonitor() override
Definition: Run.h:45