CMS 3D CMS Logo

Python11ParameterSet.cc
Go to the documentation of this file.
3 
4 namespace cmspython3 {
6 
7  void Python11ParameterSet::addVPSet(bool tracked, std::string const& name, pybind11::list value) {
8  std::vector<Python11ParameterSet> v = cmspython3::toVector<Python11ParameterSet>(value);
9  std::vector<edm::ParameterSet> v2;
10  v2.reserve(v.size());
11  for (std::vector<Python11ParameterSet>::iterator ppsetItr = v.begin(), ppsetItrEnd = v.end();
12  ppsetItr != ppsetItrEnd;
13  ++ppsetItr) {
14  v2.push_back(ppsetItr->theParameterSet);
15  }
16  addParameter(tracked, name, v2);
17  }
18 
19  pybind11::list Python11ParameterSet::getVPSet(bool tracked, std::string const& name) {
20  std::vector<edm::ParameterSet> const& v =
22 
23  // convert to Python11ParameterSets
24  pybind11::list l;
25  for (std::vector<edm::ParameterSet>::const_iterator psetItr = v.begin(), psetItrEnd = v.end();
26  psetItr != psetItrEnd;
27  ++psetItr) {
28  l.append(Python11ParameterSet(*psetItr));
29  }
30 
31  return l;
32  }
33 
36  }
37 } // namespace cmspython3
cmspython3::Python11ParameterSet::addVPSet
void addVPSet(bool tracked, std::string const &name, pybind11::list value)
Definition: Python11ParameterSet.cc:7
edm::ParameterSet::getUntrackedParameterSetVector
VParameterSet getUntrackedParameterSetVector(std::string const &name, VParameterSet const &defaultValue) const
Definition: ParameterSet.cc:2168
cmspython3::Python11ParameterSet::theParameterSet
edm::ParameterSet theParameterSet
Definition: Python11ParameterSet.h:119
findQualityFiles.v
v
Definition: findQualityFiles.py:179
FileInPath.h
edm::FileInPath
Definition: FileInPath.h:64
cmspython3
Definition: PyBind11ProcessDesc.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cmspython3::Python11ParameterSet::getVPSet
pybind11::list getVPSet(bool tracked, std::string const &name)
Definition: Python11ParameterSet.cc:19
value
Definition: value.py:1
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:204
cmspython3::Python11ParameterSet::addNewFileInPath
void addNewFileInPath(bool tracked, std::string const &name, std::string const &value)
Definition: Python11ParameterSet.cc:34
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
edm::ParameterSet::getParameterSetVector
VParameterSet const & getParameterSetVector(std::string const &name) const
Definition: ParameterSet.cc:2160
cmspython3::Python11ParameterSet::Python11ParameterSet
Python11ParameterSet()
Definition: Python11ParameterSet.cc:5
Python11ParameterSet.h
cmspython3::Python11ParameterSet::addParameter
void addParameter(bool tracked, std::string const &name, T const &value)
Definition: Python11ParameterSet.h:38