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 #include <string_view>
25 
26 namespace edm {
27 
28  class ProcessContext;
29 
30  class GlobalContext {
31  public:
32  enum class Transition {
33  kBeginJob,
36  kBeginRun,
39  kEndRun,
41  kEndJob,
43  kWriteRun,
45  };
46 
49  RunIndex const& runIndex,
51  Timestamp const& timestamp,
54 
55  Transition transition() const { return transition_; }
56  bool isAtEndTransition() const {
60  }
61 
63  RunIndex const& runIndex() const { return runIndex_; }
65  Timestamp const& timestamp() const { return timestamp_; }
66  ProcessContext const* processContext() const { return processContext_; }
67 
68  private:
75  };
76 
77  void exceptionContext(std::ostream&, GlobalContext const&);
78  std::ostream& operator<<(std::ostream&, GlobalContext const&);
79 
80  std::string_view transitionName(GlobalContext::Transition);
81 } // namespace edm
82 #endif
std::string_view transitionName(GlobalContext::Transition)
void exceptionContext(cms::Exception &, ESModuleCallingContext const &)
ProcessContext const * processContext_
Definition: GlobalContext.h:74
Transition transition_
Definition: GlobalContext.h:69
LuminosityBlockID luminosityBlockID_
Definition: GlobalContext.h:70
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
Transition
Definition: Transition.h:12
GlobalContext(Transition transition, LuminosityBlockID const &luminosityBlockID, RunIndex const &runIndex, LuminosityBlockIndex const &luminosityBlockIndex, Timestamp const &timestamp, ProcessContext const *processContext)
Definition: GlobalContext.cc:8
LuminosityBlockIndex const & luminosityBlockIndex() const
Definition: GlobalContext.h:64
LuminosityBlockIndex luminosityBlockIndex_
Definition: GlobalContext.h:72
ProcessContext const * processContext() const
Definition: GlobalContext.h:66
LuminosityBlockID const & luminosityBlockID() const
Definition: GlobalContext.h:62
Timestamp const & timestamp() const
Definition: GlobalContext.h:65
bool isAtEndTransition() const
Definition: GlobalContext.h:56
Timestamp timestamp_
Definition: GlobalContext.h:73
Transition transition() const
Definition: GlobalContext.h:55
RunIndex const & runIndex() const
Definition: GlobalContext.h:63
HLT enums.
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.