Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:59

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, false).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, const std::vector<std::string>& args) {
0012   return edm::cmspybind11::readConfig(config, args);
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 }