# Reading objects in root file with pyRoot

**URL:** <https://root-forum.cern.ch/t/reading-objects-in-root-file-with-pyroot/58764>\
**Category:** Newbie\
**Tags:** tree, python, root\
**Created:** [March 28, 2024, 12:56pm UTC](https://root-forum.cern.ch/t/reading-objects-in-root-file-with-pyroot/58764 "2024-03-28T12:56:16Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![FoxWise](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/foxwise/32/37588_2.png) [@FoxWise](https://root-forum.cern.ch/u/FoxWise)\
**Post date:** [March 28, 2024, 3:56pm UTC](https://root-forum.cern.ch/t/reading-objects-in-root-file-with-pyroot/58764/5 "2024-03-28T15:56:19Z")

</div>

Can you try:

```auto
    offClus = entry.GetLeaf("m_optional.m_OfflineClusters").GetValue()

```

or

```auto
    offClus = entry.GetLeaf("m_optional", "m_OfflineClusters").GetValue()

```

Would this work?

I had a similar [issue](https://root-forum.cern.ch/t/reading-branch-leafs-with-pyroot/43913) before

---

_[View the full topic](https://root-forum.cern.ch/t/reading-objects-in-root-file-with-pyroot/58764)._
