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 public:
49 
50  void postBeginJob();
51  void postEndJob();
52  void jobFailure();
53 
54  void preSource ();
55  void postSource ();
56 
57  void preFile ();
58  void preFileClose ();
59  void postFile ();
60 
63 
66 
67  void preModule ( ModuleDescription const & );
68  void postModule( ModuleDescription const & );
69 
70  void preModuleBeginJob ( ModuleDescription const & );
71  void postModuleBeginJob ( ModuleDescription const & );
72  void preModuleEndJob ( ModuleDescription const & );
73  void postModuleEndJob ( ModuleDescription const & );
74 
75  void preModuleBeginRun ( ModuleDescription const & );
76  void postModuleBeginRun ( ModuleDescription const & );
77  void preModuleEndRun ( ModuleDescription const & );
78  void postModuleEndRun ( ModuleDescription const & );
79 
80  void preModuleBeginLumi ( ModuleDescription const & );
81  void postModuleBeginLumi ( ModuleDescription const & );
82  void preModuleEndLumi ( ModuleDescription const & );
83  void postModuleEndLumi ( ModuleDescription const & );
84 
85  void preEventProcessing ( edm::EventID const &, edm::Timestamp const & );
86  void postEventProcessing( Event const &, EventSetup const & );
87 
88  void preBeginRun ( const edm::RunID&, const edm::Timestamp& );
89  void postBeginRun ( const edm::Run&, EventSetup const & );
90  void preEndRun ( const edm::RunID&, const edm::Timestamp& );
91  void postEndRun ( const edm::Run&, EventSetup const & );
92  void preBeginLumi ( const edm::LuminosityBlockID&, const edm::Timestamp& );
93  void postBeginLumi ( const edm::LuminosityBlock&, EventSetup const & );
94  void preEndLumi ( const edm::LuminosityBlockID&, const edm::Timestamp& );
95  void postEndLumi ( const edm::LuminosityBlock&, EventSetup const & );
96 
97  void prePathBeginRun ( const std::string& pathname );
98  void postPathBeginRun ( const std::string& pathname, HLTPathStatus const&);
99  void prePathEndRun ( const std::string& pathname );
100  void postPathEndRun ( const std::string& pathname, HLTPathStatus const&);
101  void prePathBeginLumi ( const std::string& pathname );
102  void postPathBeginLumi ( const std::string& pathname, HLTPathStatus const&);
103  void prePathEndLumi ( const std::string& pathname );
104  void postPathEndLumi ( const std::string& pathname, HLTPathStatus const&);
105  void preProcessPath ( const std::string& pathname );
106  void postProcessPath ( const std::string& pathname, HLTPathStatus const&);
107 
108 
109  void fillErrorObj(edm::ErrorObj& obj) const;
110  bool debugEnabled() const { return debugEnabled_; }
111 
112  static
114 
115  static
116  void SummarizeInJobReport();
117 
118 private:
119 
120  // set up the module name in the message drop, and the enable/suppress info
121  void establishModule ( const ModuleDescription& desc,
122  const char* whichPhase );
123  void establishModuleCtor ( const ModuleDescription& desc,
124  const char* whichPhase );
125  void unEstablishModule ( const ModuleDescription& desc,
126  const char* whichPhase );
127  void establish ( const char* whichPhase );
128  void unEstablish ( const char* whichPhase );
129 
131 
132  std::set<std::string> debugEnabledModules_;
133  std::map<std::string,ELseverityLevel> suppression_levels_;
135  //this is a cache which profiling has shown to be helpful
136  std::map<const ModuleDescription*, std::string> descToCalcName_;
137  static bool anyDebugEnabled_;
138  static bool everyDebugEnabled_;
139 
140  static bool fjrSummaryRequested_;
143 
148 
149 }; // MessageLogger
150 
151  inline
153  return true;
154  }
155 
156 } // namespace service
157 
158 } // namespace edm
159 
160 
161 
162 #endif // FWCore_MessageService_MessageLogger_h
163 
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 &)
bool isProcessWideService(TFileService const *)
Definition: TFileService.h:43
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 &)
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:33
void prePathEndRun(const std::string &pathname)