FWCore
ParameterSetReader
src
ParameterSetReader.cc
Go to the documentation of this file.
1
#include "
FWCore/ParameterSetReader/interface/ParameterSetReader.h
"
2
#include "
FWCore/PythonParameterSet/interface/PyBind11ProcessDesc.h
"
3
#include "
FWCore/PythonParameterSet/interface/MakePyBind11ParameterSets.h
"
4
5
std::unique_ptr<edm::ParameterSet>
edm::getPSetFromConfig
(
const
std::string
&
config
) {
6
return
PyBind11ProcessDesc
(
config
).
parameterSet
();
7
}
8
9
//its really the stuff in MakePythonParameterSets that should be in the different namespace
10
//I'll do that if this setup is ok
11
std::unique_ptr<edm::ParameterSet>
edm::readConfig
(
std::string
const
&
config
,
int
argc
,
char
*
argv
[]) {
12
return
edm::cmspybind11::readConfig
(
config
,
argc
,
argv
);
13
}
14
15
std::unique_ptr<edm::ParameterSet>
edm::readConfig
(
std::string
const
&
config
) {
16
return
edm::cmspybind11::readConfig
(
config
);
17
}
18
19
void
edm::makeParameterSets
(
std::string
const
& configtext, std::unique_ptr<ParameterSet>&
main
) {
20
edm::cmspybind11::makeParameterSets
(configtext,
main
);
21
}
22
23
std::unique_ptr<edm::ParameterSet>
edm::readPSetsFrom
(
std::string
const
& fileOrString) {
24
return
edm::cmspybind11::readPSetsFrom
(fileOrString);
25
}
cmsBatch.argv
argv
Definition:
cmsBatch.py:279
dir2webdir.argc
argc
Definition:
dir2webdir.py:39
edm::readPSetsFrom
std::unique_ptr< edm::ParameterSet > readPSetsFrom(std::string const &fileOrString)
Definition:
ParameterSetReader.cc:23
edm::cmspybind11::makeParameterSets
void makeParameterSets(std::string const &configtext, std::unique_ptr< ParameterSet > &main)
essentially the same as the previous method
Definition:
MakePyBind11ParameterSets.cc:36
edm::cmspybind11::readPSetsFrom
std::unique_ptr< ParameterSet > readPSetsFrom(std::string const &fileOrString)
Definition:
MakePyBind11ParameterSets.cc:41
edm::makeParameterSets
void makeParameterSets(std::string const &configtext, std::unique_ptr< ParameterSet > &main)
essentially the same as the previous method
Definition:
ParameterSetReader.cc:19
config
Definition:
config.py:1
ParameterSetReader.h
PyBind11ProcessDesc.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PyBind11ProcessDesc
Definition:
PyBind11ProcessDesc.h:16
PyBind11ProcessDesc::parameterSet
std::unique_ptr< edm::ParameterSet > parameterSet() const
Definition:
PyBind11ProcessDesc.cc:92
main
Definition:
main.py:1
edm::readConfig
std::unique_ptr< edm::ParameterSet > readConfig(std::string const &config, int argc, char *argv[])
same, but with arguments
Definition:
ParameterSetReader.cc:11
MakePyBind11ParameterSets.h
edm::cmspybind11::readConfig
std::unique_ptr< ParameterSet > readConfig(std::string const &config)
Definition:
MakePyBind11ParameterSets.cc:26
edm::getPSetFromConfig
std::unique_ptr< edm::ParameterSet > getPSetFromConfig(const std::string &config)
Definition:
ParameterSetReader.cc:5
Generated for CMSSW Reference Manual by
1.8.16