CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PythonProcessDesc.h
Go to the documentation of this file.
1 #ifndef FWCore_PythonParameterSet_PythonProcessDesc_h
2 #define FWCore_PythonParameterSet_PythonProcessDesc_h
3 
6 
7 #include <memory>
8 
9 #include <string>
10 #include <vector>
11 
12 namespace edm {
13  class ParameterSet;
14  class ProcessDesc;
15 }
16 
18 public:
28 
29  PythonProcessDesc(std::string const& config, int argc, char * argv[]);
30 
32 
34 
35  std::string dump() const;
36 
37  // makes a new (copy) of the ParameterSet
38  std::shared_ptr<edm::ParameterSet> parameterSet() const;
39 
40  // makes a new (copy) of a ProcessDesc
41  // For backward compatibility only. Remove when no longer needed.
42  std::shared_ptr<edm::ProcessDesc> processDesc() const;
43 
44 private:
45  void prepareToRead();
46  void read(std::string const& config);
47  void readFile(std::string const& fileName);
48  void readString(std::string const& pyConfig);
49 
51  boost::python::object theMainModule;
52  boost::python::object theMainNamespace;
53 };
54 
55 #endif
boost::python::object theMainModule
PythonParameterSet theProcessPSet
void readFile(std::string const &fileName)
void read(std::string const &config)
PythonParameterSet & pset()
boost::python::object theMainNamespace
std::string dump() const
std::shared_ptr< edm::ParameterSet > parameterSet() const
tuple argc
Definition: dir2webdir.py:38
void readString(std::string const &pyConfig)
std::shared_ptr< edm::ProcessDesc > processDesc() const
PythonParameterSet newPSet() const