25 auto dfX = df.Define(
"x",
27 double v = std::exp(0.1 *
e);
28 return std::fmod(
v, 20.0);
33 auto hist =
dfX.Hist(40, {0.0, 20.0},
"x");
36 std::cout <<
"entries = " << hist->GetNEntries();
37 std::cout <<
", mean = " << hist->ComputeMean();
38 std::cout <<
", stddev = " << hist->ComputeStdDev();
45 auto *
c =
new TCanvas(
"c",
"", 10, 10, 900, 500);
unsigned long long ULong64_t
Portable unsigned long integer 8 bytes.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
std::unique_ptr< TH1D > ConvertToTH1D(const RHistEngine< double > &engine)
Convert a one-dimensional histogram to TH1D.