CMS 3D CMS Logo

PyBind11ProcessDesc.h
Go to the documentation of this file.
1 #ifndef FWCore_PyBind11ParameterSet_PyBind11ProcessDesc_h
2 #define FWCore_PyBind11ParameterSet_PyBind11ProcessDesc_h
3 
5 
6 #include <memory>
7 
8 #include <string>
9 #include <vector>
10 
11 namespace edm {
12  class ParameterSet;
13  class ProcessDesc;
14 } // namespace edm
15 
17 public:
27 
28  PyBind11ProcessDesc(std::string const& config, int argc, char* argv[]);
29 
31 
33 
35 
36  std::string dump() const;
37 
38  // makes a new (copy) of the ParameterSet
39  std::unique_ptr<edm::ParameterSet> parameterSet() const;
40 
41  // makes a new (copy) of a ProcessDesc
42  // For backward compatibility only. Remove when no longer needed.
43  std::unique_ptr<edm::ProcessDesc> processDesc() const;
44 
45 private:
46  void prepareToRead();
47  void read(std::string const& config);
48  void readFile(std::string const& fileName);
49  void readString(std::string const& pyConfig);
50 
54 };
55 
56 #endif
cmsBatch.argv
argv
Definition: cmsBatch.py:279
resolutioncreator_cfi.object
object
Definition: resolutioncreator_cfi.py:4
PyBind11ProcessDesc::read
void read(std::string const &config)
Definition: PyBind11ProcessDesc.cc:67
Python11ParameterSet.h
dir2webdir.argc
argc
Definition: dir2webdir.py:39
edm
HLT enums.
Definition: AlignableModifier.h:19
MillePedeFileConverter_cfg.fileName
fileName
Definition: MillePedeFileConverter_cfg.py:32
Python11ParameterSet
Definition: Python11ParameterSet.h:19
PyBind11ProcessDesc::processDesc
std::unique_ptr< edm::ProcessDesc > processDesc() const
Definition: PyBind11ProcessDesc.cc:103
config
Definition: config.py:1
PyBind11ProcessDesc::theProcessPSet
Python11ParameterSet theProcessPSet
Definition: PyBind11ProcessDesc.h:51
PyBind11ProcessDesc::prepareToRead
void prepareToRead()
Definition: PyBind11ProcessDesc.cc:60
PyBind11ProcessDesc::PyBind11ProcessDesc
PyBind11ProcessDesc()
Definition: PyBind11ProcessDesc.cc:12
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
PyBind11ProcessDesc::pset
Python11ParameterSet & pset()
Definition: PyBind11ProcessDesc.h:34
PyBind11ProcessDesc
Definition: PyBind11ProcessDesc.h:16
PyBind11ProcessDesc::theOwnsInterpreter
bool theOwnsInterpreter
Definition: PyBind11ProcessDesc.h:53
PyBind11ProcessDesc::~PyBind11ProcessDesc
~PyBind11ProcessDesc()
Definition: PyBind11ProcessDesc.cc:53
ParameterSet
Definition: Functions.h:16
PyBind11ProcessDesc::readFile
void readFile(std::string const &fileName)
Definition: PyBind11ProcessDesc.cc:80
PyBind11ProcessDesc::parameterSet
std::unique_ptr< edm::ParameterSet > parameterSet() const
Definition: PyBind11ProcessDesc.cc:92
PyBind11ProcessDesc::dump
std::string dump() const
Definition: PyBind11ProcessDesc.cc:96
PyBind11ProcessDesc::readString
void readString(std::string const &pyConfig)
Definition: PyBind11ProcessDesc.cc:86
PyBind11ProcessDesc::theMainModule
pybind11::object theMainModule
Definition: PyBind11ProcessDesc.h:52
PyBind11ProcessDesc::newPSet
Python11ParameterSet newPSet() const
Definition: PyBind11ProcessDesc.h:32