CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MessageLogger.h
Go to the documentation of this file.
1 #ifndef FWCore_MessageService_MessageLogger_h
2 #define FWCore_MessageService_MessageLogger_h
3 
4 // -*- C++ -*-
5 //
6 // Package: Services
7 // Class : MessageLogger
8 //
17 //
18 // Original Author: W. Brown and M. Fischler
19 // Created: Fri Nov 11 16:38:19 CST 2005
20 // Major Split: Tue Feb 14 15:00:00 CST 2006
21 // See FWCore/MessageLogger/MessageLogger.h
22 //
23 
24 // system include files
25 
26 #include <memory>
27 #include <string>
28 #include <set>
29 #include <map>
30 
31 // user include files
32 
34 
38 
39 // forward declarations
40 
41 namespace edm {
42 class ParameterSet;
43 namespace service {
44 
45 
47 {
48 public:
50 
51  void postBeginJob();
52  void postEndJob();
53  void jobFailure();
54 
55  void preSource ();
56  void postSource ();
57 
58  void preFile ();
59  void preFileClose ();
60  void postFile ();
61 
64 
67 
68  void preModule ( ModuleDescription const & );
69  void postModule( ModuleDescription const & );
70 
71  void preModuleBeginJob ( ModuleDescription const & );
72  void postModuleBeginJob ( ModuleDescription const & );
73  void preModuleEndJob ( ModuleDescription const & );
74  void postModuleEndJob ( ModuleDescription const & );
75 
76  void preModuleBeginRun ( ModuleDescription const & );
77  void postModuleBeginRun ( ModuleDescription const & );
78  void preModuleEndRun ( ModuleDescription const & );
79  void postModuleEndRun ( ModuleDescription const & );
80 
81  void preModuleBeginLumi ( ModuleDescription const & );
82  void postModuleBeginLumi ( ModuleDescription const & );
83  void preModuleEndLumi ( ModuleDescription const & );
84  void postModuleEndLumi ( ModuleDescription const & );
85 
86  void preEventProcessing ( edm::EventID const &, edm::Timestamp const & );
87  void postEventProcessing( Event const &, EventSetup const & );
88 
89  void preBeginRun ( const edm::RunID&, const edm::Timestamp& );
90  void postBeginRun ( const edm::Run&, EventSetup const & );
91  void preEndRun ( const edm::RunID&, const edm::Timestamp& );
92  void postEndRun ( const edm::Run&, EventSetup const & );
93  void preBeginLumi ( const edm::LuminosityBlockID&, const edm::Timestamp& );
94  void postBeginLumi ( const edm::LuminosityBlock&, EventSetup const & );
95  void preEndLumi ( const edm::LuminosityBlockID&, const edm::Timestamp& );
96  void postEndLumi ( const edm::LuminosityBlock&, EventSetup const & );
97 
98  void prePathBeginRun ( const std::string& pathname );
99  void postPathBeginRun ( const std::string& pathname, HLTPathStatus const&);
100  void prePathEndRun ( const std::string& pathname );
101  void postPathEndRun ( const std::string& pathname, HLTPathStatus const&);
102  void prePathBeginLumi ( const std::string& pathname );
103  void postPathBeginLumi ( const std::string& pathname, HLTPathStatus const&);
104  void prePathEndLumi ( const std::string& pathname );
105  void postPathEndLumi ( const std::string& pathname, HLTPathStatus const&);
106  void preProcessPath ( const std::string& pathname );
107  void postProcessPath ( const std::string& pathname, HLTPathStatus const&);
108 
109 
110  void fillErrorObj(edm::ErrorObj& obj) const;
111  bool debugEnabled() const { return debugEnabled_; }
112 
113  static
115 
116  static
117  void SummarizeInJobReport();
118 
119 private:
120 
121  // set up the module name in the message drop, and the enable/suppress info
122  void establishModule ( const ModuleDescription& desc,
123  const char* whichPhase );
124  void establishModuleCtor ( const ModuleDescription& desc,
125  const char* whichPhase );
126  void unEstablishModule ( const ModuleDescription& desc,
127  const char* whichPhase );
128  void establish ( const char* whichPhase );
129  void unEstablish ( const char* whichPhase );
130 
132 
133  std::set<std::string> debugEnabledModules_;
134  std::map<std::string,ELseverityLevel> suppression_levels_;
136  //this is a cache which profiling has shown to be helpful
137  std::map<const ModuleDescription*, std::string> descToCalcName_;
138  static bool anyDebugEnabled_;
139  static bool everyDebugEnabled_;
140 
141  static bool fjrSummaryRequested_;
144 
148 
149 }; // MessageLogger
150 
151 
152 } // namespace service
153 
154 } // namespace edm
155 
156 
157 
158 #endif // FWCore_MessageService_MessageLogger_h
159 
void preModuleBeginLumi(ModuleDescription const &)
void preModuleEndJob(ModuleDescription const &)
void postModuleConstruction(ModuleDescription const &)
void preEndLumi(const edm::LuminosityBlockID &, const edm::Timestamp &)
void postBeginRun(const edm::Run &, EventSetup const &)
void postPathEndLumi(const std::string &pathname, HLTPathStatus const &)
void preBeginRun(const edm::RunID &, const edm::Timestamp &)
void preModuleBeginJob(ModuleDescription const &)
void postEndRun(const edm::Run &, EventSetup const &)
void prePathEndLumi(const std::string &pathname)
void preSourceConstruction(ModuleDescription const &)
MessageLogger(ParameterSet const &, ActivityRegistry &)
void preEndRun(const edm::RunID &, const edm::Timestamp &)
void postModuleEndLumi(ModuleDescription const &)
void postPathEndRun(const std::string &pathname, HLTPathStatus const &)
void establishModuleCtor(const ModuleDescription &desc, const char *whichPhase)
void postPathBeginLumi(const std::string &pathname, HLTPathStatus const &)
void postEventProcessing(Event const &, EventSetup const &)
void postModuleEndRun(ModuleDescription const &)
tuple obj
Example code starts here #.
Definition: VarParsing.py:655
void postEndLumi(const edm::LuminosityBlock &, EventSetup const &)
void preModuleEndRun(ModuleDescription const &)
void postBeginLumi(const edm::LuminosityBlock &, EventSetup const &)
void prePathBeginLumi(const std::string &pathname)
void preModuleConstruction(ModuleDescription const &)
void fillErrorObj(edm::ErrorObj &obj) const
void postModuleBeginRun(ModuleDescription const &)
void unEstablishModule(const ModuleDescription &desc, const char *whichPhase)
void preModuleBeginRun(ModuleDescription const &)
void postModuleBeginLumi(ModuleDescription const &)
void preEventProcessing(edm::EventID const &, edm::Timestamp const &)
std::set< std::string > debugEnabledModules_
void establish(const char *whichPhase)
void postSourceConstruction(ModuleDescription const &)
void preModuleEndLumi(ModuleDescription const &)
void postModuleEndJob(ModuleDescription const &)
void postProcessPath(const std::string &pathname, HLTPathStatus const &)
void unEstablish(const char *whichPhase)
void prePathBeginRun(const std::string &pathname)
void postModuleBeginJob(ModuleDescription const &)
void establishModule(const ModuleDescription &desc, const char *whichPhase)
static void SummarizeInJobReport()
std::map< const ModuleDescription *, std::string > descToCalcName_
void postPathBeginRun(const std::string &pathname, HLTPathStatus const &)
void preProcessPath(const std::string &pathname)
void preBeginLumi(const edm::LuminosityBlockID &, const edm::Timestamp &)
void preModule(ModuleDescription const &)
std::string messageServicePSetValidatationResults_
void postModule(ModuleDescription const &)
std::map< std::string, ELseverityLevel > suppression_levels_
Definition: Run.h:31
void prePathEndRun(const std::string &pathname)