Main Page
Namespaces
Classes
Package Documentation
FWCore
PyDevParameterSet
interface
PyBind11ProcessDesc.h
Go to the documentation of this file.
1
#ifndef FWCore_PyDevParameterSet_PyBind11ProcessDesc_h
2
#define FWCore_PyDevParameterSet_PyBind11ProcessDesc_h
3
4
#include "
FWCore/PyDevParameterSet/interface/Python11ParameterSet.h
"
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
18
class
PyBind11ProcessDesc
{
19
public
:
20
PyBind11ProcessDesc
();
28
PyBind11ProcessDesc
(
std::string
const
&
config
);
29
30
PyBind11ProcessDesc
(
std::string
const
& config,
int
argc
,
char
*
argv
[]);
31
32
~
PyBind11ProcessDesc
();
33
34
Python11ParameterSet
newPSet
()
const
{
return
Python11ParameterSet
(); }
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
53
Python11ParameterSet
theProcessPSet
;
54
pybind11::object
theMainModule
;
55
bool
theOwnsInterpreter
;
56
};
57
58
}
// namespace cmspython3
59
#endif
cmspython3::PyBind11ProcessDesc
Definition:
PyBind11ProcessDesc.h:18
cmspython3
Definition:
PyBind11ProcessDesc.h:16
ParameterSet
Definition:
Functions.h:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
Python11ParameterSet.h
cmspython3::PyBind11ProcessDesc::theProcessPSet
Python11ParameterSet theProcessPSet
Definition:
PyBind11ProcessDesc.h:53
cmsBatch.argv
argv
Definition:
cmsBatch.py:279
config
Definition:
config.py:1
cmspython3::PyBind11ProcessDesc::theOwnsInterpreter
bool theOwnsInterpreter
Definition:
PyBind11ProcessDesc.h:55
cmspython3::PyBind11ProcessDesc::newPSet
Python11ParameterSet newPSet() const
Definition:
PyBind11ProcessDesc.h:34
cmspython3::Python11ParameterSet
Definition:
Python11ParameterSet.h:20
FrontierConditions_GlobalTag_cff.dump
dump
Definition:
FrontierConditions_GlobalTag_cff.py:12
cmspython3::PyBind11ProcessDesc::theMainModule
pybind11::object theMainModule
Definition:
PyBind11ProcessDesc.h:54
cmspython3::PyBind11ProcessDesc::pset
Python11ParameterSet & pset()
Definition:
PyBind11ProcessDesc.h:36
dir2webdir.argc
argc
Definition:
dir2webdir.py:39
MillePedeFileConverter_cfg.fileName
fileName
Definition:
MillePedeFileConverter_cfg.py:32
edm
HLT enums.
Definition:
AlignableModifier.h:17
resolutioncreator_cfi.object
object
Definition:
resolutioncreator_cfi.py:4
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance)
Definition:
Provenance.cc:11
Generated for CMSSW Reference Manual by
1.8.11