You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[RDF] Add BarChart() action for categorical/string columns
Histo1D only supports numeric columns; there was no way to fill a
histogram from a string/categorical column (e.g. particle type,
detector region labels) without manual workarounds. This adds a
BarChart() lazy action that fills a label-binned, auto-extending
TH1D from either std::string columns or classic C-style char[]
tree branches (inferred as RVec<char> by RDataFrame).
- ActionTags::BarChart + a dedicated BuildAction overload
- BarChartHelper, since FillHelper<TH1D> cannot compile against
either std::string or RVec<char> (no implicit conversion to
the const char* Fill overload)
- RInterface::BarChart(vName, name, title)
- Test coverage in dataframe_histomodels.cxx (bin ordering/counts)
and dataframe_simple.cxx (auto name/title derivation)
Closes#17057
0 commit comments