CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
edm::pset Namespace Reference

Classes

class  Registry
 
struct  TypeTrans
 

Functions

ParameterSetID getProcessParameterSetID ()
 
void setProcessParameterSetID (ParameterSetID const &id)
 Associated free functions. More...
 

Variables

static std::mutex s_mutex
 
static ParameterSetID s_ProcessParameterSetID
 

Function Documentation

ParameterSetID edm::pset::getProcessParameterSetID ( )

Return the ParameterSetID of the top-level ParameterSet. Note the the returned ParameterSetID may be invalid; this will happen if the Registry has not yet been filled.

Definition at line 66 of file Registry.cc.

References Exception, edm::Hash< I >::isValid(), edm::errors::LogicError, s_mutex, and s_ProcessParameterSetID.

Referenced by edm::StreamerOutputModuleBase::serializeRegistry().

66  {
67  std::lock_guard<std::mutex> guard(s_mutex);
70  << "Illegal attempt to access the process top level parameter set ID\n"
71  << "before that parameter set has been frozen and registered.\n"
72  << "The parameter set can be changed during module validation,\n"
73  << "which occurs concurrently with module construction.\n"
74  << "It is illegal to access the parameter set before it is frozen.\n";
75  }
77  }
static std::recursive_mutex s_mutex
Definition: DQMService.cc:17
static ParameterSetID s_ProcessParameterSetID
Definition: Registry.cc:13
bool isValid() const
Definition: Hash.h:150
void edm::pset::setProcessParameterSetID ( ParameterSetID const &  id)

Associated free functions.

Save the ParameterSetID of the top-level ParameterSet.

Definition at line 79 of file Registry.cc.

References s_ProcessParameterSetID.

Referenced by edm::endpathsAreActive_().

79  {
81  }
static ParameterSetID s_ProcessParameterSetID
Definition: Registry.cc:13

Variable Documentation

std::mutex edm::pset::s_mutex
static

Definition at line 12 of file Registry.cc.

Referenced by edm::getProcessParameterSet(), and getProcessParameterSetID().

ParameterSetID edm::pset::s_ProcessParameterSetID
static