CondCore
CondDB
plugins
CondDBPyWrappers.cc
Go to the documentation of this file.
1
#include "
CondCore/CondDB/interface/Types.h
"
2
#include "
FWCore/PluginManager/interface/PluginManager.h
"
3
#include "
FWCore/PluginManager/interface/standard.h
"
4
5
#include <boost/python.hpp>
6
7
using namespace
boost::python;
8
9
namespace
{
10
11
void
CMSSWInit() {
12
edmplugin::PluginManager::Config
config
;
13
edmplugin::PluginManager::configure
(
edmplugin::standard::config
());
14
}
15
16
}
// namespace
17
18
namespace
cond
{
19
20
Iov_t
makeIov
(
cond::Time_t
since
,
const
Hash
& payloadId) {
21
Iov_t
ret
;
22
ret
.since =
since
;
23
ret
.payloadId = payloadId;
24
return
ret
;
25
}
26
27
}
// namespace cond
28
29
BOOST_PYTHON_MODULE
(pluginCondDBV2PyInterface) {
30
def
(
"CMSSWInit"
, &CMSSWInit);
31
32
def
(
"makeIov"
, &
cond::makeIov
);
33
34
class_<cond::Iov_t>(
"Iov"
, init<>())
35
.def_readwrite(
"since"
, &
cond::Iov_t::since
)
36
.def_readwrite(
"payloadId"
, &
cond::Iov_t::payloadId
);
37
}
runTheMatrix.ret
ret
prodAgent to be discontinued
Definition:
runTheMatrix.py:542
cond::Hash
std::string Hash
Definition:
Types.h:43
edmplugin::PluginManager::Config
Definition:
PluginManager.h:53
submitPVResolutionJobs.config
config
parse the configuration file
Definition:
submitPVResolutionJobs.py:281
writeEcalDQMStatus.since
since
Definition:
writeEcalDQMStatus.py:53
cond::makeIov
Iov_t makeIov(cond::Time_t since, const Hash &payloadId)
Definition:
CondDBPyWrappers.cc:20
standard.h
cond
Definition:
plugin.cc:23
cond::Iov_t::payloadId
Hash payloadId
Definition:
Types.h:55
edmplugin::PluginManager::configure
static PluginManager & configure(const Config &)
Definition:
PluginManager.cc:315
cond::Iov_t::since
Time_t since
Definition:
Types.h:53
cond::Time_t
unsigned long long Time_t
Definition:
Time.h:14
edmplugin::standard::config
PluginManager::Config config()
Definition:
standard.cc:21
PluginManager.h
BOOST_PYTHON_MODULE
BOOST_PYTHON_MODULE(pluginCondDBV2PyInterface)
Definition:
CondDBPyWrappers.cc:29
cond::Iov_t
Definition:
Types.h:47
spu::def
int def(FILE *, FILE *, int)
Definition:
SherpackUtilities.cc:14
Types.h
Generated for CMSSW Reference Manual by
1.8.16