CMS 3D CMS Logo

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 
33  PythonParameterSet& pset() { return theProcessPSet;}
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 
53 };
54 
55 #endif
boost::python::object theMainModule
PythonParameterSet theProcessPSet
Definition: config.py:1
PythonParameterSet & pset()
boost::python::object theMainNamespace
HLT enums.
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11
PythonParameterSet newPSet() const