17 if (ops.existsAs<
unsigned int>(
"numberOfThreads",
false)) {
18 threadsInfo.
nThreads_ = ops.getUntrackedParameter<
unsigned int>(
"numberOfThreads");
20 if (ops.existsAs<
unsigned int>(
"sizeOfStackForThreadsInKB",
false)) {
21 threadsInfo.
stackSize_ = ops.getUntrackedParameter<
unsigned int>(
"sizeOfStackForThreadsInKB");
void setThreadOptions(ThreadsInfo const &threadsInfo, edm::ParameterSet &pset)
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
ParameterSet getUntrackedParameterSet(std::string const &name, ParameterSet const &defaultValue) const
void addUntrackedParameter(std::string const &name, T const &value)
void insertParameterSet(bool okay_to_replace, std::string const &name, ParameterSetEntry const &entry)
ThreadsInfo threadOptions(edm::ParameterSet const &pset)