CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Tracer.h
Go to the documentation of this file.
1 #ifndef FWCore_Services_Tracer_h
2 #define FWCore_Services_Tracer_h
3 // -*- C++ -*-
4 //
5 // Package: Services
6 // Class : Tracer
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Thu Sep 8 14:35:45 EDT 2005
19 //
20 
21 // system include files
22 
23 // user include files
24 
25 // forward declarations
26 
29 
30 #include <string>
31 #include <set>
32 
33 namespace edm {
35  class GlobalContext;
36  class HLTPathStatus;
37  class LuminosityBlock;
38  class ModuleCallingContext;
39  class ModuleDescription;
40  class PathContext;
41  class PathsAndConsumesOfModulesBase;
42  class ProcessContext;
43  class Run;
44  class StreamContext;
45 
46  namespace service {
47  class Tracer {
48  public:
50 
51  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
52 
54 
56  void postBeginJob();
57  void postEndJob();
58 
61 
62  void preSourceLumi();
63  void postSourceLumi();
64 
65  void preSourceRun();
66  void postSourceRun();
67 
68  void preOpenFile(std::string const&, bool);
69  void postOpenFile(std::string const&, bool);
70 
71  void preCloseFile(std::string const& lfn, bool primary);
72  void postCloseFile(std::string const&, bool);
73 
76 
79 
80  void preGlobalBeginRun(GlobalContext const&);
81  void postGlobalBeginRun(GlobalContext const&);
82 
83  void preGlobalEndRun(GlobalContext const&);
84  void postGlobalEndRun(GlobalContext const&);
85 
86  void preStreamBeginRun(StreamContext const&);
87  void postStreamBeginRun(StreamContext const&);
88 
89  void preStreamEndRun(StreamContext const&);
90  void postStreamEndRun(StreamContext const&);
91 
92  void preGlobalBeginLumi(GlobalContext const&);
94 
95  void preGlobalEndLumi(GlobalContext const&);
96  void postGlobalEndLumi(GlobalContext const&);
97 
98  void preStreamBeginLumi(StreamContext const&);
100 
101  void preStreamEndLumi(StreamContext const&);
102  void postStreamEndLumi(StreamContext const&);
103 
104  void preEvent(StreamContext const&);
105  void postEvent(StreamContext const&);
106 
107  void prePathEvent(StreamContext const&, PathContext const&);
108  void postPathEvent(StreamContext const&, PathContext const&, HLTPathStatus const&);
109 
112 
113  void preModuleBeginJob(ModuleDescription const& md);
114  void postModuleBeginJob(ModuleDescription const& md);
115 
116  void preModuleEndJob(ModuleDescription const& md);
117  void postModuleEndJob(ModuleDescription const& md);
118 
123 
128 
133 
138 
143 
146 
147  private:
149  std::set<std::string> dumpContextForLabels_;
153  };
154  }
155 }
156 #endif
void preCloseFile(std::string const &lfn, bool primary)
Definition: Tracer.cc:374
void postSourceRun()
Definition: Tracer.cc:353
void postModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:918
void postModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:978
void postModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:888
void preModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:963
void postModuleConstruction(ModuleDescription const &md)
Definition: Tracer.cc:667
void postModuleEndStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:425
void postModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:1008
void preallocate(service::SystemBounds const &)
Definition: Tracer.cc:224
void postStreamBeginLumi(StreamContext const &)
Definition: Tracer.cc:580
void preModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:993
void preModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:843
void preGlobalEndLumi(GlobalContext const &)
Definition: Tracer.cc:547
void preModuleEndJob(ModuleDescription const &md)
Definition: Tracer.cc:699
void preModuleConstruction(ModuleDescription const &md)
Definition: Tracer.cc:657
void preBeginJob(PathsAndConsumesOfModulesBase const &, ProcessContext const &)
Definition: Tracer.cc:231
void postStreamEndRun(StreamContext const &)
Definition: Tracer.cc:514
void postGlobalEndLumi(GlobalContext const &)
Definition: Tracer.cc:558
void postModuleBeginJob(ModuleDescription const &md)
Definition: Tracer.cc:688
void postModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:828
void postCloseFile(std::string const &, bool)
Definition: Tracer.cc:381
void preStreamEndLumi(StreamContext const &)
Definition: Tracer.cc:591
void preOpenFile(std::string const &, bool)
Definition: Tracer.cc:358
void preGlobalBeginRun(GlobalContext const &)
Definition: Tracer.cc:437
void preSourceEvent(StreamID)
Definition: Tracer.cc:328
void preGlobalEndRun(GlobalContext const &)
Definition: Tracer.cc:459
void preModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:873
Tracer(const ParameterSet &, ActivityRegistry &)
Definition: Tracer.cc:66
void preModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:783
void prePathEvent(StreamContext const &, PathContext const &)
Definition: Tracer.cc:635
void postModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:858
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: Tracer.cc:212
bool dumpPathsAndConsumes_
Definition: Tracer.h:151
void preModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:933
void postStreamBeginRun(StreamContext const &)
Definition: Tracer.cc:492
void preStreamEndRun(StreamContext const &)
Definition: Tracer.cc:503
void postOpenFile(std::string const &, bool)
Definition: Tracer.cc:366
void postPathEvent(StreamContext const &, PathContext const &, HLTPathStatus const &)
Definition: Tracer.cc:646
void postModuleEventDelayedGet(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:767
void preSourceLumi()
Definition: Tracer.cc:338
void postSourceEvent(StreamID)
Definition: Tracer.cc:333
std::string indention_
Definition: Tracer.h:148
void preSourceConstruction(ModuleDescription const &md)
Definition: Tracer.cc:1023
void preModuleEvent(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:721
void preModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:389
void postGlobalBeginRun(GlobalContext const &)
Definition: Tracer.cc:448
void postGlobalEndRun(GlobalContext const &)
Definition: Tracer.cc:470
void postGlobalBeginLumi(GlobalContext const &)
Definition: Tracer.cc:536
void preEvent(StreamContext const &)
Definition: Tracer.cc:613
void preStreamBeginLumi(StreamContext const &)
Definition: Tracer.cc:569
void postModuleEndJob(ModuleDescription const &md)
Definition: Tracer.cc:710
void preModuleEndStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:413
void postModuleEvent(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:736
void preModuleEventDelayedGet(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:752
void postModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:401
bool dumpNonModuleContext_
Definition: Tracer.h:150
void preModuleBeginJob(ModuleDescription const &md)
Definition: Tracer.cc:677
void postStreamEndLumi(StreamContext const &)
Definition: Tracer.cc:602
void preModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:813
void postEvent(StreamContext const &)
Definition: Tracer.cc:624
void preStreamBeginRun(StreamContext const &)
Definition: Tracer.cc:481
void postModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:798
void postSourceLumi()
Definition: Tracer.cc:343
void preGlobalBeginLumi(GlobalContext const &)
Definition: Tracer.cc:525
void postModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:948
void postSourceConstruction(ModuleDescription const &md)
Definition: Tracer.cc:1034
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:149
void preModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:903