The Gaudi Framework  v33r0 (d5ea422b)
EventContext.h File Reference
#include "GaudiKernel/EventIDBase.h"
#include <any>
#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

◆ operator<<() [1/2]

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

Definition at line 127 of file EventContext.h.

127  {
128  if ( ctx.valid() ) {
129  os << "s: " << ctx.slot() << " e: " << ctx.evt();
130  if ( ctx.usesSubSlot() ) os << " sub: " << ctx.subSlot();
131  return os;
132  } else {
133  return os << "INVALID";
134  }
135 }

◆ operator<<() [2/2]

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

Definition at line 137 of file EventContext.h.

137  {
138  if ( c ) {
139  return os << *c;
140  } else {
141  return os << "INVALID";
142  }
143 }