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_; }
56 
58  RunIndex const& runIndex() const { return runIndex_; }
60  Timestamp const& timestamp() const { return timestamp_; }
61  ProcessContext const* processContext() const { return processContext_; }
62 
63  private:
70  };
71 
72  void exceptionContext(std::ostream&, GlobalContext const&);
73  std::ostream& operator<<(std::ostream&, GlobalContext const&);
74 }
75 #endif
bool isAtEndTransition() const
Definition: GlobalContext.h:52
LuminosityBlockID const & luminosityBlockID() const
Definition: GlobalContext.h:57
ProcessContext const * processContext_
Definition: GlobalContext.h:69
void exceptionContext(std::ostream &, GlobalContext const &)
Timestamp const & timestamp() const
Definition: GlobalContext.h:60
Transition transition_
Definition: GlobalContext.h:64
RunIndex const & runIndex() const
Definition: GlobalContext.h:58
LuminosityBlockID luminosityBlockID_
Definition: GlobalContext.h:65
LuminosityBlockIndex const & luminosityBlockIndex() const
Definition: GlobalContext.h:59
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
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:67
ProcessContext const * processContext() const
Definition: GlobalContext.h:61
Timestamp timestamp_
Definition: GlobalContext.h:68
Transition transition() const
Definition: GlobalContext.h:51
HLT enums.
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.