test
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 Run;
42  class StreamContext;
43 
44  namespace service {
45  class Tracer {
46  public:
48 
49  static void fillDescriptions(edm::ConfigurationDescriptions & descriptions);
50 
52 
53  void postBeginJob();
54  void postEndJob();
55 
58 
59  void preSourceLumi();
60  void postSourceLumi();
61 
62  void preSourceRun();
63  void postSourceRun();
64 
65  void preOpenFile(std::string const&, bool);
66  void postOpenFile(std::string const&, bool);
67 
68  void preCloseFile(std::string const& lfn, bool primary);
69  void postCloseFile(std::string const&, bool);
70 
73 
76 
77  void preGlobalBeginRun(GlobalContext const&);
78  void postGlobalBeginRun(GlobalContext const&);
79 
80  void preGlobalEndRun(GlobalContext const&);
81  void postGlobalEndRun(GlobalContext const&);
82 
83  void preStreamBeginRun(StreamContext const&);
84  void postStreamBeginRun(StreamContext const&);
85 
86  void preStreamEndRun(StreamContext const&);
87  void postStreamEndRun(StreamContext const&);
88 
89  void preGlobalBeginLumi(GlobalContext const&);
91 
92  void preGlobalEndLumi(GlobalContext const&);
93  void postGlobalEndLumi(GlobalContext const&);
94 
95  void preStreamBeginLumi(StreamContext const&);
97 
98  void preStreamEndLumi(StreamContext const&);
99  void postStreamEndLumi(StreamContext const&);
100 
101  void preEvent(StreamContext const&);
102  void postEvent(StreamContext const&);
103 
104  void prePathEvent(StreamContext const&, PathContext const&);
105  void postPathEvent(StreamContext const&, PathContext const&, HLTPathStatus const&);
106 
109 
110  void preModuleBeginJob(ModuleDescription const& md);
111  void postModuleBeginJob(ModuleDescription const& md);
112 
113  void preModuleEndJob(ModuleDescription const& md);
114  void postModuleEndJob(ModuleDescription const& md);
115 
120 
125 
130 
135 
140 
143 
144  private:
146  std::set<std::string> dumpContextForLabels_;
149  };
150  }
151 }
152 #endif
void preCloseFile(std::string const &lfn, bool primary)
Definition: Tracer.cc:237
void postSourceRun()
Definition: Tracer.cc:216
void postModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:781
void postModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:841
void postModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:751
void preModuleGlobalBeginLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:826
void postModuleConstruction(ModuleDescription const &md)
Definition: Tracer.cc:530
void postModuleEndStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:288
void postModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:871
void preallocate(service::SystemBounds const &)
Definition: Tracer.cc:174
void postStreamBeginLumi(StreamContext const &)
Definition: Tracer.cc:443
void preModuleGlobalEndLumi(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:856
void preModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:706
void preGlobalEndLumi(GlobalContext const &)
Definition: Tracer.cc:410
void preModuleEndJob(ModuleDescription const &md)
Definition: Tracer.cc:562
void preModuleConstruction(ModuleDescription const &md)
Definition: Tracer.cc:520
void postStreamEndRun(StreamContext const &)
Definition: Tracer.cc:377
void postGlobalEndLumi(GlobalContext const &)
Definition: Tracer.cc:421
void postModuleBeginJob(ModuleDescription const &md)
Definition: Tracer.cc:551
void postModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:691
void postCloseFile(std::string const &, bool)
Definition: Tracer.cc:244
void preStreamEndLumi(StreamContext const &)
Definition: Tracer.cc:454
void preOpenFile(std::string const &, bool)
Definition: Tracer.cc:221
void preGlobalBeginRun(GlobalContext const &)
Definition: Tracer.cc:300
void preSourceEvent(StreamID)
Definition: Tracer.cc:191
void preGlobalEndRun(GlobalContext const &)
Definition: Tracer.cc:322
void preModuleStreamEndLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:736
Tracer(const ParameterSet &, ActivityRegistry &)
Definition: Tracer.cc:59
void preModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:646
void prePathEvent(StreamContext const &, PathContext const &)
Definition: Tracer.cc:498
void postModuleStreamBeginLumi(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:721
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: Tracer.cc:163
void preModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:796
void postStreamBeginRun(StreamContext const &)
Definition: Tracer.cc:355
void preStreamEndRun(StreamContext const &)
Definition: Tracer.cc:366
void postOpenFile(std::string const &, bool)
Definition: Tracer.cc:229
void postPathEvent(StreamContext const &, PathContext const &, HLTPathStatus const &)
Definition: Tracer.cc:509
void postModuleEventDelayedGet(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:630
void preSourceLumi()
Definition: Tracer.cc:201
void postSourceEvent(StreamID)
Definition: Tracer.cc:196
std::string indention_
Definition: Tracer.h:145
void preSourceConstruction(ModuleDescription const &md)
Definition: Tracer.cc:886
void preModuleEvent(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:584
void preModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:252
void postGlobalBeginRun(GlobalContext const &)
Definition: Tracer.cc:311
void postGlobalEndRun(GlobalContext const &)
Definition: Tracer.cc:333
void postGlobalBeginLumi(GlobalContext const &)
Definition: Tracer.cc:399
void preEvent(StreamContext const &)
Definition: Tracer.cc:476
void preStreamBeginLumi(StreamContext const &)
Definition: Tracer.cc:432
void postModuleEndJob(ModuleDescription const &md)
Definition: Tracer.cc:573
void preModuleEndStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:276
void postModuleEvent(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:599
void preModuleEventDelayedGet(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:615
void postModuleBeginStream(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:264
bool dumpNonModuleContext_
Definition: Tracer.h:147
void preModuleBeginJob(ModuleDescription const &md)
Definition: Tracer.cc:540
void postStreamEndLumi(StreamContext const &)
Definition: Tracer.cc:465
void preModuleStreamEndRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:676
void postEvent(StreamContext const &)
Definition: Tracer.cc:487
void preStreamBeginRun(StreamContext const &)
Definition: Tracer.cc:344
void postModuleStreamBeginRun(StreamContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:661
void postSourceLumi()
Definition: Tracer.cc:206
void preGlobalBeginLumi(GlobalContext const &)
Definition: Tracer.cc:388
void postModuleGlobalEndRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:811
void postSourceConstruction(ModuleDescription const &md)
Definition: Tracer.cc:897
std::set< std::string > dumpContextForLabels_
Definition: Tracer.h:146
void preModuleGlobalBeginRun(GlobalContext const &, ModuleCallingContext const &)
Definition: Tracer.cc:766