ROOT
Version v6.32
master
v6.36
v6.34
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
▼
tutorials
►
cocoa
►
cont
►
dataframe
►
eve
►
eve7
►
fft
►
fit
►
fitsio
►
foam
►
geom
►
gl
►
graphics
►
graphs
►
gui
►
hist
►
histfactory
►
html
►
http
►
image
►
io
►
legacy
►
math
►
matrix
►
mc
►
multicore
►
net
►
physics
►
proof
►
pyroot
►
pythia
►
quadp
►
r
►
rcanvas
►
roofit
►
roostats
►
spectrum
►
splot
►
sql
►
tmva
▼
tree
▼
dictionary
data2Tree.cxx
►
data2Tree.hxx
data2TreeLinkDef.hxx
►
main.cpp
►
readTree.cxx
►
readTreeDF.cxx
►
writeTree.cxx
basic.C
basic2.C
bill.C
cernbuild.C
cernstaff.C
circular.C
clonesA_Event.C
clonesA_Event.cxx
►
clonesA_Event.h
copytree.C
copytree2.C
copytree3.C
drawsparse.C
h1analysis.C
►
h1analysis.h
h1analysisProxy.C
►
h1analysisProxy.h
►
h1analysisProxyCut.C
h1analysisTreeReader.C
►
h1analysisTreeReader.h
h1chain.C
hsimpleProxy.C
hsimpleProxyDriver.C
hsimpleReader.C
htest.C
hvector.C
JetEvent.cxx
►
JetEvent.h
jets.C
ntuple1.C
parallelcoord.C
parallelcoordtrans.C
printSizes.C
run_h1analysis.C
spider.C
staff.C
tcl.C
temperature.C
tree.C
tree0.C
tree1.C
tree2.C
tree2a.C
tree3.C
tree4.C
treefriend.C
treegetval.C
►
tv3.C
►
tvdemo.C
►
unfold
►
unuran
►
v7
►
vecops
►
webgui
►
xml
.rootlogon.py
demos.C
demoshelp.C
hsimple.C
rootlogoff.C
rootlogon.C
►
v6-32-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
readTreeDF.cxx
Go to the documentation of this file.
1
// Author: Alvaro Tolosa-Delgado CERN 07/2023
2
// Author: Jorge Agramunt Ros IFIC(Valencia,Spain) 07/2023
3
4
/*************************************************************************
5
* Copyright (C) 1995-2023, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
/* Example of reading a TTree using the RDataFrame interface
13
* Documentation of RDataFrame: https://root.cern/doc/master/classROOT_1_1RDataFrame.html
14
*/
15
16
#include <
ROOT/RDataFrame.hxx
>
17
18
#include "
data2Tree.hxx
"
19
20
void
readTreeDF
()
21
{
22
23
ROOT::RDataFrame
df{
"myTree"
,
"testFile.root"
};
24
df.
Display
({
"branch1.time"
,
"branch1.energy"
,
"branch2.time"
,
"branch2.energy"
},
/*nRows*/
10)->
Print
();
25
}
RDataFrame.hxx
Print
void Print(GNN_Data &d, std::string txt="")
Definition
TMVA_SOFIE_GNN_Application.C:59
ROOT::RDF::RInterface::Display
RResultPtr< RDisplay > Display(const ColumnNames_t &columnList, size_t nRows=5, size_t nMaxCollectionElements=10)
Provides a representation of the columns in the dataset.
Definition
RInterface.hxx:2860
ROOT::RDataFrame
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
Definition
RDataFrame.hxx:41
data2Tree.hxx
readTreeDF
void readTreeDF()
Definition
readTreeDF.cxx:20
tutorials
tree
dictionary
readTreeDF.cxx
ROOT v6-32 - Reference Guide Generated on Mon Apr 28 2025 05:42:20 (GVA Time) using Doxygen 1.10.0