1 #ifndef MHO_PyFringeDataInterface_HH__
2 #define MHO_PyFringeDataInterface_HH__
15 #include "pybind11_json/pybind11_json.hpp"
16 #include <pybind11/embed.h>
17 #include <pybind11/pybind11.h>
18 namespace py = pybind11;
19 namespace nl = nlohmann;
20 using namespace pybind11::literals;
37 : fFringeData(fdata), fScanInterface(fdata->GetScanDataStore()), fContainerInterface(fdata->GetContainerStore()),
38 fParameterInterface(fdata->GetParameterStore()){
51 py::dict
GetVex()
const {
return fFringeData->GetVex(); }
53 py::dict
GetPlotData()
const {
return fFringeData->GetPlotData(); }
71 py::class_< MHO_PyFringeDataInterface >(m, pyclass_name.c_str())
74 "get the current parameter set object")
76 "get the current container store object")
78 "get the current scan data store object")
80 "get the current scan ovex/root data as a python dictionary")
82 "get the current plot data as a python dictionary");
Class MHO_FringeData.
Definition: MHO_FringeData.hh:30
python binding to the MHO_ContainerStore
Definition: MHO_PyContainerStoreInterface.hh:30
python bindings for the MHO_FringeData class
Definition: MHO_PyFringeDataInterface.hh:34
MHO_PyScanStoreInterface & GetScanStore()
Definition: MHO_PyFringeDataInterface.hh:48
MHO_PyParameterStoreInterface & GetParameterStore()
Definition: MHO_PyFringeDataInterface.hh:44
py::dict GetVex() const
Definition: MHO_PyFringeDataInterface.hh:51
MHO_PyFringeDataInterface(MHO_FringeData *fdata)
Definition: MHO_PyFringeDataInterface.hh:36
MHO_PyContainerStoreInterface & GetContainerStore()
Definition: MHO_PyFringeDataInterface.hh:46
py::dict GetPlotData() const
Definition: MHO_PyFringeDataInterface.hh:53
virtual ~MHO_PyFringeDataInterface()
Definition: MHO_PyFringeDataInterface.hh:42
python bindings for the MHO_ParameterStore
Definition: MHO_PyParameterStoreInterface.hh:26
python bindings for the MHO_ScanDataStore
Definition: MHO_PyScanStoreInterface.hh:31
Definition: MHO_ChannelLabeler.hh:17
void DeclarePyFringeDataInterface(py::module &m, std::string pyclass_name)
Definition: MHO_PyFringeDataInterface.hh:69