“Most recent” documentation about how to generate and use an “analysis skeleton”:
-
TTree::MakeClass (see also “ROOT User’s Guide” → “Trees” → “Using TTree::MakeClass”)
-
TTree::MakeSelector (see also “ROOT Primer” → “File I/O and Parallel Analysis” → “N-tuples in ROOT” → “For the advanced user: Processing trees with a selector script” and “ROOT User’s Guide” → “Trees” → “Using TTree::MakeSelector” and “ROOT User’s Guide” → “Example Analysis”)
-
ROOT::RDataFrame (uses the TTreeReader class internally) and the Data Frame tutorials (when using ROOT 6.14 or newer)
Notes:
-
if you work with a TChain, you should generate the “analysis skeleton” for the whole TChain, not for a single TTree
-
if you plan to use TTree:CloneTree, see this post and that post and this thread
andgrep -r CloneTree ${ROOTSYS}/t[eu]*
-
for the TTreeReader class (not available in ROOT 5), see the
${ROOTSYS}/tutorials/tree/*Reader*
files and the result of TTree:MakeSelector when run with ROOT 6.06 or newer (note: use the"=legacy"
option, if you want to generate a pre-ROOT-6 selector) -
you may also be interested in: TFile::MakeProject