CMS 3D CMS Logo

CondDBPyWrappers.cc
Go to the documentation of this file.
4 
5 #include <boost/python.hpp>
6 
7 using namespace boost::python;
8 
9 namespace {
10 
11  void CMSSWInit() {
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 }
int def(FILE *, FILE *, int)
static PluginManager & configure(const Config &)
ret
prodAgent to be discontinued
Time_t since
Definition: Types.h:53
BOOST_PYTHON_MODULE(pluginCondDBV2PyInterface)
unsigned long long Time_t
Definition: Time.h:14
PluginManager::Config config()
Definition: standard.cc:21
Hash payloadId
Definition: Types.h:55
std::string Hash
Definition: Types.h:43
dictionary config
Read in AllInOne config in JSON format.
Definition: DiMuonV_cfg.py:30
Iov_t makeIov(cond::Time_t since, const Hash &payloadId)