Create data from scratch with RDataFrame.
This tutorial shows how to create a dataset from scratch with RDataFrame
{
auto df_1 = df.Define(
"rnd", []() {
return gRandom->
Gaus(); });
df_1.Snapshot("randomNumbers", "df008_createDataSetFromScratch.root");
}
R__EXTERN TRandom * gRandom
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
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.
- Date
- June 2017
- Author
- Danilo Piparo (CERN)
Definition in file df008_createDataSetFromScratch.C.