# Learning about trees, tutorial not working

**URL:** <https://root-forum.cern.ch/t/learning-about-trees-tutorial-not-working/34331>\
**Category:** Newbie\
**Created:** [May 30, 2019, 2:11pm UTC](https://root-forum.cern.ch/t/learning-about-trees-tutorial-not-working/34331 "2019-05-30T14:11:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rstew](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@rstew](https://root-forum.cern.ch/u/rstew)\
**Post date:** [May 30, 2019, 2:11pm UTC](https://root-forum.cern.ch/t/learning-about-trees-tutorial-not-working/34331/1 "2019-05-30T14:11:21Z")

</div>

I have the ROOT tutorial chapter 14, attempting to learn how to make and use TTree classes but all the examples and the tutorial data is missing and/or different in the $ROOTSYS/tutorial/tree file. Does anyone know if there is a more up to date tutorial that would be easier to follow along?

---

<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:** [May 30, 2019, 3:25pm UTC](https://root-forum.cern.ch/t/learning-about-trees-tutorial-not-working/34331/2 "2019-05-30T15:25:45Z")

</div>

I don’t know what “chapter 14” you mean but here are: [Tutorials -\> Tree tutorials](https://root.cern.ch/doc/master/group __tutorial__ tree.html)

---

<div class="post-metadata">

**Author:** ![rstew](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/e19b73/32.png) [@rstew](https://root-forum.cern.ch/u/rstew)\
**Post date:** [May 30, 2019, 3:41pm UTC](https://root-forum.cern.ch/t/learning-about-trees-tutorial-not-working/34331/3 "2019-05-30T15:41:34Z")

</div>

Yes, there should be a text file staff.dat that is missing, and the staff.C script does not follow the tutorial at all.

---

<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:** [May 30, 2019, 3:58pm UTC](https://root-forum.cern.ch/t/learning-about-trees-tutorial-not-working/34331/4 "2019-05-30T15:58:57Z")

</div>

Actually, the “cernstaff.dat” file should exist in your local “${ROOTSYS}/tutorials/tree” sudirectory and, in order to run the “[${ROOTSYS}/tutorials/tree/staff.C](https://root.cern.ch/doc/master/staff_8C.html)” tutorial, you MUST first execute the “[${ROOTSYS}/tutorials/tree/cernbuild.C](https://root.cern.ch/doc/master/cernbuild_8C.html)” tutorial (and that is clearly documented).
