CMS 3D CMS Logo

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

#include <StreamContext.h>

Public Types

enum  Transition {
  Transition::kBeginStream, Transition::kBeginRun, Transition::kBeginLuminosityBlock, Transition::kEvent,
  Transition::kEndLuminosityBlock, Transition::kEndRun, Transition::kEndStream, Transition::kInvalid
}
 

Public Member Functions

EventID const & eventID () const
 
bool isAtEndTransition () const
 
LuminosityBlockIndex const & luminosityBlockIndex () const
 
ProcessContext const * processContext () const
 
RunIndex const & runIndex () const
 
void setEventID (EventID const &v)
 
void setLuminosityBlockIndex (LuminosityBlockIndex const &v)
 
void setRunIndex (RunIndex const &v)
 
void setTimestamp (Timestamp const &v)
 
void setTransition (Transition v)
 
 StreamContext (StreamID const &streamID, ProcessContext const *processContext)
 
 StreamContext (StreamID const &streamID, Transition transition, EventID const &eventID, RunIndex const &runIndex, LuminosityBlockIndex const &luminosityBlockIndex, Timestamp const &timestamp, ProcessContext const *processContext)
 
StreamID const & streamID () const
 
Timestamp const & timestamp () const
 
Transition transition () const
 

Private Attributes

EventID eventID_
 
LuminosityBlockIndex luminosityBlockIndex_
 
ProcessContext const * processContext_
 
RunIndex runIndex_
 
StreamID streamID_
 
Timestamp timestamp_
 
Transition transition_
 

Detailed Description

Description: Holds pointer to ProcessContext, StreamID, transition, EventID and timestamp. This is intended primarily to be passed to Services as an argument to their callback functions.

Usage:

Definition at line 32 of file StreamContext.h.

Member Enumeration Documentation

◆ Transition

Enumerator
kBeginStream 
kBeginRun 
kBeginLuminosityBlock 
kEvent 
kEndLuminosityBlock 
kEndRun 
kEndStream 
kInvalid 

Definition at line 34 of file StreamContext.h.

34  {
35  kBeginStream,
36  kBeginRun,
37  kBeginLuminosityBlock,
38  kEvent,
39  kEndLuminosityBlock,
40  kEndRun,
41  kEndStream,
42  kInvalid
43  };

Constructor & Destructor Documentation

◆ StreamContext() [1/2]

edm::StreamContext::StreamContext ( StreamID const &  streamID,
ProcessContext const *  processContext 
)

Definition at line 9 of file StreamContext.cc.

12  eventID_(EventID(0, 0, 0)),
15  timestamp_(),
ProcessContext const * processContext_
Definition: StreamContext.h:79
static RunIndex invalidRunIndex()
Definition: RunIndex.cc:9
StreamID const & streamID() const
Definition: StreamContext.h:55
ProcessContext const * processContext() const
Definition: StreamContext.h:64
static LuminosityBlockIndex invalidLuminosityBlockIndex()
Timestamp timestamp_
Definition: StreamContext.h:78
LuminosityBlockIndex luminosityBlockIndex_
Definition: StreamContext.h:77
Transition transition_
Definition: StreamContext.h:74

◆ StreamContext() [2/2]

edm::StreamContext::StreamContext ( StreamID const &  streamID,
Transition  transition,
EventID const &  eventID,
RunIndex const &  runIndex,
LuminosityBlockIndex const &  luminosityBlockIndex,
Timestamp const &  timestamp,
ProcessContext const *  processContext 
)

Definition at line 18 of file StreamContext.cc.

Timestamp const & timestamp() const
Definition: StreamContext.h:63
ProcessContext const * processContext_
Definition: StreamContext.h:79
StreamID const & streamID() const
Definition: StreamContext.h:55
ProcessContext const * processContext() const
Definition: StreamContext.h:64
Transition transition() const
Definition: StreamContext.h:56
LuminosityBlockIndex const & luminosityBlockIndex() const
Definition: StreamContext.h:62
Timestamp timestamp_
Definition: StreamContext.h:78
LuminosityBlockIndex luminosityBlockIndex_
Definition: StreamContext.h:77
EventID const & eventID() const
Definition: StreamContext.h:60
RunIndex const & runIndex() const
Definition: StreamContext.h:61
Transition transition_
Definition: StreamContext.h:74

