test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
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 31 of file StreamContext.h.

Member Enumeration Documentation

Enumerator
kBeginStream 
kBeginRun 
kBeginLuminosityBlock 
kEvent 
kEndLuminosityBlock 
kEndRun 
kEndStream 
kInvalid 

Definition at line 35 of file StreamContext.h.

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

Constructor & Destructor Documentation

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

Definition at line 8 of file StreamContext.cc.

9  :
12  eventID_(EventID(0,0,0)),
15  timestamp_(),
17  }
ProcessContext const * processContext_
Definition: StreamContext.h:78
static RunIndex invalidRunIndex()
Definition: RunIndex.cc:9
ProcessContext const * processContext() const
Definition: StreamContext.h:63
static LuminosityBlockIndex invalidLuminosityBlockIndex()
StreamID const & streamID() const
Definition: StreamContext.h:57
Timestamp timestamp_
Definition: StreamContext.h:77
LuminosityBlockIndex luminosityBlockIndex_
Definition: StreamContext.h:76
Transition transition_
Definition: StreamContext.h:73
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 19 of file StreamContext.cc.

25  :
33  }
LuminosityBlockIndex const & luminosityBlockIndex() const
Definition: StreamContext.h:61
ProcessContext const * processContext_
Definition: StreamContext.h:78
RunIndex const & runIndex() const
Definition: StreamContext.h:60
Transition transition() const
Definition: StreamContext.h:58
ProcessContext const * processContext() const
Definition: StreamContext.h:63
StreamID const & streamID() const
Definition: StreamContext.h:57
Timestamp timestamp_
Definition: StreamContext.h:77
LuminosityBlockIndex luminosityBlockIndex_
Definition: StreamContext.h:76
EventID const & eventID() const
Definition: StreamContext.h:59
Transition transition_
Definition: StreamContext.h:73
Timestamp const & timestamp() const
Definition: StreamContext.h:62

Member Function Documentation

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

Definition at line 59 of file StreamContext.h.

References eventID_.

Referenced by edm::operator<<(), edm::service::IgProfService::postEvent(), edm::service::Timing::postEvent(), edm::service::SimpleMemoryCheck::postEvent(), edm::service::Tracer::postEvent(), edm::service::Timing::postModule(), edm::service::SimpleMemoryCheck::postModule(), edm::service::Tracer::postStreamBeginLumi(), edm::service::Tracer::postStreamBeginRun(), ThroughputService::postStreamEndLumi(), edm::service::Tracer::postStreamEndLumi(), FastTimerService::postStreamEndLumi(), ThroughputService::postStreamEndRun(), edm::service::Tracer::postStreamEndRun(), FastTimerService::postStreamEndRun(), edm::service::IgProfService::preEvent(), edm::service::MessageLogger::preEvent(), edm::service::Tracer::preEvent(), FastTimerService::preEvent(), evf::FastMonitoringService::prePathEvent(), edm::service::Tracer::preStreamBeginLumi(), edm::service::MessageLogger::preStreamBeginLumi(), evf::FastMonitoringService::preStreamBeginLumi(), ThroughputService::preStreamBeginRun(), edm::service::Tracer::preStreamBeginRun(), edm::service::MessageLogger::preStreamBeginRun(), FastTimerService::preStreamBeginRun(), evf::FastMonitoringService::preStreamEarlyTermination(), edm::service::MessageLogger::preStreamEndLumi(), edm::service::Tracer::preStreamEndLumi(), evf::FastMonitoringService::preStreamEndLumi(), edm::service::Tracer::preStreamEndRun(), edm::service::MessageLogger::preStreamEndRun(), and edm::service::Tracer::Tracer().

59 { return eventID_; } // event#==0 is a lumi, event#==0&lumi#==0 is a run
LuminosityBlockIndex const& edm::StreamContext::luminosityBlockIndex ( ) const
inline

Definition at line 61 of file StreamContext.h.

References luminosityBlockIndex_.

Referenced by edm::operator<<().

61 { return luminosityBlockIndex_; }
LuminosityBlockIndex luminosityBlockIndex_
Definition: StreamContext.h:76
ProcessContext const* edm::StreamContext::processContext ( ) const
inline
RunIndex const& edm::StreamContext::runIndex ( ) const
inline

Definition at line 60 of file StreamContext.h.

References runIndex_.

Referenced by edm::operator<<(), and FastTimerService::postEvent().

60 { return runIndex_; }
void edm::StreamContext::setEventID ( EventID const &  v)
inline
void edm::StreamContext::setLuminosityBlockIndex ( LuminosityBlockIndex const &  v)
inline
void edm::StreamContext::setRunIndex ( RunIndex const &  v)
inline
void edm::StreamContext::setTimestamp ( Timestamp const &  v)
inline
void edm::StreamContext::setTransition ( Transition  v)
inline
StreamID const& edm::StreamContext::streamID ( ) const
inline

