Main Page
Namespaces
Classes
Package Documentation
FWCore
PythonParameterSet
interface
PythonProcessDesc.h
Go to the documentation of this file.
1
#ifndef FWCore_PythonParameterSet_PythonProcessDesc_h
2
#define FWCore_PythonParameterSet_PythonProcessDesc_h
3
4
#include "
FWCore/PythonParameterSet/interface/BoostPython.h
"
5
#include "
FWCore/PythonParameterSet/interface/PythonParameterSet.h
"
6
7
#include <memory>
8
9
#include <string>
10
#include <vector>
11
12
namespace
edm
{
13
class
ParameterSet
;
14
class
ProcessDesc;
15
}
16
17
class
PythonProcessDesc
{
18
public
:
19
PythonProcessDesc
();
27
PythonProcessDesc
(
std::string
const
&
config
);
28
29
PythonProcessDesc
(
std::string
const
& config,
int
argc
,
char
*
argv
[]);
30
31
PythonParameterSet
newPSet
()
const
{
return
PythonParameterSet
();}
32
33
PythonParameterSet
&
pset
() {
return
theProcessPSet;}
34
35
std::string
dump
()
const
;
36
37
// makes a new (copy) of the ParameterSet
38
std::unique_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
50
PythonParameterSet
theProcessPSet
;
51
boost::python::object
theMainModule
;
52
boost::python::object
theMainNamespace
;
53
};
54
55
#endif
PythonProcessDesc::theMainModule
boost::python::object theMainModule
Definition:
PythonProcessDesc.h:51
PythonParameterSet.h
ParameterSet
Definition:
Functions.h:16
PythonProcessDesc::theProcessPSet
PythonParameterSet theProcessPSet
Definition:
PythonProcessDesc.h:50
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
cmsBatch.argv
argv
Definition:
cmsBatch.py:278
config
Definition:
config.py:1
PythonProcessDesc::pset
PythonParameterSet & pset()
Definition:
PythonProcessDesc.h:33
PythonProcessDesc::theMainNamespace
boost::python::object theMainNamespace
Definition:
PythonProcessDesc.h:52
FrontierConditions_GlobalTag_cff.dump
dump
Definition:
FrontierConditions_GlobalTag_cff.py:12
dir2webdir.argc
argc
Definition:
dir2webdir.py:39
PythonParameterSet
Definition:
PythonParameterSet.h:19
MillePedeFileConverter_cfg.fileName
fileName
Definition:
MillePedeFileConverter_cfg.py:32
edm
HLT enums.
Definition:
AlignableModifier.h:17
BoostPython.h
PythonProcessDesc
Definition:
PythonProcessDesc.h:17
resolutioncreator_cfi.object
object
Definition:
resolutioncreator_cfi.py:4
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance)
Definition:
Provenance.cc:11
PythonProcessDesc::newPSet
PythonParameterSet newPSet() const
Definition:
PythonProcessDesc.h:31
Generated for CMSSW Reference Manual by
1.8.11