File indexing completed on 2024-04-06 12:13:03
0001 #include "FWCore/ServiceRegistry/interface/InternalContext.h"
0002 #include "FWCore/ServiceRegistry/interface/ModuleCallingContext.h"
0003
0004 #include <ostream>
0005
0006 namespace edm {
0007
0008 InternalContext::InternalContext(EventID const& eventID, ModuleCallingContext const* moduleCallingContext)
0009 : eventID_(eventID), moduleCallingContext_(moduleCallingContext) {}
0010
0011 std::ostream& operator<<(std::ostream& os, InternalContext const& ic) {
0012 os << "InternalContext " << ic.eventID() << "\n";
0013 if (ic.moduleCallingContext()) {
0014 os << " " << *ic.moduleCallingContext();
0015 }
0016 return os;
0017 }
0018 }