Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-14 00:30:07

0001 #include <pybind11/pybind11.h>
0002 
0003 #include "FWCore/Utilities/interface/concatenate.h"
0004 #include "FWCore/Utilities/interface/stringize.h"
0005 
0006 namespace py = pybind11;
0007 
0008 #define PAYLOAD_INSPECTOR_MODULE(PAYLOAD_TYPENAME) PYBIND11_MODULE(plugin##PAYLOAD_TYPENAME##_PayloadInspector, m)
0009 
0010 #define PAYLOAD_INSPECTOR_CLASS(CLASS_NAME)                                                                      \
0011   py::class_<CLASS_NAME, cond::payloadInspector::PlotBase>(m, EDM_STRINGIZE(EDM_CONCATENATE(plot_, CLASS_NAME))) \
0012       .def(py::init<>())                                                                                         \
0013       .def("process", &cond::payloadInspector::PlotBase::process)                                                \
0014       .def("payloadType", &cond::payloadInspector::PlotBase::payloadType)                                        \
0015       .def("title", &cond::payloadInspector::PlotBase::title)                                                    \
0016       .def("isSingleIov", &cond::payloadInspector::PlotBase::isSingleIov)                                        \
0017       .def("isTwoTags", &cond::payloadInspector::PlotBase::isTwoTags)                                            \
0018       .def("data", &cond::payloadInspector::PlotBase::data);