Member Function Documentation

◆ eventID()

EventID const& edm::StreamContext::eventID ( ) const
inline

Definition at line 60 of file StreamContext.h.

References eventID_.

Referenced by edm::exceptionContext(), edm::service::Timing::lastPostEvent(), edm::operator<<(), edm::service::IgProfService::postEvent(), edm::service::JeProfService::postEvent(), edm::service::SimpleMemoryCheck::postEvent(), FastTimerService::postEvent(), edm::service::Tracer::postEvent(), edm::service::StallMonitor::postEvent(), edm::service::SimpleMemoryCheck::postModule(), edm::service::IgProfService::postModuleEvent(), edm::service::JeProfService::postModuleEvent(), edm::service::Timing::postModuleEvent(), edmtest::TestServiceOne::postModuleStreamBeginLumi(), edmtest::TestServiceTwo::postModuleStreamBeginLumi(), edmtest::TestServiceOne::postModuleStreamBeginRun(), edmtest::TestServiceTwo::postModuleStreamBeginRun(), edmtest::TestServiceOne::postModuleStreamEndLumi(), edmtest::TestServiceTwo::postModuleStreamEndLumi(), edmtest::TestServiceOne::postModuleStreamEndRun(), edmtest::TestServiceTwo::postModuleStreamEndRun(), edmtest::TestServiceOne::postStreamBeginLumi(), edmtest::TestServiceTwo::postStreamBeginLumi(), edm::service::Tracer::postStreamBeginLumi(), edmtest::TestServiceOne::postStreamBeginRun(), edmtest::TestServiceTwo::postStreamBeginRun(), edm::service::Tracer::postStreamBeginRun(), edmtest::TestServiceOne::postStreamEndLumi(), edmtest::TestServiceTwo::postStreamEndLumi(), edm::service::Tracer::postStreamEndLumi(), edmtest::TestServiceOne::postStreamEndRun(), edmtest::TestServiceTwo::postStreamEndRun(), edm::service::Tracer::postStreamEndRun(), edm::service::IgProfService::preEvent(), edm::service::JeProfService::preEvent(), edm::service::CheckTransitions::preEvent(), edm::service::MessageLogger::preEvent(), edm::service::Tracer::preEvent(), edm::service::StallMonitor::preEvent(), edm::service::IgProfService::preModuleEvent(), edm::service::JeProfService::preModuleEvent(), edmtest::TestServiceOne::preModuleStreamBeginLumi(), edmtest::TestServiceTwo::preModuleStreamBeginLumi(), edmtest::TestServiceOne::preModuleStreamBeginRun(), edmtest::TestServiceTwo::preModuleStreamBeginRun(), edmtest::TestServiceOne::preModuleStreamEndLumi(), edmtest::TestServiceTwo::preModuleStreamEndLumi(), edmtest::TestServiceOne::preModuleStreamEndRun(), edmtest::TestServiceTwo::preModuleStreamEndRun(), edmtest::TestServiceOne::preStreamBeginLumi(), edmtest::TestServiceTwo::preStreamBeginLumi(), edm::service::CheckTransitions::preStreamBeginLumi(), edm::service::MessageLogger::preStreamBeginLumi(), edm::service::Tracer::preStreamBeginLumi(), evf::FastMonitoringService::preStreamBeginLumi(), edmtest::TestServiceOne::preStreamBeginRun(), edmtest::TestServiceTwo::preStreamBeginRun(), edm::service::CheckTransitions::preStreamBeginRun(), edm::service::MessageLogger::preStreamBeginRun(), edm::service::Tracer::preStreamBeginRun(), evf::FastMonitoringService::preStreamEarlyTermination(), edmtest::TestServiceOne::preStreamEndLumi(), edmtest::TestServiceTwo::preStreamEndLumi(), edm::service::CheckTransitions::preStreamEndLumi(), edm::service::MessageLogger::preStreamEndLumi(), edm::service::Tracer::preStreamEndLumi(), evf::FastMonitoringService::preStreamEndLumi(), edmtest::TestServiceOne::preStreamEndRun(), edmtest::TestServiceTwo::preStreamEndRun(), edm::service::CheckTransitions::preStreamEndRun(), edm::service::MessageLogger::preStreamEndRun(), edm::service::Tracer::preStreamEndRun(), edm::service::tracer::setupFile(), edm::service::moduleAlloc::setupFile(), and edm::service::Tracer::Tracer().

