CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
edm::GlobalContext Class Reference

#include <GlobalContext.h>

Public Types

enum  Transition {
  Transition::kBeginJob, Transition::kBeginProcessBlock, Transition::kAccessInputProcessBlock, Transition::kBeginRun,
  Transition::kBeginLuminosityBlock, Transition::kEndLuminosityBlock, Transition::kEndRun, Transition::kEndProcessBlock,
  Transition::kEndJob, Transition::kWriteProcessBlock, Transition::kWriteRun, Transition::kWriteLuminosityBlock
}
 

Public Member Functions

 GlobalContext (Transition transition, LuminosityBlockID const &luminosityBlockID, RunIndex const &runIndex, LuminosityBlockIndex const &luminosityBlockIndex, Timestamp const &timestamp, ProcessContext const *processContext)
 
 GlobalContext (Transition transition, ProcessContext const *processContext)
 
bool isAtEndTransition () const
 
LuminosityBlockID const & luminosityBlockID () const
 
LuminosityBlockIndex const & luminosityBlockIndex () const
 
ProcessContext const * processContext () const
 
RunIndex const & runIndex () const
 
Timestamp const & timestamp () const
 
Transition transition () const
 

Private Attributes

LuminosityBlockID luminosityBlockID_
 
LuminosityBlockIndex luminosityBlockIndex_
 
ProcessContext const * processContext_
 
RunIndex runIndex_
 
Timestamp timestamp_
 
Transition transition_
 

Detailed Description

Description: This is intended primarily to be passed to Services as an argument to their callback functions. It contains information about the current state of global processing.

Usage:

Definition at line 34 of file GlobalContext.h.

Member Enumeration Documentation

◆ Transition

Enumerator
kBeginJob 
kBeginProcessBlock 
kAccessInputProcessBlock 
kBeginRun 
kBeginLuminosityBlock 
kEndLuminosityBlock 
kEndRun 
kEndProcessBlock 
kEndJob 
kWriteProcessBlock 
kWriteRun 
kWriteLuminosityBlock 

Definition at line 36 of file GlobalContext.h.

36  {
37  kBeginJob,
38  kBeginProcessBlock,
39  kAccessInputProcessBlock,
40  kBeginRun,
41  kBeginLuminosityBlock,
42  kEndLuminosityBlock,
43  kEndRun,
44  kEndProcessBlock,
45  kEndJob,
46  kWriteProcessBlock,
47  kWriteRun,
48  kWriteLuminosityBlock
49  };

Constructor & Destructor Documentation

◆ GlobalContext() [1/2]

edm::GlobalContext::GlobalContext ( Transition  transition,
LuminosityBlockID const &  luminosityBlockID,
RunIndex const &  runIndex,
LuminosityBlockIndex const &  luminosityBlockIndex,
Timestamp const &  timestamp,
ProcessContext const *  processContext 
)

Definition at line 10 of file GlobalContext.cc.

ProcessContext const * processContext_
Definition: GlobalContext.h:78
Transition transition_
Definition: GlobalContext.h:73
LuminosityBlockID luminosityBlockID_
Definition: GlobalContext.h:74
LuminosityBlockIndex const & luminosityBlockIndex() const
Definition: GlobalContext.h:68
LuminosityBlockIndex luminosityBlockIndex_
Definition: GlobalContext.h:76
ProcessContext const * processContext() const
Definition: GlobalContext.h:70
LuminosityBlockID const & luminosityBlockID() const
Definition: GlobalContext.h:66
Timestamp const & timestamp() const
Definition: GlobalContext.h:69
Timestamp timestamp_
Definition: GlobalContext.h:77
Transition transition() const
Definition: GlobalContext.h:59
RunIndex const & runIndex() const
Definition: GlobalContext.h:67

◆ GlobalContext() [2/2]

edm::GlobalContext::GlobalContext ( Transition  transition,
ProcessContext const *  processContext 
)

Definition at line 23 of file GlobalContext.cc.

