Read data from Numpy arrays into RDataFrame.
import ROOT
import numpy as np
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
+-----+---+----------+----------+
| Row | x | y | z |
+-----+---+----------+----------+
| 0 | 1 | 4.000000 | 5.000000 |
+-----+---+----------+----------+
| 1 | 2 | 5.000000 | 7.000000 |
+-----+---+----------+----------+
| 2 | 3 | 6.000000 | 9.000000 |
+-----+---+----------+----------+
- Date
- March 2021
- Author
- Stefan Wunsch (KIT, CERN)
Definition in file df032_RDFFromNumpy.py.