20      .Define(
"b2", 
"(float) rdfentry_ * rdfentry_").Snapshot(treeName, fileName)
 
   23fileName = 
"df007_snapshot_py.root" 
   24outFileName = 
"df007_snapshot_output_py.root" 
   25outFileNameAllColumns = 
"df007_snapshot_output_allColumns_py.root" 
   39std::vector<float> getVector (float b2) 
   42   for (int i = 0; i < 3; i++) v.push_back(b2*i); 
   49          .Define(
"b2_vector", 
"getVector( b2 )")
 
   58    [
"b1", 
"b1_square", 
"b2_vector"])
 
   62print(
"These are the columns b1, b1_square and b2_vector:")
 
   76print(
"These are all the columns available to this dataframe:")
 
   85snapshot_df = 
d2.Snapshot(treeName, outFileName, [
"b1_square"]);
 
   92print(
"Saved figure to df007_snapshot.png")
 
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 ,...