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;
26 class MHO_OperatorToolbox;
40 : fFringeData(fdata), fScanInterface(fdata->GetScanDataStore()), fContainerInterface(fdata->GetContainerStore()),
41 fParameterInterface(fdata->GetParameterStore()), fOperatorToolbox(nullptr){
58 py::dict
GetVex()
const {
return fFringeData->GetVex(); }
60 py::dict
GetPlotData()
const {
return fFringeData->GetPlotData(); }
82 py::class_< MHO_PyFringeDataInterface >(m, pyclass_name.c_str())
85 "get the current parameter set object")
87 "get the current container store object")
89 "get the current scan data store object")
91 "get the current scan ovex/root data as a python dictionary")
93 "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:37
void SetOperatorToolbox(MHO_OperatorToolbox *toolbox)
Definition: MHO_PyFringeDataInterface.hh:47
MHO_PyScanStoreInterface & GetScanStore()
Definition: MHO_PyFringeDataInterface.hh:55
MHO_OperatorToolbox * GetOperatorToolbox()
Definition: MHO_PyFringeDataInterface.hh:49
MHO_PyParameterStoreInterface & GetParameterStore()
Definition: MHO_PyFringeDataInterface.hh:51
py::dict GetVex() const
Definition: MHO_PyFringeDataInterface.hh:58
MHO_PyFringeDataInterface(MHO_FringeData *fdata)
Definition: MHO_PyFringeDataInterface.hh:39
MHO_PyContainerStoreInterface & GetContainerStore()
Definition: MHO_PyFringeDataInterface.hh:53
py::dict GetPlotData() const
Definition: MHO_PyFringeDataInterface.hh:60
virtual ~MHO_PyFringeDataInterface()
Definition: MHO_PyFringeDataInterface.hh:45
python bindings for the MHO_ParameterStore
Definition: MHO_PyParameterStoreInterface.hh:26
python bindings for the MHO_ScanDataStore
Definition: MHO_PyScanStoreInterface.hh:31
Definition: MHO_AdhocFlagging.hh:18
void DeclarePyFringeDataInterface(py::module &m, std::string pyclass_name)
Definition: MHO_PyFringeDataInterface.hh:80