CMS 3D CMS Logo

PathContext.cc
Go to the documentation of this file.
3 
4 #include <ostream>
5 
6 namespace edm {
7 
9  StreamContext const* streamContext,
10  unsigned int pathID,
11  PathType pathType)
12  : pathName_(pathName), streamContext_(streamContext), pathID_(pathID), pathType_(pathType) {}
13 
14  std::ostream& operator<<(std::ostream& os, PathContext const& pc) {
15  os << "PathContext: pathName = " << pc.pathName() << " pathID = " << pc.pathID();
17  os << " (EndPath)\n";
18  } else {
19  os << "\n";
20  }
21  if (pc.streamContext()) {
22  os << " " << *pc.streamContext();
23  }
24  return os;
25  }
26 } // namespace edm
PathType pathType() const
Definition: PathContext.h:33
PathContext(std::string const &pathName, StreamContext const *streamContext, unsigned int pathID, PathType pathType)
Definition: PathContext.cc:8
StreamContext const * streamContext() const
Definition: PathContext.h:31
unsigned int pathID() const
Definition: PathContext.h:32
HLT enums.
std::string const & pathName() const
Definition: PathContext.h:30
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger table.