# Multiple root files addition in a single root file

**URL:** <https://root-forum.cern.ch/t/multiple-root-files-addition-in-a-single-root-file/53083>\
**Category:** ROOT\
**Created:** [January 13, 2023, 7:20am UTC](https://root-forum.cern.ch/t/multiple-root-files-addition-in-a-single-root-file/53083 "2023-01-13T07:20:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [January 13, 2023, 7:52am UTC](https://root-forum.cern.ch/t/multiple-root-files-addition-in-a-single-root-file/53083/2 "2023-01-13T07:52:13Z")

</div>

> [@Analysis skeleton for a TChain](https://root-forum.cern.ch/t/analysis-skeleton-for-a-tchain/52777):
>
> Hi again guys, sorry for my naive questions. I’m still trying to understand the logic of ROOT. Following my previous topic [How to read array variable in a Tree](https://root-forum.cern.ch/t/how-to-read-array-variable-in-a-tree/52673) , I create the .h and .C (and modify it) files but I cannot understand how to generalize this to more root file. I followed the indication provided me by one answer of @Wile_E_Coyote and I understood that I need to use TChain and I read on the Manual on how to use it. I understood it how to use but not the connection with the previous…

> [@Header files for Trees](https://root-forum.cern.ch/t/header-files-for-trees/16308/2):
>
> “Most recent” documentation about how to generate and use an “analysis skeleton”: [TTree::MakeClass](http://root.cern.ch/root/html534/TTree.html#TTree:MakeClass) (see also [“ROOT User’s Guide” → “Trees” → “Using TTree::MakeClass”](http://root.cern.ch/root/html534/guides/users-guide/Trees.html#using-ttreemakeclass)) [TTree::MakeSelector](http://root.cern.ch/root/html534/TTree.html#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”](http://root.cern.ch/root/htmldoc/guides/primer/ROOTPrimer.html#for-the-advanced-user-processing-trees-with-a-selector-script) and [“ROOT User’s Guide” → “Trees” → “Using TTree::MakeSelector”](http://root.cern.ch/root/html534/guides/users-guide/Trees.html#using-ttreemakeselector) and [“ROOT User’s Guide” → “Example Analysis”](http://root.cern.ch/root/html534/guides/users-guide/ExampleAnalysis.html)) [TTree::MakeProxy](http://root.cern.ch/root/html534/TTree.html#TTree:MakeProxy)[ROOT::RDataFrame](https://root.cern.ch/doc/master/classROOT_1_1RDataFrame.html) (uses the [T…](https://root.cern.ch/doc/master/classTTreeReader.html)

---

_[View the full topic](https://root-forum.cern.ch/t/multiple-root-files-addition-in-a-single-root-file/53083)._