Definition at line 57 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::operator<<(), edm::SystemTimeKeeper::pathTiming(), edm::SystemTimeKeeper::pauseModuleEvent(), ThroughputService::postEvent(), edm::service::Timing::postEvent(), edm::service::MessageLogger::postEvent(), edm::service::Tracer::postEvent(), FastTimerService::postEvent(), evf::FastMonitoringService::postEvent(), edm::service::SimpleMemoryCheck::postModule(), edm::service::Tracer::postModuleBeginStream(), edm::service::Tracer::postModuleEndStream(), edm::service::Tracer::postModuleEvent(), evf::FastMonitoringService::postModuleEvent(), FastTimerService::postModuleEvent(), edm::service::Tracer::postModuleEventDelayedGet(), FastTimerService::postModuleEventDelayedGet(), edm::service::Tracer::postModuleStreamBeginLumi(), edm::service::Tracer::postModuleStreamBeginRun(), edm::service::RandomNumberGeneratorService::postModuleStreamCheck(), edm::service::Tracer::postModuleStreamEndLumi(), edm::service::Tracer::postModuleStreamEndRun(), edm::service::Tracer::postPathEvent(), FastTimerService::postPathEvent(), edm::service::Tracer::postStreamBeginLumi(), FastTimerService::postStreamBeginLumi(), evf::FastMonitoringService::postStreamBeginLumi(), edm::service::Tracer::postStreamBeginRun(), FastTimerService::postStreamBeginRun(), ThroughputService::postStreamEndLumi(), edm::service::Tracer::postStreamEndLumi(), FastTimerService::postStreamEndLumi(), evf::FastMonitoringService::postStreamEndLumi(), ThroughputService::postStreamEndRun(), edm::service::Tracer::postStreamEndRun(), FastTimerService::postStreamEndRun(), edm::service::Timing::preEvent(), edm::service::MessageLogger::preEvent(), edm::service::Tracer::preEvent(), FastTimerService::preEvent(), cond::service::PoolDBOutputService::preEventProcessing(), edm::service::SimpleMemoryCheck::preModule(), edm::service::Tracer::preModuleBeginStream(), edm::service::Tracer::preModuleEndStream(), edm::service::MessageLogger::preModuleEvent(), edm::service::Tracer::preModuleEvent(), evf::FastMonitoringService::preModuleEvent(), FastTimerService::preModuleEvent(), cond::service::PoolDBOutputService::preModuleEvent(), edm::service::Tracer::preModuleEventDelayedGet(), FastTimerService::preModuleEventDelayedGet(), edm::service::MessageLogger::preModuleStreamBeginLumi(), edm::service::Tracer::preModuleStreamBeginLumi(), edm::service::MessageLogger::preModuleStreamBeginRun(), edm::service::Tracer::preModuleStreamBeginRun(), edm::service::RandomNumberGeneratorService::preModuleStreamCheck(), edm::service::MessageLogger::preModuleStreamEndLumi(), edm::service::Tracer::preModuleStreamEndLumi(), edm::service::MessageLogger::preModuleStreamEndRun(), edm::service::Tracer::preModuleStreamEndRun(), edm::service::Tracer::prePathEvent(), edm::service::MessageLogger::prePathEvent(), evf::FastMonitoringService::prePathEvent(), FastTimerService::prePathEvent(), edm::service::MessageLogger::preStreamBeginLumi(), edm::service::Tracer::preStreamBeginLumi(), evf::FastMonitoringService::preStreamBeginLumi(), ThroughputService::preStreamBeginRun(), edm::service::Tracer::preStreamBeginRun(), edm::service::MessageLogger::preStreamBeginRun(), FastTimerService::preStreamBeginRun(), evf::FastMonitoringService::preStreamEarlyTermination(), edm::service::MessageLogger::preStreamEndLumi(), edm::service::Tracer::preStreamEndLumi(), evf::FastMonitoringService::preStreamEndLumi(), edm::service::Tracer::preStreamEndRun(), edm::service::MessageLogger::preStreamEndRun(), edm::SystemTimeKeeper::restartModuleEvent(), edm::SystemTimeKeeper::startModuleEvent(), edm::SystemTimeKeeper::stopEvent(), edm::SystemTimeKeeper::stopModuleEvent(), and edm::service::Tracer::Tracer().

57 { return streamID_; }
Timestamp const& edm::StreamContext::timestamp ( ) const
inline
Transition edm::StreamContext::transition ( ) const
inline

Definition at line 58 of file StreamContext.h.

References transition_.

Referenced by edm::operator<<().

58 { return transition_; }
Transition transition_
Definition: StreamContext.h:73

Member Data Documentation

EventID edm::StreamContext::eventID_
private

Definition at line 74 of file StreamContext.h.

Referenced by eventID(), and setEventID().

LuminosityBlockIndex edm::StreamContext::luminosityBlockIndex_
private

Definition at line 76 of file StreamContext.h.

Referenced by luminosityBlockIndex(), and setLuminosityBlockIndex().

ProcessContext const* edm::StreamContext::processContext_
private

Definition at line 78 of file StreamContext.h.

Referenced by processContext().

RunIndex edm::StreamContext::runIndex_
private

Definition at line 75 of file StreamContext.h.

Referenced by runIndex(), and setRunIndex().

StreamID edm::StreamContext::streamID_
private

Definition at line 72 of file StreamContext.h.

Referenced by streamID().

Timestamp edm::StreamContext::timestamp_
private

Definition at line 77 of file StreamContext.h.

Referenced by setTimestamp(), and timestamp().

Transition edm::StreamContext::transition_
private

Definition at line 73 of file StreamContext.h.

Referenced by setTransition(), and transition().