# Analysis skeleton for a TChain

**URL:** <https://root-forum.cern.ch/t/analysis-skeleton-for-a-tchain/52777>\
**Category:** Newbie\
**Created:** [December 15, 2022, 3:29pm UTC](https://root-forum.cern.ch/t/analysis-skeleton-for-a-tchain/52777 "2022-12-15T15:29:38Z")\
**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:** [December 15, 2022, 3:39pm UTC](https://root-forum.cern.ch/t/analysis-skeleton-for-a-tchain/52777/2 "2022-12-15T15:39:10Z")

</div>

Generate [an “analysis skeleton” for the whole TChain](https://root-forum.cern.ch/t/header-files-for-trees/16308/2), e.g.:

```cpp
{
  TChain *t = new TChain("Data");
  t->Add("file.root");
  t->MakeClass();
  delete t;
}

```

---

_[View the full topic](https://root-forum.cern.ch/t/analysis-skeleton-for-a-tchain/52777)._
