Extract the statistics relative to RDataFrame columns and store them in TStatistic instances.
import ROOT
r = ROOT.ROOT.RDataFrame(256);
rr = r.Define("v", "rdfentry_")\
.Define("w", "return 1./(v+1)")
stats_iu = rr.Stats("v")
stats_iw = rr.Stats("v", "w")
stats_iu.Print()
stats_iw.Print()
OBJ: TStatistic = 127.5 +- 4.628 RMS = 74.045 N = 256
OBJ: TStatistic = 40.8 +- 12.86 RMS = 60.318 N = 256
- Date
- April 2019
- Author
- Danilo Piparo
Definition in file df031_Stats.py.