/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/ParameterSetReader/src/ParameterSetReader.cc
25 строк
1 KB
Kevin Pedro
avoid unnecessary c-string conversions for pybind interface
14 сен 2023, 19:39
14 сен 2023, 19:39
2519f50
Код
Авторство
О чём код?
#include "FWCore/ParameterSetReader/interface/ParameterSetReader.h" #include "FWCore/PythonParameterSet/interface/PyBind11ProcessDesc.h" #include "FWCore/PythonParameterSet/interface/MakePyBind11ParameterSets.h" std::unique_ptr<edm::ParameterSet> edm::getPSetFromConfig(const std::string& config) { return PyBind11ProcessDesc(config, false).parameterSet(); } //its really the stuff in MakePythonParameterSets that should be in the different namespace //I'll do that if this setup is ok std::unique_ptr<edm::ParameterSet> edm::readConfig(std::string const& config, const std::vector<std::string>& args) { return edm::cmspybind11::readConfig(config, args); } std::unique_ptr<edm::ParameterSet> edm::readConfig(std::string const& config) { return edm::cmspybind11::readConfig(config); } void edm::makeParameterSets(std::string const& configtext, std::unique_ptr<ParameterSet>& main) { edm::cmspybind11::makeParameterSets(configtext, main); } std::unique_ptr<edm::ParameterSet> edm::readPSetsFrom(std::string const& fileOrString) { return edm::cmspybind11::readPSetsFrom(fileOrString); }