The Gaudi Framework  v32r2 (46d42edc)
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 117 of file EventContext.h.

117  {
118  if ( ctx.valid() ) {
119  os << "s: " << ctx.slot() << " e: " << ctx.evt();
120  if ( ctx.usesSubSlot() ) os << " sub: " << ctx.subSlot();
121  return os;
122  } else {
123  return os << "INVALID";
124  }
125 }

◆ operator<<() [2/2]

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

Definition at line 127 of file EventContext.h.

127  {
128  if ( c ) {
129  return os << *c;
130  } else {
131  return os << "INVALID";
132  }
133 }