CMS 3D CMS Logo

GlobalContext.h
Go to the documentation of this file.
1 #ifndef FWCore_ServiceRegistry_GlobalContext_h
2 #define FWCore_ServiceRegistry_GlobalContext_h
3 
14 //
15 // Original Author: W. David Dagenhart
16 // Created: 7/10/2013
17 
22 
23 #include <iosfwd>
24 
25 namespace edm {
26 
27  class ProcessContext;
28 
29  class GlobalContext {
30 
31  public:
32 
33  enum class Transition {
34  kBeginJob,
35  kBeginRun,
38  kEndRun,
39  kEndJob,
40  kWriteRun,
42  };
43 
46  RunIndex const& runIndex,
48  Timestamp const & timestamp,
50 
51  Transition transition() const { return transition_; }
53  RunIndex const& runIndex() const { return runIndex_; }
55  Timestamp const& timestamp() const { return timestamp_; }
56  ProcessContext const* processContext() const { return processContext_; }
57 
58  private:
65  };
66 
67  void exceptionContext(std::ostream&, GlobalContext const&);
68  std::ostream& operator<<(std::ostream&, GlobalContext const&);
69 }
70 #endif
LuminosityBlockID const & luminosityBlockID() const
Definition: GlobalContext.h:52
ProcessContext const * processContext_
Definition: GlobalContext.h:64
void exceptionContext(std::ostream &, GlobalContext const &)
Timestamp const & timestamp() const
Definition: GlobalContext.h:55
Transition transition_
Definition: GlobalContext.h:59
RunIndex const & runIndex() const
Definition: GlobalContext.h:53
LuminosityBlockID luminosityBlockID_
Definition: GlobalContext.h:60
LuminosityBlockIndex const & luminosityBlockIndex() const
Definition: GlobalContext.h:54
GlobalContext(Transition transition, LuminosityBlockID const &luminosityBlockID, RunIndex const &runIndex, LuminosityBlockIndex const &luminosityBlockIndex, Timestamp const &timestamp, ProcessContext const *processContext)
Definition: GlobalContext.cc:8
LuminosityBlockIndex luminosityBlockIndex_
Definition: GlobalContext.h:62
ProcessContext const * processContext() const
Definition: GlobalContext.h:56
Timestamp timestamp_
Definition: GlobalContext.h:63
Transition transition() const
Definition: GlobalContext.h:51
HLT enums.
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.