32 void Fill(
const std::string &s) { histo.
Fill(s.c_str(), 1.); }
36 void Merge(
const std::vector<AlphaNumHist *> &
others)
47 std::random_device
rd;
48 std::mt19937
gen{
rd()};
49 std::uniform_int_distribution<int>
distrib{0, 2};
51 const std::vector<std::string>
colours{
"RED",
"GREEN",
"BLUE"};
57auto canvas = std::make_unique<TCanvas>(
"c");
61 writeData(
"tree",
"df041_alphanumericHistograms.root");
65 AlphaNumHist model(
"hColour",
"Entries by colour;Colour;Count");
66 auto result = df.Fill<std::string>(model, {
"colour"});
67 result->histo.LabelsDeflate(
"X");
69 result->histo.SetFillColor(45);
70 result->histo.DrawCopy(
"bar2");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
void SetAlphanumeric(Bool_t alphanumeric=kTRUE)
Set axis alphanumeric.
1-D histogram with a double per channel (see TH1 documentation)
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual UInt_t SetCanExtend(UInt_t extendBitMask)
Make the histogram axes extendable / not extendable according to the bit mask returns the previous bi...
virtual Long64_t Merge(TCollection *list)
void Fill(float *output, float value, int size)
TMatrixT< Element > & Add(TMatrixT< Element > &target, Element scalar, const TMatrixT< Element > &source)
Modify addition: target += scalar * source.