CMS 3D CMS Logo

Python11ParameterSet.cc
Go to the documentation of this file.
3 
5 
6 void Python11ParameterSet::addVPSet(bool tracked, std::string const& name, pybind11::list value) {
7  std::vector<Python11ParameterSet> v = edm::toVector<Python11ParameterSet>(value);
8  std::vector<edm::ParameterSet> v2;
9  v2.reserve(v.size());
10  for (std::vector<Python11ParameterSet>::iterator ppsetItr = v.begin(), ppsetItrEnd = v.end(); ppsetItr != ppsetItrEnd;
11  ++ppsetItr) {
12  v2.push_back(ppsetItr->theParameterSet);
13  }
14  addParameter(tracked, name, v2);
15 }
16 
17 pybind11::list Python11ParameterSet::getVPSet(bool tracked, std::string const& name) {
18  std::vector<edm::ParameterSet> const& v =
20 
21  // convert to Python11ParameterSets
22  pybind11::list l;
23  for (std::vector<edm::ParameterSet>::const_iterator psetItr = v.begin(), psetItrEnd = v.end(); psetItr != psetItrEnd;
24  ++psetItr) {
25  l.append(Python11ParameterSet(*psetItr));
26  }
27 
28  return l;
29 }
30 
33 }
void addParameter(bool tracked, std::string const &name, T const &value)
void addNewFileInPath(bool tracked, std::string const &name, std::string const &value)
edm::ParameterSet theParameterSet
pybind11::list getVPSet(bool tracked, std::string const &name)
VParameterSet getUntrackedParameterSetVector(std::string const &name, VParameterSet const &defaultValue) const
Definition: value.py:1
VParameterSet const & getParameterSetVector(std::string const &name) const
void addVPSet(bool tracked, std::string const &name, pybind11::list value)