CMS 3D CMS Logo

ProcessContext.cc
Go to the documentation of this file.
3 
4 #include <ostream>
5 
6 namespace edm {
7 
8  ProcessContext::ProcessContext() : processConfiguration_(nullptr), parentProcessContext_(nullptr) {}
9 
11  if (!isSubProcess()) {
13  << "ProcessContext::parentProcessContext This function should only be called for SubProcesses.\n"
14  << "If necessary, you can check this by calling isSubProcess first.\n";
15  }
16  return *parentProcessContext_;
17  }
18 
21  }
22 
23  void ProcessContext::setParentProcessContext(ProcessContext const* parentProcessContext) {
25  }
26 
27  std::ostream& operator<<(std::ostream& os, ProcessContext const& pc) {
28  os << "ProcessContext: ";
29  if (pc.processConfiguration()) {
30  os << pc.processConfiguration()->processName() << " " << pc.processConfiguration()->parameterSetID() << "\n";
31  } else {
32  os << "invalid\n";
33  return os;
34  }
35  if (pc.isSubProcess()) {
36  os << " parent " << pc.parentProcessContext();
37  }
38  return os;
39  }
40 } // namespace edm
ParameterSetID const & parameterSetID() const
void setParentProcessContext(ProcessContext const *parentProcessContext)
ProcessContext const & parentProcessContext() const
ProcessConfiguration const * processConfiguration() const
ProcessConfiguration const * processConfiguration_
void setProcessConfiguration(ProcessConfiguration const *processConfiguration)
bool isSubProcess() const
std::string const & processName() const
HLT enums.
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger table.
ProcessContext const * parentProcessContext_