Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 134 of file EventContext.h.

134  {
135  if ( ctx.valid() ) {
136  os << "s: " << ctx.slot() << " e: " << ctx.evt();
137  if ( ctx.usesSubSlot() ) os << " sub: " << ctx.subSlot();
138  return os;
139  } else {
140  return os << "INVALID";
141  }
142 }
ContextID_t slot() const
Definition: EventContext.h:48
bool usesSubSlot() const
Definition: EventContext.h:50
ContextEvt_t evt() const
Definition: EventContext.h:47
ContextID_t subSlot() const
Definition: EventContext.h:49
bool valid() const
Definition: EventContext.h:51
std::ostream& operator<< ( std::ostream os,
const EventContext c 
)
inline

Definition at line 144 of file EventContext.h.

144  {
145  if ( c ) {
146  return os << *c;
147  } else {
148  return os << "INVALID";
149  }
150 }