28  timestamp_(),
ProcessContext const * processContext_
Definition: GlobalContext.h:78
Transition transition_
Definition: GlobalContext.h:73
static RunIndex invalidRunIndex()
Definition: RunIndex.cc:9
LuminosityBlockID luminosityBlockID_
Definition: GlobalContext.h:74
LuminosityBlockIndex luminosityBlockIndex_
Definition: GlobalContext.h:76
ProcessContext const * processContext() const
Definition: GlobalContext.h:70
static LuminosityBlockIndex invalidLuminosityBlockIndex()
Timestamp timestamp_
Definition: GlobalContext.h:77
Transition transition() const
Definition: GlobalContext.h:59

Member Function Documentation

◆ isAtEndTransition()

bool edm::GlobalContext::isAtEndTransition ( ) const
inline

Definition at line 60 of file GlobalContext.h.

References kEndLuminosityBlock, kEndProcessBlock, kEndRun, kWriteLuminosityBlock, kWriteProcessBlock, kWriteRun, or, and transition().

Referenced by edm::ParentContext::isAtEndTransition().

60  {
64  }
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 transition() const
Definition: GlobalContext.h:59

◆ luminosityBlockID()

LuminosityBlockID const& edm::GlobalContext::luminosityBlockID ( ) const
inline

Definition at line 66 of file GlobalContext.h.

References luminosityBlockID_.

Referenced by dqm::implementation::DQMStore::DQMStore(), dqmservices::DQMMonitoringService::evLumi(), edm::exceptionContext(), edm::operator<<(), edm::service::IgProfService::postBeginLumi(), edm::service::JeProfService::postBeginLumi(), edm::service::IgProfService::postBeginRun(), edm::service::JeProfService::postBeginRun(), edm::service::IgProfService::postEndLumi(), edm::service::JeProfService::postEndLumi(), edm::service::IgProfService::postEndRun(), edm::service::JeProfService::postEndRun(), edmtest::TestServiceTwo::postGlobalBeginLumi(), edmtest::TestServiceOne::postGlobalBeginLumi(), edm::service::Tracer::postGlobalBeginLumi(), edmtest::TestServiceTwo::postGlobalBeginRun(), edmtest::TestServiceOne::postGlobalBeginRun(), edm::service::Tracer::postGlobalBeginRun(), edmtest::TestServiceTwo::postGlobalEndLumi(), edmtest::TestServiceOne::postGlobalEndLumi(), FastTimerService::postGlobalEndLumi(), edm::service::Tracer::postGlobalEndLumi(), evf::FastMonitoringService::postGlobalEndLumi(), edmtest::TestServiceTwo::postGlobalEndRun(), FastTimerService::postGlobalEndRun(), edmtest::TestServiceOne::postGlobalEndRun(), edm::service::Tracer::postGlobalEndRun(), edmtest::TestServiceTwo::postGlobalWriteLumi(), edmtest::TestServiceOne::postGlobalWriteLumi(), edm::service::Tracer::postGlobalWriteLumi(), edmtest::TestServiceTwo::postGlobalWriteRun(), edmtest::TestServiceOne::postGlobalWriteRun(), edm::service::Tracer::postGlobalWriteRun(), edmtest::TestServiceTwo::postModuleGlobalBeginLumi(), edmtest::TestServiceOne::postModuleGlobalBeginLumi(), edmtest::TestServiceTwo::postModuleGlobalBeginRun(), edmtest::TestServiceOne::postModuleGlobalBeginRun(), edmtest::TestServiceTwo::postModuleGlobalEndLumi(), edmtest::TestServiceOne::postModuleGlobalEndLumi(), edmtest::TestServiceTwo::postModuleGlobalEndRun(), edmtest::TestServiceOne::postModuleGlobalEndRun(), edm::service::IgProfService::preEndRun(), edm::service::JeProfService::preEndRun(), edmtest::TestServiceTwo::preGlobalBeginLumi(), edm::service::CheckTransitions::preGlobalBeginLumi(), edmtest::TestServiceOne::preGlobalBeginLumi(), edm::service::Tracer::preGlobalBeginLumi(), edm::service::MessageLogger::preGlobalBeginLumi(), evf::FastMonitoringService::preGlobalBeginLumi(), cond::service::PoolDBOutputService::preGlobalBeginLumi(), edm::service::CheckTransitions::preGlobalBeginRun(), edmtest::TestServiceTwo::preGlobalBeginRun(), edmtest::TestServiceOne::preGlobalBeginRun(), edm::service::Tracer::preGlobalBeginRun(), edm::service::MessageLogger::preGlobalBeginRun(), cond::service::PoolDBOutputService::preGlobalBeginRun(), evf::FastMonitoringService::preGlobalEarlyTermination(), edmtest::TestServiceTwo::preGlobalEndLumi(), edm::service::CheckTransitions::preGlobalEndLumi(), evf::EvFDaqDirector::preGlobalEndLumi(), edmtest::TestServiceOne::preGlobalEndLumi(), edm::service::Tracer::preGlobalEndLumi(), edm::service::MessageLogger::preGlobalEndLumi(), evf::FastMonitoringService::preGlobalEndLumi(), edm::service::CheckTransitions::preGlobalEndRun(), edmtest::TestServiceTwo::preGlobalEndRun(), edmtest::TestServiceOne::preGlobalEndRun(), edm::service::Tracer::preGlobalEndRun(), edm::service::MessageLogger::preGlobalEndRun(), edmtest::TestServiceTwo::preGlobalWriteLumi(), edmtest::TestServiceOne::preGlobalWriteLumi(), edm::service::Tracer::preGlobalWriteLumi(), edmtest::TestServiceTwo::preGlobalWriteRun(), edmtest::TestServiceOne::preGlobalWriteRun(), edm::service::Tracer::preGlobalWriteRun(), edmtest::TestServiceTwo::preModuleGlobalBeginLumi(), edmtest::TestServiceOne::preModuleGlobalBeginLumi(), edmtest::TestServiceTwo::preModuleGlobalBeginRun(), edmtest::TestServiceOne::preModuleGlobalBeginRun(), edmtest::TestServiceTwo::preModuleGlobalEndLumi(), edmtest::TestServiceOne::preModuleGlobalEndLumi(), edmtest::TestServiceTwo::preModuleGlobalEndRun(), edmtest::TestServiceOne::preModuleGlobalEndRun(), edm::service::tracer::setupFile(), edm::service::moduleAlloc::setupFile(), and edm::service::Tracer::Tracer().

