DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::detchannelmaps::python Namespace Reference

Functions

void register_maps (py::module &m)
 
void register_hw_map_service (py::module &)
 
 PYBIND11_MODULE (_daq_detchannelmaps_py, m)
 

Function Documentation

◆ PYBIND11_MODULE()

dunedaq::detchannelmaps::python::PYBIND11_MODULE ( _daq_detchannelmaps_py ,
m  )

Definition at line 21 of file module.cpp.

21 {
22
23 m.doc() = "c++ implementation of the dunedaq detchannelmaps modules"; // optional module docstring
24
26}
void register_maps(py::module &m)

◆ register_hw_map_service()

void dunedaq::detchannelmaps::python::register_hw_map_service ( py::module & )
extern

◆ register_maps()

void dunedaq::detchannelmaps::python::register_maps ( py::module & m)

Definition at line 23 of file channelmap.cpp.

24{
25
26 py::class_<TPCChannelMap::TPCChannelInfo>(m, "TPCChannelInfo")
27 .def(py::init<uint, uint, uint, uint>())
28 .def_readwrite("detector", &TPCChannelMap::TPCChannelInfo::detector)
29 .def_readwrite("crate", &TPCChannelMap::TPCChannelInfo::crate)
30 .def_readwrite("slot", &TPCChannelMap::TPCChannelInfo::slot)
31 .def_readwrite("stream", &TPCChannelMap::TPCChannelInfo::stream)
32 .def_readwrite("channel", &TPCChannelMap::TPCChannelInfo::channel)
33 .def_readwrite("element", &TPCChannelMap::TPCChannelInfo::element)
34 ;
35
36 py::class_<TPCChannelMap, std::shared_ptr<TPCChannelMap>>(m, "TPCChannelMap")
37 .def("get_offline_channel_from_det_crate_slot_stream_chan", &TPCChannelMap::get_offline_channel_from_det_crate_slot_stream_chan)
38 .def("get_plane_from_offline_channel", &TPCChannelMap::get_plane_from_offline_channel)
39 .def("get_element_id_from_offline_channel", &TPCChannelMap::get_element_id_from_offline_channel)
40 .def("get_element_name_from_offline_channel", &TPCChannelMap::get_element_name_from_offline_channel)
41 .def("get_channel_info_from_offline_channel", &TPCChannelMap::get_channel_info_from_offline_channel)
42 ;
43
44 m.def("make_tpc_map", &make_tpc_map);
45
46}