![]() |
MaCh3
2.5.1
Reference Guide
|
HW: Histogram utilities for converting ROOT histograms to numpy arrays for use in Python. More...
#include "TH1.h"#include "TH2.h"#include "TH2Poly.h"#include <pybind11/numpy.h>Go to the source code of this file.
Typedefs | |
| using | HistTuple = std::tuple< py::array_t< M3::float_t >, py::array_t< M3::float_t >, py::array_t< M3::float_t > > |
Functions | |
| void | FillEdgesPointer (py::array_t< M3::float_t > edges_buf, TAxis *axis, int nbins) |
| HistTuple | THNToNumpy (std::unique_ptr< TH1 > &hist) |
| py::tuple | HistToNumpy (std::unique_ptr< TH1 > &hist) |
HW: Histogram utilities for converting ROOT histograms to numpy arrays for use in Python.
Definition in file histutils.h.
| using HistTuple = std::tuple<py::array_t<M3::float_t>, py::array_t<M3::float_t>, py::array_t<M3::float_t> > |
Definition at line 16 of file histutils.h.
| void FillEdgesPointer | ( | py::array_t< M3::float_t > | edges_buf, |
| TAxis * | axis, | ||
| int | nbins | ||
| ) |
Definition at line 18 of file histutils.h.
|
inline |
Definition at line 56 of file histutils.h.
| HistTuple THNToNumpy | ( | std::unique_ptr< TH1 > & | hist | ) |
Definition at line 26 of file histutils.h.