CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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&);
57 
58  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
59 
60 
61  private:
62  // virtual void beginJob() ;
63  virtual void analyze(const edm::Event&, const edm::EventSetup&);
64  virtual void endJob() ;
65 
66  // virtual void beginRun(edm::Run const&, edm::EventSetup const&);
67  virtual void endRun(edm::Run const&, edm::EventSetup const&);
68  virtual void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
69  virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
70 
71  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
72 
73  // ----------member data ---------------------------
75 
76  std::string histname; //for naming the histograms according to algorithm used
77 
80 
81  std::map<std::string,int> modulesMap;
82 
83  // from parameters
85  std::vector<std::string> modules_vector_;
86  std::vector<std::string> categories_vector_;
87 
90 
91  // MEs
92  std::vector<MonitorElement*> ModulesErrorsVsBXlumi;
93  std::vector<MonitorElement*> ModulesWarningsVsBXlumi;
94 
96 
99 
100 };
virtual void endJob()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
LogMessageMonitor(const edm::ParameterSet &)
MonitorElement * CategoriesVsModules
std::vector< std::string > categories_vector_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::vector< MonitorElement * > ModulesWarningsVsBXlumi
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
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_
virtual void endRun(edm::Run const &, edm::EventSetup const &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::EDGetTokenT< std::vector< edm::ErrorSummaryEntry > > errorToken_
GenericTriggerEventFlag * genTriggerEventFlag_
std::vector< std::string > modules_vector_
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
std::string pluginsMonName_
Definition: Run.h:43