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 }
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 }
28 
29 BOOST_PYTHON_MODULE(pluginCondDBV2PyInterface) {
30 
31  def("CMSSWInit",&CMSSWInit);
32 
33  def("makeIov",&cond::makeIov);
34 
35  class_<cond::Iov_t>("Iov", init<>())
36  .def_readwrite("since", &cond::Iov_t::since )
37  .def_readwrite("payloadId", &cond::Iov_t::payloadId )
38  ;
39 
40 }
static PluginManager & configure(const Config &)
Time_t since
Definition: Types.h:55
BOOST_PYTHON_MODULE(pluginCondDBV2PyInterface)
config
Definition: looper.py:291
unsigned long long Time_t
Definition: Time.h:16
PluginManager::Config config()
Definition: standard.cc:21
Hash payloadId
Definition: Types.h:57
std::string Hash
Definition: Types.h:45
Definition: plugin.cc:24
Iov_t makeIov(cond::Time_t since, const Hash &payloadId)
JetCorrectorParameters::Definitions def
Definition: classes.h:6