CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProcessContext.cc
Go to the documentation of this file.
3 
4 #include <ostream>
5 
6 namespace edm {
7 
9  processConfiguration_(nullptr),
10  parentProcessContext_(nullptr) {
11  }
12 
13  ProcessContext const&
15  if (!isSubProcess()) {
17  << "ProcessContext::parentProcessContext This function should only be called for SubProcesses.\n"
18  << "If necessary, you can check this by calling isSubProcess first.\n";
19  }
20  return *parentProcessContext_;
21  }
22 
23  void
26  }
27 
28  void
31  }
32 
33  std::ostream& operator<<(std::ostream& os, ProcessContext const& pc) {
34  os << "ProcessContext: ";
35  if(pc.processConfiguration()) {
36  os << pc.processConfiguration()->processName() << " " << pc.processConfiguration()->parameterSetID()<< "\n";
37  } else {
38  os << "invalid\n";
39  return os;
40  }
41  if(pc.isSubProcess()) {
42  os << " parent " << pc.parentProcessContext();
43  }
44  return os;
45  }
46 }
processConfiguration
Definition: Schedule.cc:369
void setParentProcessContext(ProcessContext const *parentProcessContext)
#define nullptr
ProcessContext const & parentProcessContext() const
ProcessConfiguration const * processConfiguration() const
std::string const & processName() const
ParameterSetID const & parameterSetID() const
ProcessConfiguration const * processConfiguration_
void setProcessConfiguration(ProcessConfiguration const *processConfiguration)
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
bool isSubProcess() const
ProcessContext const * parentProcessContext_