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 // $Id: LogMessageMonitor.h,v 1.1 2012/10/15 13:24:45 threus Exp $
17 //
18 //
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
26 
30 
32 
35 
36 #include <vector>
37 #include <string>
38 #include <map>
39 
40 class DQMStore;
42 
43 class GetLumi;
44 
45 //
46 // class declaration
47 //
48 
50  public:
51  explicit LogMessageMonitor(const edm::ParameterSet&);
53 
54  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
55 
56 
57  private:
58  virtual void beginJob() ;
59  virtual void analyze(const edm::Event&, const edm::EventSetup&);
60  virtual void endJob() ;
61 
62  virtual void beginRun(edm::Run const&, edm::EventSetup const&);
63  virtual void endRun(edm::Run const&, edm::EventSetup const&);
64  virtual void beginLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
65  virtual void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&);
66 
67  // ----------member data ---------------------------
68  std::string histname; //for naming the histograms according to algorithm used
69 
72 
73  std::map<std::string,int> modulesMap;
74 
75  // from parameters
76  std::string pluginsMonName_;
77  std::vector<std::string> modules_vector_;
78  std::vector<std::string> categories_vector_;
79 
82 
83  // MEs
84  std::vector<MonitorElement*> ModulesErrorsVsBXlumi;
85  std::vector<MonitorElement*> ModulesWarningsVsBXlumi;
86 
88 
91 
92 };
virtual void endJob()
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
LogMessageMonitor(const edm::ParameterSet &)
MonitorElement * CategoriesVsModules
std::vector< std::string > categories_vector_
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 &)
virtual void beginJob()
GenericTriggerEventFlag * genTriggerEventFlag_
std::vector< std::string > modules_vector_
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
std::string pluginsMonName_
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
Definition: Run.h:33