17 auto tdf_1 = tdf.Define(
"rnd", []() {
return gRandom->
Gaus(); });
20 tdf_1.Snapshot(
"randomNumbers",
"df008_createDataSetFromScratch.root");
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
R__EXTERN TRandom * gRandom
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTrees, CSV's and other data formats.