The Gaudi Framework  v30r4 (9b837755)
EventContext.h File Reference
#include <boost/any.hpp>
#include "GaudiKernel/EventIDBase.h"
#include <cstddef>
#include <iostream>
#include <limits>
Include dependency graph for EventContext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  EventContext
 This class represents an entry point to all the event specific data. More...
 

Functions

std::ostreamoperator<< (std::ostream &os, const EventContext &ctx)
 
std::ostreamoperator<< (std::ostream &os, const EventContext *c)
 

Function Documentation

std::ostream& operator<< ( std::ostream os,
const EventContext ctx 
)
inline

Definition at line 146 of file EventContext.h.

147 {
148  if ( ctx.valid() ) {
149  os << "s: " << ctx.slot() << " e: " << ctx.evt();
150  if ( ctx.usesSubSlot() ) os << " sub: " << ctx.subSlot();
151  return os;
152  } else {
153  return os << "INVALID";
154  }
155 }
ContextID_t slot() const
Definition: EventContext.h:50
bool usesSubSlot() const
Definition: EventContext.h:52
ContextEvt_t evt() const
Definition: EventContext.h:49
ContextID_t subSlot() const
Definition: EventContext.h:51
bool valid() const
Definition: EventContext.h:53
std::ostream& operator<< ( std::ostream os,
const EventContext c 
)
inline

Definition at line 157 of file EventContext.h.

158 {
159  if ( c ) {
160  return os << *c;
161  } else {
162  return os << "INVALID";
163  }
164 }