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