The Gaudi Framework  v32r0 (3325bb39)
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

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 }
ContextID_t slot() const
Definition: EventContext.h:41
bool usesSubSlot() const
Definition: EventContext.h:43
ContextEvt_t evt() const
Definition: EventContext.h:40
ContextID_t subSlot() const
Definition: EventContext.h:42
bool valid() const
Definition: EventContext.h:44
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 }