60 { return eventID_; } // event#==0 is a lumi, event#==0&lumi#==0 is a run

◆ isAtEndTransition()

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

Definition at line 57 of file StreamContext.h.

References kEndLuminosityBlock, kEndRun, or, and transition().

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

57  {
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
Transition transition() const
Definition: StreamContext.h:56

◆ luminosityBlockIndex()

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

◆ processContext()

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

◆ runIndex()

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

◆ setEventID()

void edm::StreamContext::setEventID ( EventID const &  v)
inline

◆ setLuminosityBlockIndex()

void edm::StreamContext::setLuminosityBlockIndex ( LuminosityBlockIndex const &  v)
inline

◆ setRunIndex()

void edm::StreamContext::setRunIndex ( RunIndex const &  v)
inline

◆ setTimestamp()

void edm::StreamContext::setTimestamp ( Timestamp const &  v)
inline

◆ setTransition()

void edm::StreamContext::setTransition ( Transition  v)
inline

◆ streamID()

StreamID const& edm::StreamContext::streamID ( ) const
inline

Definition at line 55 of file StreamContext.h.

References streamID_.

Referenced by edm::SecondaryEventProvider::beginLuminosityBlock(), edm::SecondaryEventProvider::beginRun(), edm::SecondaryEventProvider::endLuminosityBlock(), edm::SecondaryEventProvider::endRun(), edm::InputSource::EventSourceSentry::EventSourceSentry(), edm::exceptionContext(), evf::FastMonitoringService::getSID(), edm::operator<<(), edm::SystemTimeKeeper::pathTiming(), edm::SystemTimeKeeper::pauseModuleEvent(), edm::service::Timing::postEvent(), FastTimerService::postEvent(), edm::service::MessageLogger::postEvent(), edm::service::Tracer::postEvent(), NVProfilerService::postEvent(), evf::FastMonitoringService::postEvent(), edm::service::Tracer::postEventReadFromSource(), FastTimerService::postEventReadFromSource(), edm::service::SimpleMemoryCheck::postModule(), edm::service::Tracer::postModuleBeginStream(), NVProfilerService::postModuleBeginStream(), edm::service::Tracer::postModuleEndStream(), NVProfilerService::postModuleEndStream(), edm::service::Tracer::postModuleEvent(), FastTimerService::postModuleEvent(), NVProfilerService::postModuleEvent(), edm::service::Tracer::postModuleEventAcquire(), FastTimerService::postModuleEventAcquire(), NVProfilerService::postModuleEventAcquire(), edm::service::Tracer::postModuleEventDelayedGet(), edm::service::Tracer::postModuleEventPrefetching(), NVProfilerService::postModuleEventPrefetching(), edmtest::TestServiceOne::postModuleStreamBeginLumi(), edmtest::TestServiceTwo::postModuleStreamBeginLumi(), edm::service::Tracer::postModuleStreamBeginLumi(), NVProfilerService::postModuleStreamBeginLumi(), edmtest::TestServiceOne::postModuleStreamBeginRun(), edmtest::TestServiceTwo::postModuleStreamBeginRun(), edm::service::Tracer::postModuleStreamBeginRun(), NVProfilerService::postModuleStreamBeginRun(), edm::service::RandomNumberGeneratorService::postModuleStreamCheck(), edmtest::TestServiceOne::postModuleStreamEndLumi(), edmtest::TestServiceTwo::postModuleStreamEndLumi(), edm::service::Tracer::postModuleStreamEndLumi(), NVProfilerService::postModuleStreamEndLumi(), edmtest::TestServiceOne::postModuleStreamEndRun(), edmtest::TestServiceTwo::postModuleStreamEndRun(), edm::service::Tracer::postModuleStreamEndRun(), NVProfilerService::postModuleStreamEndRun(), edm::service::Tracer::postModuleStreamPrefetching(), edm::service::Tracer::postModuleTransform(), edm::service::Tracer::postModuleTransformAcquiring(), edm::service::Tracer::postModuleTransformPrefetching(), FastTimerService::postPathEvent(), edm::service::Tracer::postPathEvent(), NVProfilerService::postPathEvent(), edmtest::TestServiceOne::postStreamBeginLumi(), edmtest::TestServiceTwo::postStreamBeginLumi(), edm::service::Tracer::postStreamBeginLumi(), NVProfilerService::postStreamBeginLumi(), evf::FastMonitoringService::postStreamBeginLumi(), edmtest::TestServiceOne::postStreamBeginRun(), edmtest::TestServiceTwo::postStreamBeginRun(), edm::service::Tracer::postStreamBeginRun(), NVProfilerService::postStreamBeginRun(), edmtest::TestServiceOne::postStreamEndLumi(), edmtest::TestServiceTwo::postStreamEndLumi(), edm::service::Tracer::postStreamEndLumi(), NVProfilerService::postStreamEndLumi(), evf::FastMonitoringService::postStreamEndLumi(), edmtest::TestServiceOne::postStreamEndRun(), edmtest::TestServiceTwo::postStreamEndRun(), edm::service::Tracer::postStreamEndRun(), NVProfilerService::postStreamEndRun(), edm::service::Timing::preEvent(), edm::service::CheckTransitions::preEvent(), edm::service::MessageLogger::preEvent(), edm::service::Tracer::preEvent(), NVProfilerService::preEvent(), evf::FastMonitoringService::preEvent(), cond::service::PoolDBOutputService::preEventProcessing(), edm::service::Tracer::preEventReadFromSource(), FastTimerService::preEventReadFromSource(), edm::service::SimpleMemoryCheck::preModule(), edm::service::Tracer::preModuleBeginStream(), NVProfilerService::preModuleBeginStream(), edm::service::Tracer::preModuleEndStream(), NVProfilerService::preModuleEndStream(), edm::service::Tracer::preModuleEvent(), FastTimerService::preModuleEvent(), NVProfilerService::preModuleEvent(), cond::service::PoolDBOutputService::preModuleEvent(), edm::service::Tracer::preModuleEventAcquire(), FastTimerService::preModuleEventAcquire(), NVProfilerService::preModuleEventAcquire(), edm::service::Tracer::preModuleEventDelayedGet(), edm::service::Tracer::preModuleEventPrefetching(), NVProfilerService::preModuleEventPrefetching(), edmtest::TestServiceOne::preModuleStreamBeginLumi(), edmtest::TestServiceTwo::preModuleStreamBeginLumi(), edm::service::Tracer::preModuleStreamBeginLumi(), NVProfilerService::preModuleStreamBeginLumi(), edmtest::TestServiceOne::preModuleStreamBeginRun(), edmtest::TestServiceTwo::preModuleStreamBeginRun(), edm::service::Tracer::preModuleStreamBeginRun(), NVProfilerService::preModuleStreamBeginRun(), edm::service::RandomNumberGeneratorService::preModuleStreamCheck(), edmtest::TestServiceOne::preModuleStreamEndLumi(), edmtest::TestServiceTwo::preModuleStreamEndLumi(), edm::service::Tracer::preModuleStreamEndLumi(), NVProfilerService::preModuleStreamEndLumi(), edmtest::TestServiceOne::preModuleStreamEndRun(), edmtest::TestServiceTwo::preModuleStreamEndRun(), edm::service::Tracer::preModuleStreamEndRun(), NVProfilerService::preModuleStreamEndRun(), edm::service::Tracer::preModuleStreamPrefetching(), edm::service::Tracer::preModuleTransform(), edm::service::Tracer::preModuleTransformAcquiring(), edm::service::Tracer::preModuleTransformPrefetching(), FastTimerService::prePathEvent(), edm::service::Tracer::prePathEvent(), NVProfilerService::prePathEvent(), edmtest::TestServiceOne::preStreamBeginLumi(), edmtest::TestServiceTwo::preStreamBeginLumi(), edm::service::CheckTransitions::preStreamBeginLumi(), edm::service::MessageLogger::preStreamBeginLumi(), edm::service::Tracer::preStreamBeginLumi(), NVProfilerService::preStreamBeginLumi(), evf::FastMonitoringService::preStreamBeginLumi(), edmtest::TestServiceOne::preStreamBeginRun(), edmtest::TestServiceTwo::preStreamBeginRun(), edm::service::CheckTransitions::preStreamBeginRun(), edm::service::MessageLogger::preStreamBeginRun(), edm::service::Tracer::preStreamBeginRun(), NVProfilerService::preStreamBeginRun(), evf::FastMonitoringService::preStreamEarlyTermination(), edmtest::TestServiceOne::preStreamEndLumi(), edmtest::TestServiceTwo::preStreamEndLumi(), edm::service::CheckTransitions::preStreamEndLumi(), edm::service::MessageLogger::preStreamEndLumi(), edm::service::Tracer::preStreamEndLumi(), NVProfilerService::preStreamEndLumi(), evf::FastMonitoringService::preStreamEndLumi(), edmtest::TestServiceOne::preStreamEndRun(), edmtest::TestServiceTwo::preStreamEndRun(), edm::service::CheckTransitions::preStreamEndRun(), edm::service::MessageLogger::preStreamEndRun(), edm::service::Tracer::preStreamEndRun(), NVProfilerService::preStreamEndRun(), edm::SystemTimeKeeper::restartModuleEvent(), edm::SecondaryEventProvider::setupPileUpEvent(), edm::SystemTimeKeeper::startModuleEvent(), edm::SystemTimeKeeper::stopEvent(), edm::SystemTimeKeeper::stopModuleEvent(), and edm::service::Tracer::Tracer().

55 { return streamID_; }

◆ timestamp()

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

◆ transition()

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

Member Data Documentation

◆ eventID_

EventID edm::StreamContext::eventID_
private

Definition at line 75 of file StreamContext.h.

Referenced by eventID(), and setEventID().

◆ luminosityBlockIndex_

LuminosityBlockIndex edm::StreamContext::luminosityBlockIndex_
private

Definition at line 77 of file StreamContext.h.

Referenced by luminosityBlockIndex(), and setLuminosityBlockIndex().

◆ processContext_

ProcessContext const* edm::StreamContext::processContext_
private

Definition at line 79 of file StreamContext.h.

Referenced by processContext().

◆ runIndex_

RunIndex edm::StreamContext::runIndex_
private

Definition at line 76 of file StreamContext.h.

Referenced by runIndex(), and setRunIndex().

◆ streamID_

StreamID edm::StreamContext::streamID_
private

Definition at line 73 of file StreamContext.h.

Referenced by streamID().

◆ timestamp_

Timestamp edm::StreamContext::timestamp_
private

Definition at line 78 of file StreamContext.h.

Referenced by setTimestamp(), and timestamp().

◆ transition_

Transition edm::StreamContext::transition_
private

Definition at line 74 of file StreamContext.h.

Referenced by setTransition(), and transition().