The Gaudi Framework  v28r3 (cc1cf868)
EventContext.h File Reference
#include <iostream>
#include <unistd.h>
#include <limits>
#include "GaudiKernel/EventIDBase.h"
#include <boost/any.hpp>
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 102 of file EventContext.h.

102  {
103  if (ctx.valid()) {
104  return os << "s: " << ctx.slot() << " e: " << ctx.evt();
105  } else {
106  return os << "INVALID";
107  }
108 }
ContextID_t slot() const
Definition: EventContext.h:40
ContextEvt_t evt() const
Definition: EventContext.h:39
bool valid() const
Definition: EventContext.h:41
std::ostream& operator<< ( std::ostream os,
const EventContext c 
)
inline

Definition at line 110 of file EventContext.h.

110  {
111  if (c != 0) {
112  return os << *c;
113  } else {
114  return os << "INVALID";
115  }
116 }