Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:01

0001 #include "FWCore/ParameterSetReader/interface/ParameterSetReader.h"
0002 #include "FWCore/PythonParameterSet/interface/PyBind11ProcessDesc.h"
0003 #include "FWCore/PythonParameterSet/interface/MakePyBind11ParameterSets.h"
0004 
0005 std::unique_ptr<edm::ParameterSet> edm::getPSetFromConfig(const std::string& config) {
0006   return PyBind11ProcessDesc(config).parameterSet();
0007 }
0008 
0009 //its really the stuff in MakePythonParameterSets that should be in the different namespace
0010 //I'll do that if this setup is ok
0011 std::unique_ptr<edm::ParameterSet> edm::readConfig(std::string const& config, int argc, char* argv[]) {
0012   return edm::cmspybind11::readConfig(config, argc, argv);
0013 }
0014 
0015 std::unique_ptr<edm::ParameterSet> edm::readConfig(std::string const& config) {
0016   return edm::cmspybind11::readConfig(config);
0017 }
0018 
0019 void edm::makeParameterSets(std::string const& configtext, std::unique_ptr<ParameterSet>& main) {
0020   edm::cmspybind11::makeParameterSets(configtext, main);
0021 }
0022 
0023 std::unique_ptr<edm::ParameterSet> edm::readPSetsFrom(std::string const& fileOrString) {
0024   return edm::cmspybind11::readPSetsFrom(fileOrString);
0025 }