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  public:
31  enum class Transition {
32  kBeginJob,
35  kBeginRun,
38  kEndRun,
40  kEndJob,
42  kWriteRun,
44  };
45 
48  RunIndex const& runIndex,
50  Timestamp const& timestamp,
52 
53  Transition transition() const { return transition_; }
54  bool isAtEndTransition() const {
58  }
59 
61  RunIndex const& runIndex() const { return runIndex_; }
63  Timestamp const& timestamp() const { return timestamp_; }
64  ProcessContext const* processContext() const { return processContext_; }
65 
66  private:
73  };
74 
75  void exceptionContext(std::ostream&, GlobalContext const&);
76  std::ostream& operator<<(std::ostream&, GlobalContext const&);
77 } // namespace edm
78 #endif
edm::GlobalContext::luminosityBlockID
LuminosityBlockID const & luminosityBlockID() const
Definition: GlobalContext.h:60
edm::exceptionContext
void exceptionContext(std::ostream &, GlobalContext const &)
Definition: GlobalContext.cc:71
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::GlobalContext::processContext
ProcessContext const * processContext() const
Definition: GlobalContext.h:64
edm::ProcessContext
Definition: ProcessContext.h:27
edm::GlobalContext::Transition::kWriteProcessBlock
edm::GlobalContext::Transition
Transition
Definition: GlobalContext.h:31
edm::GlobalContext::Transition::kAccessInputProcessBlock
LuminosityBlockID.h
edm::GlobalContext::Transition::kBeginJob
edm::GlobalContext::Transition::kEndRun
edm::GlobalContext::transition
Transition transition() const
Definition: GlobalContext.h:53
edm::operator<<
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
Definition: HLTGlobalStatus.h:106
edm::GlobalContext::luminosityBlockIndex_
LuminosityBlockIndex luminosityBlockIndex_
Definition: GlobalContext.h:70
edm::GlobalContext::transition_
Transition transition_
Definition: GlobalContext.h:67
edm::LuminosityBlockIndex
Definition: LuminosityBlockIndex.h:33
edm::GlobalContext::luminosityBlockIndex
LuminosityBlockIndex const & luminosityBlockIndex() const
Definition: GlobalContext.h:62
edm::GlobalContext::GlobalContext
GlobalContext(Transition transition, LuminosityBlockID const &luminosityBlockID, RunIndex const &runIndex, LuminosityBlockIndex const &luminosityBlockIndex, Timestamp const &timestamp, ProcessContext const *processContext)
Definition: GlobalContext.cc:8
edm::GlobalContext::Transition::kEndLuminosityBlock
edm::LuminosityBlockID
Definition: LuminosityBlockID.h:31
RunIndex.h
edm::GlobalContext::Transition::kWriteLuminosityBlock
edm::GlobalContext
Definition: GlobalContext.h:29
edm::GlobalContext::runIndex_
RunIndex runIndex_
Definition: GlobalContext.h:69
edm::Transition
Transition
Definition: Transition.h:12
Timestamp.h
edm::GlobalContext::Transition::kEndProcessBlock
edm::GlobalContext::luminosityBlockID_
LuminosityBlockID luminosityBlockID_
Definition: GlobalContext.h:68
edm::GlobalContext::Transition::kBeginLuminosityBlock
edm::GlobalContext::Transition::kWriteRun
edm::GlobalContext::isAtEndTransition
bool isAtEndTransition() const
Definition: GlobalContext.h:54
edm::GlobalContext::timestamp_
Timestamp timestamp_
Definition: GlobalContext.h:71
edm::GlobalContext::processContext_
ProcessContext const * processContext_
Definition: GlobalContext.h:72
edm::GlobalContext::timestamp
Timestamp const & timestamp() const
Definition: GlobalContext.h:63
edm::GlobalContext::Transition::kEndJob
or
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
edm::RunIndex
Definition: RunIndex.h:32
LuminosityBlockIndex.h
edm::GlobalContext::runIndex
RunIndex const & runIndex() const
Definition: GlobalContext.h:61
edm::GlobalContext::Transition::kBeginProcessBlock
edm::GlobalContext::Transition::kBeginRun
edm::Timestamp
Definition: Timestamp.h:30