66 { return luminosityBlockID_; }
LuminosityBlockID luminosityBlockID_
Definition: GlobalContext.h:74

◆ luminosityBlockIndex()

LuminosityBlockIndex const& edm::GlobalContext::luminosityBlockIndex ( ) const
inline

◆ processContext()

ProcessContext const* edm::GlobalContext::processContext ( ) const
inline

Definition at line 70 of file GlobalContext.h.

References processContext_.

Referenced by edm::operator<<(), edm::service::Timing::postGlobalBeginLumi(), and edm::service::Timing::postGlobalBeginRun().

70 { return processContext_; }
ProcessContext const * processContext_
Definition: GlobalContext.h:78

◆ runIndex()

RunIndex const& edm::GlobalContext::runIndex ( ) const
inline

◆ timestamp()

Timestamp const& edm::GlobalContext::timestamp ( ) const
inline

◆ transition()

Transition edm::GlobalContext::transition ( ) const
inline

Member Data Documentation

◆ luminosityBlockID_

LuminosityBlockID edm::GlobalContext::luminosityBlockID_
private

Definition at line 74 of file GlobalContext.h.

Referenced by luminosityBlockID().

◆ luminosityBlockIndex_

LuminosityBlockIndex edm::GlobalContext::luminosityBlockIndex_
private

Definition at line 76 of file GlobalContext.h.

Referenced by luminosityBlockIndex().

◆ processContext_

ProcessContext const* edm::GlobalContext::processContext_
private

Definition at line 78 of file GlobalContext.h.

Referenced by processContext().

◆ runIndex_

RunIndex edm::GlobalContext::runIndex_
private

Definition at line 75 of file GlobalContext.h.

Referenced by runIndex().

◆ timestamp_

Timestamp edm::GlobalContext::timestamp_
private

Definition at line 77 of file GlobalContext.h.

Referenced by timestamp().

◆ transition_

Transition edm::GlobalContext::transition_
private

Definition at line 73 of file GlobalContext.h.

Referenced by transition().