Extract the statistics relative to RDataFrame columns and store them in TStatistic instances.
auto rr =
r.Define(
"v", [](
ULong64_t e){
return e;}, {
"rdfentry_"})
.Define(
"w", [](
ULong64_t e){
return 1./(
e+1);}, {
"v"});
auto stats_ew = rr.Stats<
ULong64_t,
double>(
"v",
"w");
auto stats_iu = rr.Stats("v");
auto stats_iw = rr.Stats("v", "w");
stats_eu->Print();
stats_ew->Print();
stats_iu->Print();
stats_iw->Print();
}
unsigned long long ULong64_t
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTrees,...
OBJ: TStatistic Mean = 127.5 +- 4.628 RMS = 74.045 Count = 256 Min = 0 Max = 255
OBJ: TStatistic Mean = 40.8 +- 12.86 RMS = 60.318 Count = 256 Min = 0 Max = 255
OBJ: TStatistic Mean = 127.5 +- 4.628 RMS = 74.045 Count = 256 Min = 0 Max = 255
OBJ: TStatistic Mean = 40.8 +- 12.86 RMS = 60.318 Count = 256 Min = 0 Max = 255
- Date
- April 2019
- Author
- Danilo Piparo
Definition in file df031_Stats.C.