DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
types.cpp
Go to the documentation of this file.
1
8
10
11#include <pybind11/pybind11.h>
12
13namespace py = pybind11;
14
16
17void
18register_types(py::module& m)
19{
20 py::class_<TypeDefaults>(m, "TypeDefaults")
21 .def_property_readonly_static("s_invalid_timestamp", [](py::object /*self*/) { return TypeDefaults::s_invalid_timestamp; })
22 .def_property_readonly_static("s_invalid_detid", [](py::object /*self*/) { return TypeDefaults::s_invalid_detid; })
23 .def_property_readonly_static("s_invalid_trigger_number", [](py::object /*self*/) { return TypeDefaults::s_invalid_trigger_number; });
24
25 m.attr("g_whole_detector") = py::int_(g_whole_detector);
26}
27
28} // namespace dunedaq::trgdataformats::python
void register_types(pybind11::module &)
constexpr detid_t g_whole_detector
Definition Types.hpp:69
static constexpr trigger_number_t s_invalid_trigger_number
Definition Types.hpp:65
static constexpr timestamp_t s_invalid_timestamp
Definition Types.hpp:63
static constexpr detid_t s_invalid_detid
Definition Types.hpp:64