CMS 3D CMS Logo

PyBind11ProcessDesc.h
Go to the documentation of this file.
1 #ifndef FWCore_PyDevParameterSet_PyBind11ProcessDesc_h
2 #define FWCore_PyDevParameterSet_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 
16 namespace cmspython3 {
17 
19  public:
29 
30  PyBind11ProcessDesc(std::string const& config, int argc, char* argv[]);
31 
33 
35 
36  Python11ParameterSet& pset() { return theProcessPSet; }
37 
38  std::string dump() const;
39 
40  // makes a new (copy) of the ParameterSet
41  std::unique_ptr<edm::ParameterSet> parameterSet() const;
42 
43  // makes a new (copy) of a ProcessDesc
44  // For backward compatibility only. Remove when no longer needed.
45  std::unique_ptr<edm::ProcessDesc> processDesc() const;
46 
47  private:
48  void prepareToRead();
49  void read(std::string const& config);
50  void readFile(std::string const& fileName);
51  void readString(std::string const& pyConfig);
52 
56  };
57 
58 } // namespace cmspython3
59 #endif
Definition: config.py:1
Python11ParameterSet newPSet() const
Python11ParameterSet & pset()
HLT enums.
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11