# Looping tree and getting branch value, but branch has a dot(.) in its name

**URL:** <https://root-forum.cern.ch/t/looping-tree-and-getting-branch-value-but-branch-has-a-dot-in-its-name/46612>\
**Category:** ROOT\
**Tags:** tree, python\
**Created:** [September 1, 2021, 11:44am UTC](https://root-forum.cern.ch/t/looping-tree-and-getting-branch-value-but-branch-has-a-dot-in-its-name/46612 "2021-09-01T11:44:28Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [September 1, 2021, 4:32pm UTC](https://root-forum.cern.ch/t/looping-tree-and-getting-branch-value-but-branch-has-a-dot-in-its-name/46612/6 "2021-09-01T16:32:26Z")

</div>

You can try:

```python
for entry in tree:
        yy_pt = getattr(entry, "HGamEventInfoAuxDyn.pT_yy")
        print(yy_pt)

```

---

_[View the full topic](https://root-forum.cern.ch/t/looping-tree-and-getting-branch-value-but-branch-has-a-dot-in-its-name/46612)._
