# TTree name with dots

**URL:** <https://root-forum.cern.ch/t/ttree-name-with-dots/43460>\
**Category:** Newbie\
**Created:** [February 9, 2021, 10:09am UTC](https://root-forum.cern.ch/t/ttree-name-with-dots/43460 "2021-02-09T10:09:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ROOTer1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/977dab/32.png) [@ROOTer1](https://root-forum.cern.ch/u/ROOTer1)\
**Post date:** [February 9, 2021, 10:09am UTC](https://root-forum.cern.ch/t/ttree-name-with-dots/43460/1 "2021-02-09T10:09:41Z")

</div>

How to read a TTree on the Root prompt when the name of tree includes dots

name.with.dots-\>Scan() =\> Error!

* * *

---

<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:** [February 9, 2021, 10:16am UTC](https://root-forum.cern.ch/t/ttree-name-with-dots/43460/2 "2021-02-09T10:16:42Z")

</div>

Try:

```cpp
TTree *t; gFile->GetObject("name.with.dots", t);
t->Scan();

```

---

<div class="post-metadata">

**Author:** ![ROOTer1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/977dab/32.png) [@ROOTer1](https://root-forum.cern.ch/u/ROOTer1)\
**Post date:** [February 9, 2021, 10:31am UTC](https://root-forum.cern.ch/t/ttree-name-with-dots/43460/3 "2021-02-09T10:31:57Z")

</div>

It works! thank you very much!!
